# 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::CPatchRdrPass Class Reference

A render pass for a landscape material (tile or texture far). More...

#include <patch_rdr_pass.h>

Inheritance diagram for NL3D::CPatchRdrPass:

NLMISC::CRefCount List of all members.

Public Methods

 CPatchRdrPass ()
bool operator< (const CPatchRdrPass &o) const
The Patch/Tile List for this pass.. updated at each render(), (in CPatch::preRender() and CLandscape::render()).
void clearAllRenderList ()
void appendRdrPatchFar0 (CRdrPatchId *rdrPatch, uint maxRenderedFaces)
void appendRdrPatchFar1 (CRdrPatchId *rdrPatch, uint maxRenderedFaces)
void appendRdrPatchTile (uint pass, CRdrTileId *rdrTile, uint maxRenderedFaces)
CRdrPatchIdgetRdrPatchFar0 ()
CRdrPatchIdgetRdrPatchFar1 ()
CRdrTileIdgetRdrTileRoot (uint pass)
uint getMaxRenderedFaces () const

Public Attributes

sint RefCount
The Tiny material for this pass.
NLMISC::CSmartPtr< ITextureTextureDiffuse
NLMISC::CSmartPtr< ITextureTextureAlpha

Private Attributes

uint _MaxRenderedFaces
CRdrPatchId_Far0ListRoot
CRdrPatchId_Far1ListRoot
CRdrTileId_TileListRoot [NL3D_MAX_TILE_PASS]

Detailed Description

A render pass for a landscape material (tile or texture far).

Has list of Patch / TileId.

Definition at line 85 of file patch_rdr_pass.h.


Constructor & Destructor Documentation

NL3D::CPatchRdrPass::CPatchRdrPass  
 

Definition at line 55 of file patch_rdr_pass.cpp.

References clearAllRenderList, and RefCount.

Referenced by operator<.


Member Function Documentation

void NL3D::CPatchRdrPass::appendRdrPatchFar0 CRdrPatchId   rdrPatch,
uint    maxRenderedFaces
[inline]
 

Definition at line 108 of file patch_rdr_pass.h.

References _Far0ListRoot, and _MaxRenderedFaces.

void NL3D::CPatchRdrPass::appendRdrPatchFar1 CRdrPatchId   rdrPatch,
uint    maxRenderedFaces
[inline]
 

Definition at line 114 of file patch_rdr_pass.h.

References _Far1ListRoot, and _MaxRenderedFaces.

void NL3D::CPatchRdrPass::appendRdrPatchTile uint    pass,
CRdrTileId   rdrTile,
uint    maxRenderedFaces
[inline]
 

Definition at line 120 of file patch_rdr_pass.h.

References _MaxRenderedFaces, and _TileListRoot.

void NL3D::CPatchRdrPass::clearAllRenderList  
 

Since all Far0/Far1/Tiles are added, this is REALLY over-estimated because in CLandscape::render(), Far0/Far1/Tiles render are split.

Definition at line 64 of file patch_rdr_pass.cpp.

References _Far0ListRoot, _Far1ListRoot, _MaxRenderedFaces, _TileListRoot, and NL3D_MAX_TILE_PASS.

Referenced by CPatchRdrPass.

uint NL3D::CPatchRdrPass::getMaxRenderedFaces   const [inline]
 

Definition at line 129 of file patch_rdr_pass.h.

References _MaxRenderedFaces.

CRdrPatchId* NL3D::CPatchRdrPass::getRdrPatchFar0   [inline]
 

Definition at line 126 of file patch_rdr_pass.h.

References _Far0ListRoot.

CRdrPatchId* NL3D::CPatchRdrPass::getRdrPatchFar1   [inline]
 

Definition at line 127 of file patch_rdr_pass.h.

References _Far1ListRoot.

CRdrTileId* NL3D::CPatchRdrPass::getRdrTileRoot uint    pass [inline]
 

Definition at line 128 of file patch_rdr_pass.h.

References _TileListRoot.

bool NL3D::CPatchRdrPass::operator< const CPatchRdrPass &    o const [inline]
 

Definition at line 137 of file patch_rdr_pass.h.

References CPatchRdrPass.


Member Data Documentation

CRdrPatchId* NL3D::CPatchRdrPass::_Far0ListRoot [private]
 

Definition at line 149 of file patch_rdr_pass.h.

Referenced by appendRdrPatchFar0, clearAllRenderList, and getRdrPatchFar0.

CRdrPatchId* NL3D::CPatchRdrPass::_Far1ListRoot [private]
 

Definition at line 150 of file patch_rdr_pass.h.

Referenced by appendRdrPatchFar1, clearAllRenderList, and getRdrPatchFar1.

uint NL3D::CPatchRdrPass::_MaxRenderedFaces [private]
 

Definition at line 147 of file patch_rdr_pass.h.

Referenced by appendRdrPatchFar0, appendRdrPatchFar1, appendRdrPatchTile, clearAllRenderList, and getMaxRenderedFaces.

CRdrTileId* NL3D::CPatchRdrPass::_TileListRoot[NL3D_MAX_TILE_PASS] [private]
 

Definition at line 152 of file patch_rdr_pass.h.

Referenced by appendRdrPatchTile, clearAllRenderList, and getRdrTileRoot.

sint NL3D::CPatchRdrPass::RefCount
 

Definition at line 89 of file patch_rdr_pass.h.

Referenced by CPatchRdrPass.

NLMISC::CSmartPtr<ITexture> NL3D::CPatchRdrPass::TextureAlpha
 

Definition at line 96 of file patch_rdr_pass.h.

NLMISC::CSmartPtr<ITexture> NL3D::CPatchRdrPass::TextureDiffuse
 

Definition at line 94 of file patch_rdr_pass.h.


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