YourGameLib
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
yourgame::gl::TextureCoords Struct Reference

#include <texture.h>

Public Member Functions

 TextureCoords ()
 
 TextureCoords (int x, int y, int width, int height, int texWidth, int texHeight, bool cwRot)
 

Public Attributes

float uMin = 0.0f
 
float uMax = 1.0f
 
float vMin = 0.0f
 
float vMax = 1.0f
 
int xMinPixel = 0
 
int xMaxPixel = 1
 
int yMinPixel = 0
 
int yMaxPixel = 1
 
float aspectRatioPixel = 1.0f
 
float aspectRatioPixelInverse = 1.0f
 
bool cwRotated = false
 

Constructor & Destructor Documentation

◆ TextureCoords() [1/2]

yourgame::gl::TextureCoords::TextureCoords ( )
inline

◆ TextureCoords() [2/2]

yourgame::gl::TextureCoords::TextureCoords ( int  x,
int  y,
int  width,
int  height,
int  texWidth,
int  texHeight,
bool  cwRot 
)
inline

Member Data Documentation

◆ aspectRatioPixel

float yourgame::gl::TextureCoords::aspectRatioPixel = 1.0f

◆ aspectRatioPixelInverse

float yourgame::gl::TextureCoords::aspectRatioPixelInverse = 1.0f

◆ cwRotated

bool yourgame::gl::TextureCoords::cwRotated = false

◆ uMax

float yourgame::gl::TextureCoords::uMax = 1.0f

◆ uMin

float yourgame::gl::TextureCoords::uMin = 0.0f

◆ vMax

float yourgame::gl::TextureCoords::vMax = 1.0f

◆ vMin

float yourgame::gl::TextureCoords::vMin = 0.0f

◆ xMaxPixel

int yourgame::gl::TextureCoords::xMaxPixel = 1

◆ xMinPixel

int yourgame::gl::TextureCoords::xMinPixel = 0

◆ yMaxPixel

int yourgame::gl::TextureCoords::yMaxPixel = 1

◆ yMinPixel

int yourgame::gl::TextureCoords::yMinPixel = 0

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