The index buffer accessor read / write. More...
#include <index_buffer.h>
Public Member Functions | |
| CIndexBufferReadWrite () | |
| ~CIndexBufferReadWrite () | |
| void | unlock () |
| Unlock the index buffer. | |
| void | setLine (uint idx, uint32 i0, uint32 i1) |
| void | setTri (uint idx, uint32 i0, uint32 i1, uint32 i2) |
| void * | getPtr (uint idx=0) |
| void | touchIndexes (uint first, uint last) |
| Touch the updated indexes. | |
| const CIndexBuffer * | getParent () const |
| CIndexBuffer::TFormat | getFormat () const |
| uint | getIndexNumBytes () const |
Private Member Functions | |
| void | operator= (const CIndexBufferReadWrite &) |
| CIndexBufferReadWrite (const CIndexBufferReadWrite &) | |
Private Attributes | |
| CIndexBuffer * | _Parent |
| uint | _First |
| uint | _Last |
Friends | |
| class | CIndexBuffer |
The index buffer accessor read / write.
Definition at line 529 of file index_buffer.h.
| NL3D::CIndexBufferReadWrite::CIndexBufferReadWrite | ( | ) | [inline] |
Definition at line 534 of file index_buffer.h.
References _Parent.
| NL3D::CIndexBufferReadWrite::~CIndexBufferReadWrite | ( | ) | [inline] |
Definition at line 538 of file index_buffer.h.
References unlock().
| NL3D::CIndexBufferReadWrite::CIndexBufferReadWrite | ( | const CIndexBufferReadWrite & | ) | [inline, private] |
Definition at line 650 of file index_buffer.h.
| CIndexBuffer::TFormat NL3D::CIndexBufferReadWrite::getFormat | ( | ) | const [inline] |
Definition at line 643 of file index_buffer.h.
References _Parent, NL3D::CIndexBuffer::getFormat(), and nlassert.
Referenced by NL3D::CMeshGeom::computeMeshVBHeap(), NL3D::initPassTriArray(), NL3D::CVisualCollisionMesh::receiveShadowMap(), NL3D::CIndexBufferInfo::setupIndexBuffer(), NL3D::CMeshMRMSkinnedGeom::updateRawSkinNormal(), NL3D::CMeshMRMSkinnedGeom::updateShiftedTriangleCache(), NL3D::CMeshMRMGeom::updateShiftedTriangleCache(), and NL3D::CVegetableSortBlock::updateSortBlock().
| uint NL3D::CIndexBufferReadWrite::getIndexNumBytes | ( | ) | const [inline] |
Definition at line 644 of file index_buffer.h.
References _Parent, NL3D::CIndexBuffer::getIndexNumBytes(), and nlassert.
Referenced by NL3D::CMeshMRMGeom::computeMeshVBHeap(), NL3D::nlCheckIBA(), and NL3D::nlCheckIBARange().
| const CIndexBuffer* NL3D::CIndexBufferReadWrite::getParent | ( | ) | const [inline] |
Definition at line 641 of file index_buffer.h.
References _Parent.
Referenced by NL3D::nlCheckIBA(), and NL3D::nlCheckIBARange().
| void* NL3D::CIndexBufferReadWrite::getPtr | ( | uint | idx = 0 |
) | [inline] |
Definition at line 617 of file index_buffer.h.
References NL3D::CIndexBuffer::_LockedBuffer, _Parent, NL3D::CIndexBuffer::checkLockedBuffer(), NL3D::CIndexBuffer::getFormat(), NL3D::CIndexBuffer::Indices16, NL3D::CIndexBuffer::Indices32, and nlassert.
Referenced by NL3D::CVegetableManager::addInstance(), NL3D::CLodCharacterManager::addRenderCharacterKey(), NL3D::CMeshMRMGeom::computeMeshVBHeap(), NL3D::CMeshGeom::computeMeshVBHeap(), NL3D::CPSUtil::displayArrow(), NL3D::CCoarseMeshManager::flushRender(), NL3D::CPSFanLight::getVBnIB(), NL3D::initPassTriArray(), NL3D::nlCheckIBA(), NL3D::nlCheckIBARange(), NL3D::CVisualCollisionMesh::receiveShadowMap(), NL3D::CSegRemanence::render(), NL3D::CDriverD3D::renderRawQuads(), NL3D::CShadowPolyReceiver::renderSelection(), NL3D::CMeshMRMSkinnedGeom::renderShadowSkinPrimitives(), NL3D::CMeshMRMGeom::renderShadowSkinPrimitives(), NL3D::CIndexBufferInfo::setupIndexBuffer(), NL3D::CMeshMRMSkinnedGeom::updateRawSkinNormal(), NL3D::CMeshMRMGeom::updateRawSkinNormal(), NL3D::CMeshMRMSkinnedGeom::updateShiftedTriangleCache(), NL3D::CMeshMRMGeom::updateShiftedTriangleCache(), and NL3D::CVegetableSortBlock::updateSortBlock().
| void NL3D::CIndexBufferReadWrite::operator= | ( | const CIndexBufferReadWrite & | ) | [inline, private] |
Definition at line 649 of file index_buffer.h.
Definition at line 557 of file index_buffer.h.
References NL3D::CIndexBuffer::_LockedBuffer, _Parent, NL3D::CIndexBuffer::checkLockedBuffer(), NL3D::CIndexBuffer::getFormat(), NL3D::CIndexBuffer::getNumIndexes(), NL3D::CIndexBuffer::Indices16, NL3D::CIndexBuffer::Indices32, and nlassert.
Referenced by NL3D::CDriverUser::CDriverUser(), NL3D::CPSUtil::displayBBox(), NL3D::CInstanceGroup::displayDebugClusters(), NL3D::CDRU::drawLine(), NL3D::CDRU::drawLinesUnlit(), NL3D::CPSTailDot::getVBnPB(), and NL3D::CPSGravity::show().
Definition at line 585 of file index_buffer.h.
References NL3D::CIndexBuffer::_LockedBuffer, _Parent, NL3D::CIndexBuffer::checkLockedBuffer(), NL3D::CIndexBuffer::getFormat(), NL3D::CIndexBuffer::getNumIndexes(), NL3D::CIndexBuffer::Indices16, NL3D::CIndexBuffer::Indices32, and nlassert.
Referenced by NL3D::CMeshGeom::build(), NL3D::CMRMBuilder::buildMeshBuildMrm(), NL3D::CDriverUser::CDriverUser(), NL3D::CInstanceGroup::displayDebugClusters(), NL3D::CDRU::drawBitmap(), NL3D::CDRU::drawTriangle(), NL3D::CDRU::drawTrianglesUnlit(), NL3D::DuplicatePrimitiveBlock(), NL3D::CMeshMRMSkinnedGeom::CLod::getRdrPassPrimitiveBlock(), NL3D::CPSShockWave::getVBnPB(), NL3D::CPSRibbonLookAt::getVBnPB(), NL3D::CWaterEnvMap::initFlattenVB(), NL3D::CWaterEnvMap::initTestVB(), NL3D::COrderFace::insertInPB(), and NL3D::setTri().
Touch the updated indexes.
If the method is not call, the accessor update all the indexes.
| first | is the index of the first indexes to update. | |
| last | is the index of the last indexes to update + 1. |
| void NL3D::CIndexBufferReadWrite::unlock | ( | ) | [inline] |
Unlock the index buffer.
After this call, the accessor should not be used before a new lock.
Definition at line 547 of file index_buffer.h.
References _First, _Last, _Parent, and NL3D::CIndexBuffer::unlock().
Referenced by NL3D::CInstanceGroup::displayDebugClusters(), NL3D::drawPassTriArray(), NL3D::CCoarseMeshManager::flushRender(), NL3D::CIndexBuffer::lock(), and ~CIndexBufferReadWrite().
friend class CIndexBuffer [friend] |
Definition at line 532 of file index_buffer.h.
uint NL3D::CIndexBufferReadWrite::_First [private] |
Definition at line 653 of file index_buffer.h.
Referenced by NL3D::CIndexBuffer::lock(), and unlock().
uint NL3D::CIndexBufferReadWrite::_Last [private] |
Definition at line 653 of file index_buffer.h.
Referenced by NL3D::CIndexBuffer::lock(), and unlock().
CIndexBuffer* NL3D::CIndexBufferReadWrite::_Parent [private] |
Definition at line 652 of file index_buffer.h.
Referenced by CIndexBufferReadWrite(), getFormat(), getIndexNumBytes(), getParent(), getPtr(), NL3D::CIndexBuffer::lock(), setLine(), setTri(), and unlock().
1.6.1