|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CVegetableSortBlock Class ReferenceA block of vegetable instance groups.
More...
#include <vegetable_sort_block.h>
Inheritance diagram for NL3D::CVegetableSortBlock:
List of all members.
Detailed Description
A block of vegetable instance groups.
CVegetableSortBlock are sorted in Z order. NB: for speed and convenience, only the RdrPass NL3D_VEGETABLE_RDRPASS_UNLIT_2SIDED_ZSORT is sorted. A block have a number of quadrants (8). Each quadrant has an array of triangles to render. Internal to VegetableManager. Just an Handle for public. -
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 56 of file vegetable_sort_block.h.
Constructor & Destructor Documentation
NL3D::CVegetableSortBlock::CVegetableSortBlock |
( |
|
) |
|
|
Member Function Documentation
const CVector& NL3D::CVegetableSortBlock::getCenter |
( |
|
) |
const [inline] |
|
|
After adding some instance to any instance group of a sorted block, you must recall this method NB: CVegetableManager::addInstance() and CVegetableManager::deleteIg() flag this SB as Dirty, when needed only.
if !Dirty, updateSortBlock() is a no-op. /see CVegetableManager::addInstance() CVegetableManager::deleteIg() Warning! Use OptFastFloor()! So call must be enclosed with a OptFastFloorBegin()/OptFastFloorEnd().
Definition at line 73 of file vegetable_sort_block.cpp.
References _Dirty, _InstanceGroupList, _NIndices, _NTriangles, _SortedTriangleArray, _SortedTriangleIndices, NLMISC::CObjectVector< uint32, false >::clear, NLMISC::CObjectVector< uint32, false >::getPtr, NL3D_VEGETABLE_NUM_QUADRANT, NL3D_VEGETABLE_RDRPASS_UNLIT_2SIDED_ZSORT, nlassert, and NLMISC::CObjectVector< uint32, false >::resize. |
Friends And Related Function Documentation
friend class CSortVSB [friend]
|
|
friend class CVegetableBlendLayerModel [friend]
|
|
friend class CVegetableClipBlock [friend]
|
|
friend class CVegetableManager [friend]
|
|
Member Data Documentation
CVector NL3D::CVegetableSortBlock::_Center [private]
|
|
bool NL3D::CVegetableSortBlock::_Dirty [private]
|
|
uint NL3D::CVegetableSortBlock::_NIndices [private]
|
|
uint NL3D::CVegetableSortBlock::_NTriangles [private]
|
|
uint NL3D::CVegetableSortBlock::_QuadrantId [private]
|
|
float NL3D::CVegetableSortBlock::_Radius [private]
|
|
uint32* NL3D::CVegetableSortBlock::_SortedTriangleIndices[NL3D_VEGETABLE_NUM_QUADRANT] [private]
|
|
float NL3D::CVegetableSortBlock::_SortKey [private]
|
|
|
Positive value used for sort. (square of distance to viewer + threshold). temp computed at each render().
Definition at line 101 of file vegetable_sort_block.h. |
bool NL3D::CVegetableSortBlock::_UnderWater [private]
|
|
bool NL3D::CVegetableSortBlock::ZSortHardMode [private]
|
|
The documentation for this class was generated from the following files:
|
|