|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CTextureNear Class ReferenceA texture container for lot of little lightmap.
More...
#include <texture_near.h>
Inheritance diagram for NL3D::CTextureNear
[legend]Collaboration diagram for NL3D::CTextureNear:
[legend]List of all members.
Detailed Description
A texture container for lot of little lightmap.
-
Author(s):
-
Lionel Berenguier , Nevrax France
-
Date:
-
2000
Definition at line 51 of file texture_near.h.
Constructor & Destructor Documentation
NL3D::CTextureNear::CTextureNear (
|
sint size )
|
|
NL3D::CTextureNear::CTextureNear (
|
) [inline]
|
|
|
TextureNear are system. Do not need to serialize them...
Definition at line 82 of file texture_near.h. |
Member Function Documentation
NL3D::CTextureNear::NLMISC_DECLARE_CLASS (
|
CTextureNear )
|
|
void NL3D::CTextureNear::doGenerate (
|
) [inline, virtual]
|
|
sint NL3D::CTextureNear::getNbAvailableTiles (
|
)
|
|
uint NL3D::CTextureNear::getTileAndFillRect (
|
CRGBA map[NL_TILE_LIGHTMAP_SIZE *NL_TILE_LIGHTMAP_SIZE] )
|
|
|
return the id of the tile, locally in the texture.
nlassert() if no free tiles (use getNbAvailableTiles()). Tile coordinate in the texture can be get with: s= id% nbTilesByLine; t= id/ nbTilesByLine; where nbTilesByLine== sizeOfTextureNear/NL_TILE_LIGHTMAP_SIZE. The texture is invalidate (on this part only...)
Definition at line 68 of file texture_near.cpp. |
void NL3D::CTextureNear::releaseTile (
|
uint id )
|
|
|
Set a tile lightmap as free for use. It is an error to free a not allocated tile. (nlassert!!).
Definition at line 96 of file texture_near.cpp. |
Member Data Documentation
std::vector< bool > NL3D::CTextureNear::_AvailableTiles [private]
|
|
std::vector< uint > NL3D::CTextureNear::_FreeTiles [private]
|
|
The documentation for this class was generated from the following files:
|
|