Package jme3tools.optimize
Class TextureAtlas.TextureAtlasTile
java.lang.Object
jme3tools.optimize.TextureAtlas.TextureAtlasTile
- Enclosing class:
- TextureAtlas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetLocation(Vector2f previousLocation) Get the transformed texture coordinate for a given input location.intgetWidth()intgetX()intgetY()voidtransformTextureCoords(FloatBuffer inBuf, int offset, FloatBuffer outBuf) Transforms a whole texture coordinates buffer.
-
Constructor Details
-
TextureAtlasTile
public TextureAtlasTile(int x, int y, int width, int height)
-
-
Method Details
-
getLocation
Get the transformed texture coordinate for a given input location.- Parameters:
previousLocation- The old texture coordinate.- Returns:
- The new texture coordinate inside the atlas.
-
transformTextureCoords
Transforms a whole texture coordinates buffer.- Parameters:
inBuf- The input texture buffer.offset- The offset in the output bufferoutBuf- The output buffer.
-
getX
public int getX() -
getY
public int getY() -
getWidth
public int getWidth() -
getHeight
public int getHeight()
-