public class TextureAtlas.TextureAtlasTile
extends java.lang.Object
| Constructor and Description |
|---|
TextureAtlasTile(int x,
int y,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight() |
Vector2f |
getLocation(Vector2f previousLocation)
Get the transformed texture coordinate for a given input location.
|
int |
getWidth() |
int |
getX() |
int |
getY() |
void |
transformTextureCoords(java.nio.FloatBuffer inBuf,
int offset,
java.nio.FloatBuffer outBuf)
Transforms a whole texture coordinates buffer.
|
public Vector2f getLocation(Vector2f previousLocation)
previousLocation - The old texture coordinate.public void transformTextureCoords(java.nio.FloatBuffer inBuf,
int offset,
java.nio.FloatBuffer outBuf)
inBuf - The input texture buffer.offset - The offset in the output bufferoutBuf - The output buffer.public int getX()
public int getY()
public int getWidth()
public int getHeight()