Add namespace structs for geometry

This commit is contained in:
_
2018-04-17 20:14:45 -07:00
parent 48f255eb36
commit 6babd59d56
3 changed files with 46 additions and 18 deletions

View File

@@ -72,20 +72,40 @@ struct Mesh {
#pragma pack(pop)
void printgheader(struct Header*);
typedef struct {
void (* const printheader) (struct Header*);
void (* const printmeshheader)(struct MeshHeader*);
void (* const printbatch) (struct Batch*);
void (* const printcoordinate)(struct Coordinate*, unsigned int);
void printmeshheader(struct MeshHeader*);
bool (* const getmeshheader) (struct MeshHeader**,
unsigned int i,
const char * const);
void printmeshbatch(struct Batch*);
bool (* const getbatch) (struct Batch*,
unsigned int offset,
const char * const);
void printcoordinate(struct Coordinate*, unsigned int);
bool (* const getmesh) (struct Mesh*,
unsigned int i,
const char* filename);
} fn_devil1geo;
extern fn_devil1geo const DEVIL1GEO;
static void printgheader(struct Header*);
static void printmeshheader(struct MeshHeader*);
static void printmeshbatch(struct Batch*);
static void printcoordinate(struct Coordinate*, unsigned int);
// ** = 'pass by reference' of a pointer to struct
bool getmeshheader(struct MeshHeader**, unsigned int i, const char * const);
static bool getmeshheader(struct MeshHeader**, unsigned int i, const char * const);
bool getmeshbatch(struct Batch*, unsigned int offset, const char * const);
static bool getmeshbatch(struct Batch*, unsigned int offset, const char * const);
bool getmesh(struct Mesh*, unsigned int i, const char* filename);
static bool getmesh(struct Mesh*, unsigned int i, const char* filename);
#endif