TextureAlpha Class Reference

Represents a Alpha Texture. More...

#include <TextureAlpha.h>

Inherits TextureInterface.

Inheritance diagram for TextureAlpha:

Inheritance graph
[legend]
Collaboration diagram for TextureAlpha:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TextureAlpha ()
 Stadard costructor.
virtual ~TextureAlpha ()
 Standard destructor.
virtual int render (double x_begin, double x_end, double y_begin, double y_end)
 Renders the plane with the textures on it.
virtual int loadAndBind (std::string p_filename, eTextureModification p_modifikationflag=TM_Masked_Normal)
 Loads and binds the texture and generates a mask and also binds it.

Public Attributes

int handlerTexture
 Holds the handler to the texture.

Detailed Description

Represents a Alpha Texture.

Definition at line 29 of file TextureAlpha.h.


Constructor & Destructor Documentation

TextureAlpha::TextureAlpha (  ) 

Stadard costructor.

Definition at line 27 of file TextureAlpha.cpp.

References handlerTexture.

TextureAlpha::~TextureAlpha (  )  [virtual]

Standard destructor.

Definition at line 32 of file TextureAlpha.cpp.


Member Function Documentation

int TextureAlpha::render ( double  x_begin,
double  x_end,
double  y_begin,
double  y_end 
) [virtual]

Renders the plane with the textures on it.

Returns:
0 for success.

Implements TextureInterface.

Definition at line 38 of file TextureAlpha.cpp.

References handlerTexture.

int TextureAlpha::loadAndBind ( std::string  p_filename,
eTextureModification  p_modifikationflag = TM_Masked_Normal 
) [virtual]

Loads and binds the texture and generates a mask and also binds it.

Parameters:
p_filename Filename for the texture to load.
p_modifikationflag Flag for postprocess modifying.
Returns:
0 for success.

Implements TextureInterface.

Definition at line 69 of file TextureAlpha.cpp.

References _BITMAPINFOHEADER::biHeight, TextureInterface::bind(), _BITMAPINFOHEADER::biWidth, handlerTexture, TextureData::infoheader, TextureData::l_texture, TextureInterface::loadPNG(), TextureInterface::ratio, and TM_Masked_Normal.

Here is the call graph for this function:


Member Data Documentation

int TextureAlpha::handlerTexture

Holds the handler to the texture.

Definition at line 61 of file TextureAlpha.h.

Referenced by loadAndBind(), render(), and TextureAlpha().


The documentation for this class was generated from the following files:
Generated on Tue Jul 17 22:02:23 2007 for C0re by  doxygen 1.5.2