com.triangularpixels.rebirth.image
Interface SpriteImage

All Known Implementing Classes:
TextureAtlas.Entry

public interface SpriteImage

Represents a sub section of a 2d texture u0/u1/v0/v1 are the normalised texture coordinates for the corners of the sprite.


Method Summary
 int getHeight()
          The height of the sprite image, in pixels
 int getTextureId()
          Returns the OpenGL texture id of the underlying texture
 float getU0()
           
 float getU1()
           
 float getV0()
           
 float getV1()
           
 int getWidth()
          The width of the sprite image, in pixels
 

Method Detail

getTextureId

int getTextureId()
Returns the OpenGL texture id of the underlying texture


getWidth

int getWidth()
The width of the sprite image, in pixels


getHeight

int getHeight()
The height of the sprite image, in pixels


getU0

float getU0()

getU1

float getU1()

getV0

float getV0()

getV1

float getV1()


Copyright © 2009 TriangularPixels.com. All Rights Reserved.