Public Member Functions | Public Attributes | Static Public Attributes

# EZGL2D.GL2D.SpriteGL Class Reference

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...

List of all members.

## 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

## Detailed Description

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.

## Member Data Documentation

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.

- Related functions:
  1. Sprite()
  2. SpriteRotateScale()

No flip

int EZGL2D.GL2D.SpriteGL.FLIP_V = 1 << 1`[static]`

Vertical flip

int EZGL2D.GL2D.SpriteGL.height

Height of the sprite

int EZGL2D.GL2D.SpriteGL.textureID

OpenGL generated texture ID of the sprite

float EZGL2D.GL2D.SpriteGL.u_off

Horizontal texture offset of the sprite

float EZGL2D.GL2D.SpriteGL.u_width

Horizontal texture offset width of the sprite

float EZGL2D.GL2D.SpriteGL.v_height

Vertical texture offset height of the sprite

float EZGL2D.GL2D.SpriteGL.v_off

Vertical texture offset of the sprite

int EZGL2D.GL2D.SpriteGL.width

Width of the sprite

The documentation for this class was generated from the following file:

- C:/Programming/doxygen/EZGL2Dnet/EZGL2D.cs