Struct for our GL-Based Images
This is our struct to hold our image attributes. You don't need to worry about this most of the time.
More...
Public Member Functions | |
SpriteGL () | |
SpriteGL constructor. Use this constructor to instantiate a SpriteGL object. | |
Public Attributes | |
int | width |
int | height |
float | u_off |
float | v_off |
float | u_width |
float | v_height |
int | textureID |
Static Public Attributes | |
static int | FLIP_NONE = 1 << 0 |
Constants to select flipping mode. | |
static int | FLIP_V = 1 << 1 |
static int | FLIP_H = 1 << 2 |
Struct for our GL-Based Images
This is our struct to hold our image attributes. You don't need to worry about this most of the time.
int EZGL2D.GL2D.SpriteGL.FLIP_H = 1 << 2 [static] |
Horizontal flip
int EZGL2D.GL2D.SpriteGL.FLIP_NONE = 1 << 0 [static] |
Constants to select flipping mode.
These enums are bits for flipping the sprites.
You can "|" (or) GL_FLIP_V and GL_FLIP_H to flip both ways.
No flip
int EZGL2D.GL2D.SpriteGL.FLIP_V = 1 << 1 [static] |
Vertical flip
Height of the sprite
OpenGL generated texture ID of the sprite
Horizontal texture offset of the sprite
Horizontal texture offset width of the sprite
Vertical texture offset height of the sprite
Vertical texture offset of the sprite
Width of the sprite