OV::OVTexture2d Struct Reference

#include <ovtexture2d.h>


Public Member Functions

 OVTexture2d ()
 The constructor of the Texture struct.
 OVTexture2d (const char *texture, bool useMipMap=false)
 The constructor of the Texture struct.
 ~OVTexture2d ()
 The destructor of the Texture struct.
void Load (const char *texture, bool useMipMap=false)
 Loads a given texture to VRAM.

Data Fields

GLuint texID
GLuint type
int width
int height
int bpp
char * filename


Constructor & Destructor Documentation

OV::OVTexture2d::OVTexture2d (  ) 

The constructor of the Texture struct.

Initializes all variables.

OV::OVTexture2d::OVTexture2d ( const char *  texture,
bool  useMipMap = false 
)

The constructor of the Texture struct.

Initializes all variables and loads the given texture.

Parameters:
texture The name of the file which will be used as a texture.

OV::OVTexture2d::~OVTexture2d (  ) 

The destructor of the Texture struct.


Member Function Documentation

void OV::OVTexture2d::Load ( const char *  texture,
bool  useMipMap = false 
)

Loads a given texture to VRAM.

Parameters:
texture The filename of the texture
Returns:
void


Field Documentation

GLuint OV::OVTexture2d::texID

Texture ID

GLuint OV::OVTexture2d::type

Byte order, GL_RGB or GL_RGBA

int OV::OVTexture2d::width

Texture width in pixels

int OV::OVTexture2d::height

Texture height in pixels

int OV::OVTexture2d::bpp

Bits per pixel

char* OV::OVTexture2d::filename

Stored filename to texture file


The documentation for this struct was generated from the following files:
Generated on Thu May 17 20:28:04 2007 for Ocean View by  doxygen 1.5.2