Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Texture Class Reference

#include <texture.h>

List of all members.

Public Methods

 Texture (const char *texturefile, enum AlphaModes alpha, bool mipmap, int minfilter, int magfilter, int wrapmode)
 ~Texture ()
int width ()
int height ()
GLint getTextureID ()
const char * getFilename ()
bool isSameFile (const char *fname)

Private Attributes

GLint texture_id
int twidth
int theight
const char * filename


Constructor & Destructor Documentation

Texture::Texture const char *   texturefile,
enum AlphaModes   alpha,
bool   mipmap,
int   minfilter,
int   magfilter,
int   wrapmode
 

Create new texture from bitmap file. Currently supports only PNG. It's better to use Renderer's texture management than this class.

Texture::~Texture  
 


Member Function Documentation

const char* Texture::getFilename   [inline]
 

Return texture filename.

GLint Texture::getTextureID   [inline]
 

Return GL texture ID or zero if no texture loaded.

int Texture::height   [inline]
 

Return texture height in pixels.

bool Texture::isSameFile const char *   fname
 

Compares fname with current texture filename and return true if names are poining at same file.

int Texture::width   [inline]
 

Return texture width in pixels.


Member Data Documentation

const char* Texture::filename [private]
 

GLint Texture::texture_id [private]
 

int Texture::theight [private]
 

int Texture::twidth [private]
 


The documentation for this class was generated from the following file:
Generated at Fri Oct 5 20:23:53 2001 for Executor by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001