Package jme3tools.optimize
Class TextureAtlas.TextureAtlasTile
java.lang.Object
jme3tools.optimize.TextureAtlas.TextureAtlasTile
- Enclosing class:
- TextureAtlas
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
TextureAtlasTilepublic TextureAtlasTile(int x, int y, int width, int height) 
 
- 
- 
Method Details- 
getLocationGet the transformed texture coordinate for a given input location.- Parameters:
- previousLocation- The old texture coordinate.
- Returns:
- The new texture coordinate inside the atlas.
 
- 
transformTextureCoordsTransforms a whole texture coordinates buffer.- Parameters:
- inBuf- The input texture buffer.
- offset- The offset in the output buffer
- outBuf- The output buffer.
 
- 
getXpublic int getX()
- 
getYpublic int getY()
- 
getWidthpublic int getWidth()
- 
getHeightpublic int getHeight()
 
-