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

Texture Class Reference

#include <Texture.H>

List of all members.

Public Methods

 Texture (str_ptr name, int texType, int width, int height)
 Texture (str_ptr filename, str_ptr name, bool hasRealAlpha=false, int isStencil=false)
virtual ~Texture ()
float * pixelPtr (int w, int h)
void setPixel (int w, int h, Color c)
Color getPixel (int w, int h)
void expandToRGBA ()
void replaceCol (Color col1, Color col2)
void contextInit ()
void bindChangesToGL ()
str_ptr name () const
str_ptr filename () const
int type () const
int width () const
int height () const
GLuint glName ()
GLuint glAlphaName ()
int hasRealAlpha () const
int isStencil () const
double aspect () const
void setHasRealAlpha (const int a)
void setStencil (const int sten)
void fill (Color c)
void print ()
void printRow (int h)
int load (str_ptr filename)
int save (str_ptr filename)
int loadRGB (const char *fname)
int loadPNM (const char *fname)
int loadTarga (const char *fname)
int saveTarga (const char *fname)

Protected Attributes

str_ptr _name
str_ptr _filename
GLfloat * _texels
isGlContextData< GLuint > _glname
isGlContextData< GLuint > _glAlphaName
int _texType
int _width
int _height
int _hasRealAlpha
int _isStencil
double _aspect


Constructor & Destructor Documentation

Texture::Texture (  str_ptr    name,
int    texType,
int    width,
int    height
) 
 

Texture::Texture (  str_ptr    filename,
str_ptr    name,
bool    hasRealAlpha = false,
int    isStencil = false
) 
 

Texture::~Texture (    )  [virtual]
 


Member Function Documentation

double Texture::aspect (    )  const [inline]
 

void Texture::bindChangesToGL (    ) 
 

void Texture::contextInit (    ) 
 

void Texture::expandToRGBA (    ) 
 

str_ptr Texture::filename (    )  const [inline]
 

void Texture::fill (  Color    c )  [inline]
 

Color Texture::getPixel (  int    w,
int    h
)  [inline]
 

GLuint Texture::glAlphaName (    )  [inline]
 

GLuint Texture::glName (    )  [inline]
 

int Texture::hasRealAlpha (    )  const [inline]
 

int Texture::height (    )  const [inline]
 

int Texture::isStencil (    )  const [inline]
 

int Texture::load (  str_ptr    filename ) 
 

int Texture::loadPNM (  const char *    fname ) 
 

int Texture::loadRGB (  const char *    fname ) 
 

int Texture::loadTarga (  const char *    fname ) 
 

str_ptr Texture::name (  void    )  const [inline]
 

float* Texture::pixelPtr (  int    w,
int    h
)  [inline]
 

void Texture::print (    )  [inline]
 

void Texture::printRow (  int    h )  [inline]
 

void Texture::replaceCol (  Color    col1,
Color    col2
) 
 

int Texture::save (  str_ptr    filename ) 
 

int Texture::saveTarga (  const char *    fname ) 
 

void Texture::setHasRealAlpha (  const int    a )  [inline]
 

void Texture::setPixel (  int    w,
int    h,
Color    c
)  [inline]
 

void Texture::setStencil (  const int    sten )  [inline]
 

int Texture::type (    )  const [inline]
 

int Texture::width (    )  const [inline]
 


Member Data Documentation

double Texture::_aspect [protected]
 

str_ptr Texture::_filename [protected]
 

isGlContextData<GLuint> Texture::_glAlphaName [protected]
 

isGlContextData<GLuint> Texture::_glname [protected]
 

int Texture::_hasRealAlpha [protected]
 

int Texture::_height [protected]
 

int Texture::_isStencil [protected]
 

str_ptr Texture::_name [protected]
 

GLfloat* Texture::_texels [protected]
 

int Texture::_texType [protected]
 

int Texture::_width [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 15 16:27:58 2003 for inspace by doxygen1.2.18