maug
Quick and dirty C mini-augmentation library.
|
Topics | |
RetroGLU OBJ Parser States | |
Data Structures | |
struct | RETROGLU_PARSER |
As retroglu_parse_obj_c() parses OBJ data, it populates this struct with object information. More... | |
Macros | |
#define | retroglu_parser_state(parser, new_state) |
Change the parser state. | |
#define | RETROGLU_OBJ_TOKENS(f) |
Table of OBJ file tokens understood by the parser. | |
Typedefs | |
typedef int(* | retroglu_mtl_cb) (const char *filename, struct RETROGLU_PARSER *parser, void *data) |
Callback to execute when its associate in RETROGLU_OBJ_TOKENS is found in an OBJ file. | |
typedef int(* | retroglu_token_cb) (struct RETROGLU_PARSER *parser) |
Functions | |
void | retroglu_init_scene (uint8_t flags) |
void | retroglu_init_projection (struct RETROGLU_PROJ_ARGS *args) |
MERROR_RETVAL | retroglu_parse_obj_file (const char *filename, struct RETROGLU_PARSER *parser, struct RETROGLU_OBJ *obj) |
void | retroglu_parse_init (struct RETROGLU_PARSER *parser, struct RETROGLU_OBJ *obj, retroglu_mtl_cb load_mtl, void *load_mtl_data) |
Initialize a RETROGLU_PARSER. | |
MERROR_RETVAL | retroglu_parse_obj_c (struct RETROGLU_PARSER *parser, unsigned char c) |
Parse OBJ data into a parser, one character at a time. | |
#define RETROGLU_OBJ_TOKENS | ( | f | ) |
Table of OBJ file tokens understood by the parser.
#define retroglu_parser_state | ( | parser, | |
new_state ) |
Change the parser state.
Pointer | to the RETROGLU_PARSER to modify. |
new_state | RetroGLU OBJ Parser States to set the parser to. |
|
related |
Initialize a RETROGLU_PARSER.
|
related |
Parse OBJ data into a parser, one character at a time.
Generally, this should loop over a character array loaded from an OBJ file.