mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2025-05-31 14:11:42 +05:30
Add namespace structs for geometry
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user