|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CLandscapeVegetableBlock Class ReferenceA block of vegetable IG (one IG per distance type).
More...
#include <landscape_vegetable_block.h>
Inheritance diagram for NL3D::CLandscapeVegetableBlock:
List of all members.
Public Methods |
| CLandscapeVegetableBlock () |
| Constructor. More...
|
void | init (const CVector ¢er, CVegetableManager *vegetManager, CVegetableClipBlock *vegetableClipBlock, CPatch *patch, uint ts, uint tt, CTessList< CLandscapeVegetableBlock > &list) |
| build the vegetable block, create sortBlocks, and append to list. More...
|
void | release (CVegetableManager *vegeManager, CTessList< CLandscapeVegetableBlock > &list) |
| release all IGs, reset the Vegetable block and remove from list. call before destruction. More...
|
void | update (const CVector &viewCenter, CVegetableManager *vegeManager) |
| update state of the vegetableBlock. More...
|
Private Methods |
void | createVegetableIGForDistType (uint i, CVegetableManager *vegeManager, CLandscapeVegetableBlockCreateContext &vbCreateCtx) |
Private Attributes |
CVector | _Center |
| The center of this object, to compute distance. More...
|
CVegetableClipBlock * | _VegetableClipBlock |
| To which VegetableClipBlock we must add vegetables IGs. More...
|
CPatch * | _Patch |
| Which patch owns this block. More...
|
uint8 | _Ts |
| Coordinate of the lower-left tile. 2x2 tile vegetables are generated. More...
|
uint8 | _Tt |
| Coordinate of the lower-left tile. 2x2 tile vegetables are generated. More...
|
uint8 | _CurDistType |
| The current distance type. 0 means all IG are created. NL3D_VEGETABLE_BLOCK_NUMDIST means none. More...
|
CVegetableSortBlock * | _VegetableSortBlock [NL3D_TESSBLOCK_TILESIZE] |
| The sortBlocks generated by this vegetable block, one for each tilematerial. More...
|
CVegetableInstanceGroup * | _VegetableIG [NL3D_TESSBLOCK_TILESIZE][NL3D_VEGETABLE_BLOCK_NUMDIST] |
| The instance groups generated by this vegetable block, one for each distance type. and one per each tilematerial. More...
|
Detailed Description
A block of vegetable IG (one IG per distance type).
NB: there is one CLandscapeVegetableBlock per landscape TessBlock. -
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 63 of file landscape_vegetable_block.h.
Constructor & Destructor Documentation
NL3D::CLandscapeVegetableBlock::CLandscapeVegetableBlock |
( |
|
) |
|
|
Member Function Documentation
|
build the vegetable block, create sortBlocks, and append to list.
Definition at line 89 of file landscape_vegetable_block.cpp.
References _Center, _Patch, _Ts, _Tt, _VegetableClipBlock, _VegetableSortBlock, NL3D_PATCH_TILE_RADIUS, NL3D_TESSBLOCK_TILESIZE, nlassert, s, and t. |
void NL3D::CLandscapeVegetableBlock::update |
( |
const CVector & |
viewCenter, |
|
|
CVegetableManager * |
vegeManager |
|
) |
|
|
Member Data Documentation
CVector NL3D::CLandscapeVegetableBlock::_Center [private]
|
|
uint8 NL3D::CLandscapeVegetableBlock::_CurDistType [private]
|
|
CPatch* NL3D::CLandscapeVegetableBlock::_Patch [private]
|
|
uint8 NL3D::CLandscapeVegetableBlock::_Ts [private]
|
|
uint8 NL3D::CLandscapeVegetableBlock::_Tt [private]
|
|
CVegetableInstanceGroup* NL3D::CLandscapeVegetableBlock::_VegetableIG[NL3D_TESSBLOCK_TILESIZE][NL3D_VEGETABLE_BLOCK_NUMDIST] [private]
|
|
CVegetableSortBlock* NL3D::CLandscapeVegetableBlock::_VegetableSortBlock[NL3D_TESSBLOCK_TILESIZE] [private]
|
|
The documentation for this class was generated from the following files:
|
|