#include <TextureMasked.h>
Inherits TextureInterface.
Inheritance diagram for TextureMasked:
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. |
Definition at line 29 of file TextureMasked.h.
TextureMasked::TextureMasked | ( | ) |
Stadard costructor.
Definition at line 27 of file TextureMasked.cpp.
References handlerMask, and handlerTexture.
TextureMasked::~TextureMasked | ( | ) | [virtual] |
int TextureMasked::render | ( | double | x_begin, | |
double | x_end, | |||
double | y_begin, | |||
double | y_end | |||
) | [virtual] |
Renders the plane with the textures on it.
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.
p_filename | Filename for the texture to load. | |
p_modifikationflag | Flag for postprocess modifying. |
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:
Holds the handler to the texture.
Definition at line 61 of file TextureMasked.h.
Referenced by loadAndBind(), render(), and TextureMasked().
Holds the handler to the texture mask.
Definition at line 66 of file TextureMasked.h.
Referenced by loadAndBind(), render(), and TextureMasked().