#include <spLightmapGeneratorStructs.hpp>
Public Member Functions | |
SLightmap (const dim::size2di &ImageSize, bool UseTexelBuffer=true) | |
~SLightmap () | |
video::Texture * | createTexture (const video::color &AmbientColor) |
void | copyImageBuffers () |
void | reduceBleeding () |
dim::point2df | getTexCoord (const dim::point2di &RealPos) const |
dim::vector3df | getAverageColor (s32 X, s32 Y) const |
void | getAverageColorPart (s32 X, s32 Y, dim::vector3df &Color, s32 &Counter) const |
SLightmapTexel & | getTexel (s32 X, s32 Y) |
const SLightmapTexel & | getTexel (s32 X, s32 Y) const |
dim::size2di | getSize () const |
void | setupTreeNode (TRectNode *Node) |
Public Attributes | |
dim::size2di | Size |
SLightmapTexel * | TexelBuffer |
video::Texture * | Texture |
TRectNode * | RectNode |
sp::tool::LightmapGen::SLightmap::SLightmap | ( | const dim::size2di & | ImageSize, | |
bool | UseTexelBuffer = true | |||
) |
sp::tool::LightmapGen::SLightmap::~SLightmap | ( | ) |
void sp::tool::LightmapGen::SLightmap::copyImageBuffers | ( | ) |
video::Texture* sp::tool::LightmapGen::SLightmap::createTexture | ( | const video::color & | AmbientColor | ) |
dim::vector3df sp::tool::LightmapGen::SLightmap::getAverageColor | ( | s32 | X, | |
s32 | Y | |||
) | const |
void sp::tool::LightmapGen::SLightmap::getAverageColorPart | ( | s32 | X, | |
s32 | Y, | |||
dim::vector3df & | Color, | |||
s32 & | Counter | |||
) | const |
dim::size2di sp::tool::LightmapGen::SLightmap::getSize | ( | ) | const [inline] |
dim::point2df sp::tool::LightmapGen::SLightmap::getTexCoord | ( | const dim::point2di & | RealPos | ) | const |
SLightmapTexel& sp::tool::LightmapGen::SLightmap::getTexel | ( | s32 | X, | |
s32 | Y | |||
) | [inline] |
const SLightmapTexel& sp::tool::LightmapGen::SLightmap::getTexel | ( | s32 | X, | |
s32 | Y | |||
) | const [inline] |
void sp::tool::LightmapGen::SLightmap::reduceBleeding | ( | ) |
void sp::tool::LightmapGen::SLightmap::setupTreeNode | ( | TRectNode * | Node | ) | [inline] |