30 lines
495 B
C
30 lines
495 B
C
#pragma once
|
|
|
|
#ifndef BINMESHDATA_HEADER
|
|
#define BINMESHDATA_HEADER
|
|
|
|
struct BinVertex
|
|
{
|
|
float m_Pos[ 3 ];
|
|
};
|
|
|
|
struct BinMesh
|
|
{
|
|
int m_PrimitiveCount;
|
|
unsigned char* m_pTopology;
|
|
BinVertex* m_pVertex;
|
|
|
|
void Set( int PrimitiveCount,
|
|
unsigned char* Vertex,
|
|
unsigned char* Topology )
|
|
{
|
|
m_PrimitiveCount= PrimitiveCount;
|
|
m_pVertex= (BinVertex*)Vertex;
|
|
m_pTopology= Topology;
|
|
}
|
|
|
|
static const unsigned char c_FinishPoly= 255;
|
|
static const unsigned char c_FarVertex= 254;
|
|
};
|
|
|
|
#endif |