public class Sprite
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
float |
alpha |
Texture |
texture |
float |
uEnd |
float |
uStart |
float |
vEnd |
float |
vStart |
| Constructor and Description |
|---|
Sprite(Texture texture) |
Sprite(Texture texture,
Insets scale9) |
Sprite(Texture texture,
int width,
int height,
float uStart,
float vStart,
float uEnd,
float vEnd) |
Sprite(Texture texture,
int width,
int height,
float uStart,
float vStart,
float uEnd,
float vEnd,
Insets scale9) |
Sprite(Texture texture,
int width,
int height,
Insets scale9) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight() |
int |
getScale9Bottom() |
int |
getScale9Height() |
int |
getScale9Left() |
int |
getScale9Right() |
int |
getScale9Top() |
int |
getScale9Width() |
Texture |
getTexture() |
TextureID |
getTextureID() |
int |
getWidth() |
boolean |
hasScale9Border() |
void |
setSizeOnLoad(int width,
int height)
|
public final Texture texture
public final float uStart
public final float uEnd
public final float vStart
public final float vEnd
public final float alpha
public Sprite(Texture texture)
public Sprite(Texture texture, int width, int height, float uStart, float vStart, float uEnd, float vEnd)
public final Texture getTexture()
public final TextureID getTextureID()
public final int getWidth()
public final int getHeight()
public final int getScale9Left()
public final int getScale9Right()
public final int getScale9Top()
public final int getScale9Bottom()
public final int getScale9Width()
public final int getScale9Height()
public final boolean hasScale9Border()
public final void setSizeOnLoad(int width,
int height)
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if getWidth() or getHeight() return a non 0 valueBonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com