6 #include "VectorMath.h"
12 #define MESH_MAX_UV_CHANNELS (2)
16 typedef void (*HeightCB)(
const void* pVB, u32 numVertices, u32 numStride,
const void* pIB, u32 numIndices);
45 QuadrantData() : startIndex(0), numIndices(0), pChildren(NULL)
47 min.Set( FLT_MAX, FLT_MAX, FLT_MAX);
48 max.Set(-FLT_MAX, -FLT_MAX, -FLT_MAX);
57 bool m_includeNormals;
65 #if !defined (ANDROID) && !defined (EMSCRIPTEN)
77 u32 m_UVStride[MESH_MAX_UV_CHANNELS];
79 const u8* m_pVertexData;
80 const u8* m_pNormalData;
81 const u8* m_pUVData[MESH_MAX_UV_CHANNELS];
82 const u8* m_pBoneWeightData;
83 const u8* m_pBoneIndexData;
85 const u32* m_pTriStripLengths;
88 std::vector<s32> m_boneRemap;
100 HeightCB createHeightData,
104 void Parse (
void* pMeshData);
107 bool IsSkinned () {
return m_isSkin; }
108 u32 GetNumSkinMatrices () {
return static_cast<u32
>(m_boneRemap.size()); }
109 u32 GetSkinMatrix (
int index) {
return m_boneRemap[index]; }
118 void InitRenderData (
119 HeightCB createHeightData,
121 const void* pInterleavedData,
122 const void* pIndexData,
124 const s32* batchBoneCounts