TextureMasked Class Reference

Represents a Masked Texture. More...

#include <TextureMasked.h>

Inherits TextureInterface.

Inheritance diagram for TextureMasked:

Inheritance graph
[legend]
Collaboration diagram for TextureMasked:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TextureMasked ()
 Stadard costructor.
virtual ~TextureMasked ()
 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.
int handlerMask
 Holds the handler to the texture mask.

Detailed Description

Represents a Masked Texture.

Definition at line 29 of file TextureMasked.h.


Constructor & Destructor Documentation

TextureMasked::TextureMasked (  ) 

Stadard costructor.

Definition at line 27 of file TextureMasked.cpp.

References handlerMask, and handlerTexture.

TextureMasked::~TextureMasked (  )  [virtual]

Standard destructor.

Definition at line 32 of file TextureMasked.cpp.


Member Function Documentation

int TextureMasked::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 TextureMasked.cpp.

References handlerMask, and handlerTexture.

int TextureMasked::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 87 of file TextureMasked.cpp.

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

Here is the call graph for this function:


Member Data Documentation

int TextureMasked::handlerTexture

Holds the handler to the texture.

Definition at line 61 of file TextureMasked.h.

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

int TextureMasked::handlerMask

Holds the handler to the texture mask.

Definition at line 66 of file TextureMasked.h.

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


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