-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrcbc.h
More file actions
41 lines (31 loc) · 1.12 KB
/
rcbc.h
File metadata and controls
41 lines (31 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef _RCBC_DEF
#define _RCBC_DEF
#warning ['TODO']: Make this more library friendly (dont pull in heaps of .h files)
// Stops C++ from mangling the names
#ifdef __cplusplus
extern "C" {
#endif
/* Default paths */
#define DIRECTORY_TEXTURES "./data/textures/"
#define DIRECTORY_MODELS "./data/models/"
#include "rcbc_data.h"
/**
* This contains the swapable components, incase you want to replace the XML
* library or whatever, you could also do models like replace the render with
* somemodel that gives a text dump of file information or a wrapper function
* that draws a cube around the model or whatever. In theory anyway, for now
* not all of this might actually be replacable.
*/
typedef struct RCBCPlugins {
/** The pointer to the function render the Model */
int (*render_draw)(const Model* model);
/** The pointer to the function to convert a COLLADA XML file into a Model */
Model* (*xml_load)(Model* model, List* images, const char* filename);
} RCBCPlugins;
int RCBC_Init();
Model* RCBC_LoadFile(const char* filename, List* images);
int RCBC_Render(const Model* model);
#ifdef __cplusplus
}
#endif
#endif