|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.matthiasmann.twl.renderer.lwjgl.TextureAreaRotated
public class TextureAreaRotated
A rotated, tiled or flipped area inside a OpenGL texture used as UI image
| Field Summary | |
|---|---|
protected static int |
REPEAT_CACHE_SIZE
|
protected int |
repeatCacheID
|
| Constructor Summary | |
|---|---|
TextureAreaRotated(LWJGLTexture texture,
int x,
int y,
int width,
int height,
Color tintColor,
boolean tiled,
Texture.Rotation rotation)
|
|
| Method Summary | |
|---|---|
Image |
createTintedVersion(Color color)
Creates a new image with is tinted with the specified color. |
void |
draw(AnimationState as,
int x,
int y)
Draws the image in it's original size at the given location |
void |
draw(AnimationState as,
int x,
int y,
int w,
int h)
Draws the image scaled to the given size at the given location |
protected void |
drawRepeatCached(int x,
int y,
int repeatCountX,
int repeatCountY)
|
int |
getHeight()
Returns the height in pixels of the image |
int |
getWidth()
Returns the width in pixels of the image |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int REPEAT_CACHE_SIZE
protected int repeatCacheID
| Constructor Detail |
|---|
public TextureAreaRotated(LWJGLTexture texture,
int x,
int y,
int width,
int height,
Color tintColor,
boolean tiled,
Texture.Rotation rotation)
| Method Detail |
|---|
public int getHeight()
Image
getHeight in interface Imagepublic int getWidth()
Image
getWidth in interface Image
public void draw(AnimationState as,
int x,
int y)
Image
draw in interface Imageas - A time source for animation - may be nullx - left coordinatey - top coordinate
public void draw(AnimationState as,
int x,
int y,
int w,
int h)
Image
draw in interface Imageas - A time source for animation - may be nullx - left coordinatey - top coordinatew - the width in pixelsh - the height in pixels
protected void drawRepeatCached(int x,
int y,
int repeatCountX,
int repeatCountY)
public Image createTintedVersion(Color color)
Image
createTintedVersion in interface Imagecolor - The color used for tinting.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||