# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CMeshMRMGeom::CLod Class Reference

A LOD of the MRM. More...

List of all members.

Public Methods

 CLod ()
void serial (NLMISC::IStream &f)
void buildSkinVertexBlocks ()
void optimizeTriangleOrder ()

Public Attributes

uint32 NWedges
 The number of vertex in The VB this Lod needs. More...

std::vector< CMRMWedgeGeomGeomorphs
 List of geomorph, for this LOD. More...

std::vector< CRdrPassRdrPass
 List of rdr pass, for this LOD. More...

std::vector< uint32InfluencedVertices [NL3D_MESH_SKINNING_MAX_MATRIX]
 Skinning: list of influenced vertices to compute, for this lod only. More...

std::vector< uint32MatrixInfluences
 Skinning: list of Matrix which influence this Lod. So we know what matrix to compute. More...

bool OriginalSkinRestored
 Skinning: does the VBuffer part of this Lod contains original skin vertices. More...

std::vector< CVertexBlockSkinVertexBlocks
 Skinning: list of vertex blocks to copy from RAM to AGP, for this Lod only. More...


Detailed Description

A LOD of the MRM.

Definition at line 316 of file mesh_mrm.h.


Constructor & Destructor Documentation

NL3D::CMeshMRMGeom::CLod::CLod   [inline]
 

Definition at line 341 of file mesh_mrm.h.

References OriginalSkinRestored.


Member Function Documentation

void NL3D::CMeshMRMGeom::CLod::buildSkinVertexBlocks  
 

Definition at line 104 of file mesh_mrm.cpp.

References NLMISC::contReset, index, InfluencedVertices, NL3D_MESH_SKINNING_MAX_MATRIX, NWedges, and SkinVertexBlocks.

Referenced by serial.

void NL3D::CMeshMRMGeom::CLod::optimizeTriangleOrder  
 

Definition at line 163 of file mesh_mrm.cpp.

References RdrPass.

Referenced by serial.

void NL3D::CMeshMRMGeom::CLod::serial NLMISC::IStream   f
 

Definition at line 65 of file mesh_mrm.cpp.

References buildSkinVertexBlocks, Geomorphs, InfluencedVertices, MatrixInfluences, NL3D_MESH_SKINNING_MAX_MATRIX, nlassert, NWedges, optimizeTriangleOrder, RdrPass, NLMISC::IStream::serial, NLMISC::IStream::serialCont, NLMISC::IStream::serialVersion, and SkinVertexBlocks.


Member Data Documentation

std::vector<CMRMWedgeGeom> NL3D::CMeshMRMGeom::CLod::Geomorphs
 

List of geomorph, for this LOD.

Definition at line 322 of file mesh_mrm.h.

Referenced by serial.

std::vector<uint32> NL3D::CMeshMRMGeom::CLod::InfluencedVertices[NL3D_MESH_SKINNING_MAX_MATRIX]
 

Skinning: list of influenced vertices to compute, for this lod only.

There is 4 array, 0th is for vertices which have only one matrix. 1st if for vertices which have only 2 matrix ....

Definition at line 329 of file mesh_mrm.h.

Referenced by buildSkinVertexBlocks, and serial.

std::vector<uint32> NL3D::CMeshMRMGeom::CLod::MatrixInfluences
 

Skinning: list of Matrix which influence this Lod. So we know what matrix to compute.

Definition at line 331 of file mesh_mrm.h.

Referenced by serial.

uint32 NL3D::CMeshMRMGeom::CLod::NWedges
 

The number of vertex in The VB this Lod needs.

Definition at line 320 of file mesh_mrm.h.

Referenced by buildSkinVertexBlocks, and serial.

bool NL3D::CMeshMRMGeom::CLod::OriginalSkinRestored
 

Skinning: does the VBuffer part of this Lod contains original skin vertices.

Definition at line 333 of file mesh_mrm.h.

Referenced by CLod.

std::vector<CRdrPass> NL3D::CMeshMRMGeom::CLod::RdrPass
 

List of rdr pass, for this LOD.

Definition at line 324 of file mesh_mrm.h.

Referenced by optimizeTriangleOrder, and serial.

std::vector<CVertexBlock> NL3D::CMeshMRMGeom::CLod::SkinVertexBlocks
 

Skinning: list of vertex blocks to copy from RAM to AGP, for this Lod only.

NB: it is constructed from InfluencedVertices. Only usefull if skinned.

Definition at line 337 of file mesh_mrm.h.

Referenced by buildSkinVertexBlocks, and serial.


The documentation for this class was generated from the following files: