7 #ifndef CAFU_SCENEGRAPH_LIGHTMAP_MANAGER_HPP_INCLUDED
8 #define CAFU_SCENEGRAPH_LIGHTMAP_MANAGER_HPP_INCLUDED
10 #include "Templates/Array.hpp"
29 static const unsigned int SIZE_S;
30 static const unsigned int SIZE_T;
31 static const unsigned int INIT_COLOR1;
32 static const unsigned int INIT_COLOR2;
43 bool Allocate(
unsigned int SizeS,
unsigned int SizeT,
unsigned long& BitmapNr,
unsigned int& PosS,
unsigned int& PosT);
47 void InitTextures(
const float Gamma,
const int AmbientR,
const int AmbientG,
const int AmbientB);
61 bool AllocateHelper(
unsigned int SizeS,
unsigned int SizeT,
unsigned int& PosS,
unsigned int& PosT);
This class manages lightmaps, e.g. by "allocating" rectangular areas in larger bitmaps.
Definition: LightMapMan.hpp:25
LightMapManT()
The constructor.
Definition: LightMapMan.cpp:21
void InitTextures(const float Gamma, const int AmbientR, const int AmbientG, const int AmbientB)
Initializes the MatSys textures in the Textures and Textures2 arrays.
Definition: LightMapMan.cpp:79
This class represents a RGBA bitmap.
Definition: Bitmap.hpp:20
~LightMapManT()
The destructor.
Definition: LightMapMan.cpp:28
bool Allocate(unsigned int SizeS, unsigned int SizeT, unsigned long &BitmapNr, unsigned int &PosS, unsigned int &PosT)
Finds a position for a rectangular lightmap within LightMaps[LightMaps.Size()-1].Data.
Definition: LightMapMan.cpp:51