![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cModelX.h>
Public Member Functions | |
cModelXMeshCont (const ATOMCHAR_t *pszName) | |
virtual | ~cModelXMeshCont () |
virtual HRESULT | DisposeThis () |
void | InitAdjacency (const DWORD *pAdjacencyInit, DWORD dwNumFaces) |
HRESULT | InitTangents (DWORD dwOpt, IDirect3DDevice9 *pDXDev) |
void | InitMaterials (const _D3DXMATERIAL *pMaterials2, DWORD dwNumMaterials) |
void | InitEffectInstances (const _D3DXEFFECTINSTANCE *pEffects2, DWORD dwNumMaterials) |
DWORD | ComputeMeshBoundingBox (cBounds3f &tBox) const |
DWORD | ComputeMeshBoundingSphere (const cMatrix4x4f &CombinedTransformationMatrix, cSphereWork &bsphere) const |
DWORD | ComputePointCloud (const cMatrix4x4f &CombinedTransformationMatrix, cArrayStruct< cVector3f > &cloud) |
HRESULT | GetIndexedFaceMesh (_Inout_ DWORD &rdwFaceToFind, OUT cTriangle3f &tri) const |
DWORD | get_NumMaterials () const |
HRESULT | GetMaterialTexName (int iMaterial, cStringF &sFileName) const |
cModelXMeshCont * | get_NextMeshCont () const |
ID3DXMesh * | get_Mesh () const |
void | put_MeshX (ID3DXMesh *pMesh) |
HRESULT | CountIntersections (const cVector3f &v1, const cVector3f &vDir, float *pfDistHit) |
Public Attributes | |
cStringA | m_sName |
stores the name of this mesh. More... | |
cBounds3f | m_BBoxMesh |
pre-transformed. local mesh coord units. More... | |
cSpheref | m_BSphereMesh |
pre-transformed. local mesh coord units. More... | |
cArrayStruct< cModelXMaterial > | m_aMaterials |
materials and effects on the material. (NumMaterials) for (pMaterials and pEffects) More... | |
![]() | |
char * | Name |
_D3DXMESHDATA | MeshData |
_D3DXMATERIAL * | pMaterials |
_D3DXEFFECTINSTANCE * | pEffects |
DWORD | NumMaterials |
DWORD * | pAdjacency |
ID3DXSkinInfo * | pSkinInfo |
struct _D3DXMESHCONTAINER * | pNextMeshContainer |
Static Public Attributes | |
static const _D3DVERTEXELEMENT9 | k_VertDeclX [5] |
A single mesh + materials + shader props. similar to cDXMesh but as a member of a cModelX derived from D3DXMESHCONTAINER so we can add some app-specific info that will be stored with each mesh (_D3DXMATERIAL,DXEFFECTINSTANCE,ID3DXSkinInfo) m_pMesh = MeshData.pMesh, where MeshData.Type==D3DXMESHTYPE_MESH
Gray3D::cModelXMeshCont::cModelXMeshCont | ( | const ATOMCHAR_t * | pszName | ) |
|
virtual |
DWORD Gray3D::cModelXMeshCont::ComputeMeshBoundingBox | ( | cBounds3f & | tBox | ) | const |
number of Vertices
DWORD Gray3D::cModelXMeshCont::ComputeMeshBoundingSphere | ( | const cMatrix4x4f & | CombinedTransformationMatrix, |
cSphereWork & | bsphere | ||
) | const |
transform to do correct union
DWORD Gray3D::cModelXMeshCont::ComputePointCloud | ( | const cMatrix4x4f & | CombinedTransformationMatrix, |
cArrayStruct< cVector3f > & | cloud | ||
) |
HRESULT Gray3D::cModelXMeshCont::CountIntersections | ( | const cVector3f & | v1, |
const cVector3f & | vDir, | ||
float * | pfDistHit | ||
) |
|
virtual |
|
inline |
ID3DXBaseMesh ??
|
inline |
Next mesh in a list.
|
inline |
HRESULT Gray3D::cModelXMeshCont::GetIndexedFaceMesh | ( | _Inout_ DWORD & | rdwFaceToFind, |
OUT cTriangle3f & | tri | ||
) | const |
Get the triangle for a particular face.
void Gray3D::cModelXMeshCont::InitAdjacency | ( | const DWORD * | pAdjacencyInit, |
DWORD | dwNumFaces | ||
) |
void Gray3D::cModelXMeshCont::InitEffectInstances | ( | const _D3DXEFFECTINSTANCE * | pEffects2, |
DWORD | dwNumMaterials | ||
) |
void Gray3D::cModelXMeshCont::InitMaterials | ( | const _D3DXMATERIAL * | pMaterials2, |
DWORD | dwNumMaterials | ||
) |
HRESULT Gray3D::cModelXMeshCont::InitTangents | ( | DWORD | dwOpt, |
IDirect3DDevice9 * | pDXDev | ||
) |
Make sure the mesh has proper FVF What if it already has tangents ?
|
inline |
|
static |
cArrayStruct<cModelXMaterial> Gray3D::cModelXMeshCont::m_aMaterials |
materials and effects on the material. (NumMaterials) for (pMaterials and pEffects)
cBounds3f Gray3D::cModelXMeshCont::m_BBoxMesh |
pre-transformed. local mesh coord units.
cSpheref Gray3D::cModelXMeshCont::m_BSphereMesh |
pre-transformed. local mesh coord units.
cStringA Gray3D::cModelXMeshCont::m_sName |
stores the name of this mesh.