But looking at your doxygen documentation, i ran into a whole bunch of methods like this one:
- Code: Select all
00694 LSE_INLINE LSVOID LSE_CALL CVertexBuffer::SetVertex( LSUINT32 _ui32Index, LSREAL _fX, LSREAL _fY, LSREAL _fZ, LSUINT32 _ui32Stream ) {
00695 assert( m_ui32Lock );
00696
00697 LSGREAL * pfLoc = reinterpret_cast<LSGREAL *>(&m_vData[m_vAttributeOffsets[LSG_VA_POSITION][_ui32Stream]+_ui32Index*m_ui32Stride]);
00698 (*pfLoc++) = static_cast<LSGREAL>(_fX);
00699 (*pfLoc++) = static_cast<LSGREAL>(_fY);
00700 (*pfLoc) = static_cast<LSGREAL>(_fZ);
00701 }
Why are you accessing the data directly instead of going through the parent? is it because of performance?