[AE Engine logo] Public API Reference
Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

aeTexture Class Reference

A single texture object. More...

#include <texture.h>

Inheritance diagram for aeTexture:

aeBase List of all members.

Public Member Functions

 aeTexture (char *, unsigned char *, unsigned int width, unsigned int height, unsigned int bpp)
 Create a texture.

unsigned char * getData () const
 Get the texture's data.

char * getName () const
 Get the texture's name.

unsigned int getWidth () const
 Get the texture's width.

unsigned int getHeight () const
 Get the texture's height.

int getBitsPerPixel () const
 Get the BPP for the texture.

aeTexMode getTexMode () const
 Get the texture mode for this texture.

void setTexMode (aeTexMode)
 Set the texture mode for this texture.

Public Attributes

GLuint t_id
 This is the texture's id.

Private Attributes

unsigned char * t_buffer
unsigned int t_width
unsigned int t_height
unsigned int t_bpp
char * t_string
aeTexMode t_texmode

Detailed Description

A single texture object.

Definition at line 38 of file texture.h.

Constructor & Destructor Documentation

aeTexture::aeTexture char *   ,
unsigned char *   ,
unsigned int    width,
unsigned int    height,
unsigned int    bpp

Create a texture.

Normally you don't never do this yourself, since the texture loader will do it.

Member Function Documentation

int aeTexture::getBitsPerPixel   const [inline]

Get the BPP for the texture.

The BPP value for the texture.

Definition at line 99 of file texture.h.

unsigned char* aeTexture::getData   const [inline]

Get the texture's data.

The texture's data.

Definition at line 67 of file texture.h.

unsigned int aeTexture::getHeight   const [inline]

Get the texture's height.

the texture's height

Definition at line 91 of file texture.h.

char* aeTexture::getName   const [inline]

Get the texture's name.

The texture's name.

Definition at line 75 of file texture.h.

aeTexMode aeTexture::getTexMode   const [inline]

Get the texture mode for this texture.

The texture mode

Definition at line 107 of file texture.h.

unsigned int aeTexture::getWidth   const [inline]

Get the texture's width.

The texture's width

Definition at line 83 of file texture.h.

void aeTexture::setTexMode aeTexMode   

Set the texture mode for this texture.

Available texture modes are:


aeTexMode The texturemode

The documentation for this class was generated from the following file:
AE Engine Public API Reference
Generated on Wed Apr 9 09:43:41 2003 by Doxygen.