NL3D::CIndexBufferReadWrite Class Reference

The index buffer accessor read / write. More...

#include <index_buffer.h>

List of all members.

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 CIndexBuffergetParent () 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

Detailed Description

The index buffer accessor read / write.

Definition at line 529 of file index_buffer.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

CIndexBuffer::TFormat NL3D::CIndexBufferReadWrite::getFormat (  )  const [inline]
uint NL3D::CIndexBufferReadWrite::getIndexNumBytes (  )  const [inline]
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]
void NL3D::CIndexBufferReadWrite::operator= ( const CIndexBufferReadWrite  )  [inline, private]

Definition at line 649 of file index_buffer.h.

void NL3D::CIndexBufferReadWrite::setLine ( uint  idx,
uint32  i0,
uint32  i1 
) [inline]
void NL3D::CIndexBufferReadWrite::setTri ( uint  idx,
uint32  i0,
uint32  i1,
uint32  i2 
) [inline]
void NL3D::CIndexBufferReadWrite::touchIndexes ( uint  first,
uint  last 
)

Touch the updated indexes.

If the method is not call, the accessor update all the indexes.

Parameters:
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().


Friends And Related Function Documentation

friend class CIndexBuffer [friend]

Definition at line 532 of file index_buffer.h.


Member Data Documentation

Definition at line 653 of file index_buffer.h.

Referenced by NL3D::CIndexBuffer::lock(), and unlock().

Definition at line 653 of file index_buffer.h.

Referenced by NL3D::CIndexBuffer::lock(), and unlock().


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

Generated on Thu Jan 7 08:30:04 2010 for NeL by  doxygen 1.6.1