Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray3D::cDXMeshIndex< _TYPE_INDEX > Class Template Reference

#include <cDXMesh.h>

Public Member Functions

 cDXMeshIndex (ID3DXBaseMesh *pIMesh, DWORD dwFlags=0x00000010L)
 
 ~cDXMeshIndex ()
 
bool IsValid () const
 
void Unlock ()
 
 operator const _TYPE_INDEX * () const
 
 operator _TYPE_INDEX * ()
 

Public Attributes

_TYPE_INDEX * m_pIndex
 The locked pointer. More...
 

Detailed Description

template<typename _TYPE_INDEX = WORD>
class Gray3D::cDXMeshIndex< _TYPE_INDEX >

For locking the index array of a mesh. Similar to GetVertexBuffer with cDXBufferVertexT?? _TYPE_INDEX can be 16 bit (WORD) or D3DXMESH_32BIT (DWORD) ?

Constructor & Destructor Documentation

◆ cDXMeshIndex()

template<typename _TYPE_INDEX = WORD>
Gray3D::cDXMeshIndex< _TYPE_INDEX >::cDXMeshIndex ( ID3DXBaseMesh *  pIMesh,
DWORD  dwFlags = 0x00000010L 
)
inline
Note
uQtyToLock = 0 = all. dwFlags = D3DLOCK_DISCARD

◆ ~cDXMeshIndex()

template<typename _TYPE_INDEX = WORD>
Gray3D::cDXMeshIndex< _TYPE_INDEX >::~cDXMeshIndex ( )
inline

Member Function Documentation

◆ IsValid()

template<typename _TYPE_INDEX = WORD>
bool Gray3D::cDXMeshIndex< _TYPE_INDEX >::IsValid ( ) const
inline

◆ operator _TYPE_INDEX *()

template<typename _TYPE_INDEX = WORD>
Gray3D::cDXMeshIndex< _TYPE_INDEX >::operator _TYPE_INDEX * ( )
inline

◆ operator const _TYPE_INDEX *()

template<typename _TYPE_INDEX = WORD>
Gray3D::cDXMeshIndex< _TYPE_INDEX >::operator const _TYPE_INDEX * ( ) const
inline

◆ Unlock()

template<typename _TYPE_INDEX = WORD>
void Gray3D::cDXMeshIndex< _TYPE_INDEX >::Unlock ( )
inline

Member Data Documentation

◆ m_pIndex

template<typename _TYPE_INDEX = WORD>
_TYPE_INDEX* Gray3D::cDXMeshIndex< _TYPE_INDEX >::m_pIndex

The locked pointer.


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