Class TextureAtlas.TextureAtlasTile

java.lang.Object
jme3tools.optimize.TextureAtlas.TextureAtlasTile
Enclosing class:
TextureAtlas

public class TextureAtlas.TextureAtlasTile extends Object
  • Constructor Details

    • TextureAtlasTile

      public TextureAtlasTile(int x, int y, int width, int height)
  • Method Details

    • getLocation

      public Vector2f getLocation(Vector2f previousLocation)
      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

      public void transformTextureCoords(FloatBuffer inBuf, int offset, FloatBuffer outBuf)
      Transforms a whole texture coordinates buffer.
      Parameters:
      inBuf - The input texture buffer.
      offset - The offset in the output buffer
      outBuf - The output buffer.
    • getX

      public int getX()
    • getY

      public int getY()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()