#include <plib/ssg.h>#include <zlib.h>#include "grssgext.h"#include "grvtxtable.h"#include "grmultitexstate.h"#include "grmain.h"#include "grtexture.h"
Go to the source code of this file.
Classes | |
| struct | _ssgMaterial |
| struct | Tag |
Macros | |
| #define | FGETS(buf, len, file) gzgets(file, buf, len) |
| #define | FGETC(file) gzgetc(file) |
| #define | FOPEN(path, mode) gzopen(path, mode) |
| #define | FCLOSE(fd) gzclose(fd) |
| #define | NOTEXTURE "empty_texture_no_mapping" |
| #define | MAX_MATERIALS 1000 /* This *ought* to be enough! */ |
| #define | PARSE_CONT 0 |
| #define | PARSE_POP 1 |
| #define | OBJ_WORLD 0 |
| #define | OBJ_POLY 1 |
| #define | OBJ_GROUP 2 |
| #define | OBJ_LIGHT 3 |
| #define | VTXARRAY_GUIONS |
Functions | |
| static int | do_material (char *s) |
| static int | do_object (char *s) |
| static int | do_name (char *s) |
| static int | do_data (char *s) |
| static int | do_texture (char *s) |
| static int | do_texrep (char *s) |
| static int | do_texoff (char *s) |
| static int | do_rot (char *s) |
| static int | do_loc (char *s) |
| static int | do_url (char *s) |
| static int | do_numvert (char *s) |
| static int | do_numsurf (char *s) |
| static int | do_surf (char *s) |
| static int | do_mat (char *s) |
| static int | do_refs (char *s) |
| static int | do_kids (char *s) |
| static int | do_obj_world (char *s) |
| static int | do_obj_poly (char *s) |
| static int | do_obj_group (char *s) |
| static int | do_obj_light (char *s) |
| static void | skip_spaces (char **s) |
| static void | skip_quotes (char **s) |
| static int | search (Tag *tags, char *s) |
| static ssgEntity * | myssgLoadAC (const char *fname, const ssgLoaderOptions *options) |
| static ssgState * | get_state (_ssgMaterial *mat) |
| static ssgState * | get_state_ext (char *name) |
| void | myssgFlatten (ssgEntity *obj) |
| ssgEntity * | grssgCarLoadAC3D (const char *fname, const ssgLoaderOptions *options, int index) |
| ssgEntity * | grssgLoadAC3D (const char *fname, const ssgLoaderOptions *options) |
Variables | |
| int | inGroup =0 |
| static double | t_xmax |
| static double | t_ymax |
| static double | t_xmin |
| static double | t_ymin |
| double | shad_xmax |
| double | shad_ymax |
| double | shad_xmin |
| double | shad_ymin |
| double | carTrackRatioX =0 |
| double | carTrackRatioY =0 |
| static gzFile | loader_fd |
| static int | num_materials = 0 |
| static sgVec3 * | vtab = NULL |
| static sgVec3 * | ntab = NULL |
| static sgVec2 * | t0tab = NULL |
| static sgVec2 * | t1tab = NULL |
| static sgVec2 * | t2tab = NULL |
| static sgVec2 * | t3tab = NULL |
| static ssgIndexArray * | vertlist =NULL |
| static ssgIndexArray * | striplist =NULL |
| static int | totalnv =0 |
| static int | totalstripe =0 |
| static int | usenormal = 0 |
| static int | nv |
| static int | isacar = TRUE |
| static int | usestrip =TRUE |
| static int | usegroup =TRUE |
| static int | mapLevel |
| static int | numMapLevel |
| static int | indexCar |
| static int | isaWindow |
| static ssgLoaderOptions * | current_options = NULL |
| static _ssgMaterial * | current_material = NULL |
| static sgVec4 * | current_colour = NULL |
| static ssgBranch * | current_branch = NULL |
| static char * | current_tfname = NULL |
| static char * | current_tbase = NULL |
| static char * | current_ttiled = NULL |
| static char * | current_tskids = NULL |
| static char * | current_tshad = NULL |
| static char * | current_data = NULL |
| static _ssgMaterial * | mlist [MAX_MATERIALS] |
| static sgVec4 * | clist [MAX_MATERIALS] |
| static sgMat4 | current_matrix |
| static sgVec2 | texrep |
| static sgVec2 | texoff |
| static Tag | top_tags [] |
| static Tag | object_tags [] |
| static Tag | surf_tag [] |
| static Tag | surface_tags [] |
| static Tag | obj_type_tags [] |
| static int | last_num_kids = -1 |
| static int | current_flags = -1 |
| #define FCLOSE | ( | fd | ) | gzclose(fd) |
Definition at line 38 of file grloadac.cpp.
| #define FGETC | ( | file | ) | gzgetc(file) |
Definition at line 36 of file grloadac.cpp.
| #define FGETS | ( | buf, | |
| len, | |||
| file | |||
| ) | gzgets(file, buf, len) |
Definition at line 35 of file grloadac.cpp.
| #define FOPEN | ( | path, | |
| mode | |||
| ) | gzopen(path, mode) |
Definition at line 37 of file grloadac.cpp.
| #define MAX_MATERIALS 1000 /* This *ought* to be enough! */ |
Definition at line 98 of file grloadac.cpp.
| #define NOTEXTURE "empty_texture_no_mapping" |
Definition at line 97 of file grloadac.cpp.
| #define OBJ_GROUP 2 |
Definition at line 235 of file grloadac.cpp.
| #define OBJ_LIGHT 3 |
Definition at line 236 of file grloadac.cpp.
| #define OBJ_POLY 1 |
Definition at line 234 of file grloadac.cpp.
| #define OBJ_WORLD 0 |
Definition at line 233 of file grloadac.cpp.
| #define PARSE_CONT 0 |
Definition at line 128 of file grloadac.cpp.
| #define PARSE_POP 1 |
Definition at line 129 of file grloadac.cpp.
| #define VTXARRAY_GUIONS |
|
static |
Definition at line 479 of file grloadac.cpp.
|
static |
|
static |
Definition at line 638 of file grloadac.cpp.
|
static |
Definition at line 765 of file grloadac.cpp.
|
static |
|
static |
|
static |
|
static |
Definition at line 661 of file grloadac.cpp.
|
static |
Definition at line 240 of file grloadac.cpp.
|
static |
Definition at line 241 of file grloadac.cpp.
|
static |
Definition at line 239 of file grloadac.cpp.
|
static |
Definition at line 238 of file grloadac.cpp.
|
static |
|
static |
|
static |
Definition at line 622 of file grloadac.cpp.
|
static |
|
static |
Definition at line 614 of file grloadac.cpp.
|
static |
Definition at line 605 of file grloadac.cpp.
|
static |
|
static |
|
static |
|
static |
| ssgEntity* grssgCarLoadAC3D | ( | const char * | fname, |
| const ssgLoaderOptions * | options, | ||
| int | index | ||
| ) |
| ssgEntity* grssgLoadAC3D | ( | const char * | fname, |
| const ssgLoaderOptions * | options | ||
| ) |
| void myssgFlatten | ( | ssgEntity * | obj | ) |
Definition at line 1091 of file grloadac.cpp.
|
static |
|
static |
|
static |
|
static |
Definition at line 138 of file grloadac.cpp.
| double carTrackRatioX =0 |
Definition at line 49 of file grloadac.cpp.
| double carTrackRatioY =0 |
Definition at line 50 of file grloadac.cpp.
|
static |
Definition at line 100 of file grloadac.cpp.
|
static |
Definition at line 90 of file grloadac.cpp.
|
static |
Definition at line 89 of file grloadac.cpp.
|
static |
Definition at line 96 of file grloadac.cpp.
|
static |
Definition at line 246 of file grloadac.cpp.
|
static |
Definition at line 88 of file grloadac.cpp.
|
static |
Definition at line 102 of file grloadac.cpp.
|
static |
Definition at line 87 of file grloadac.cpp.
|
static |
Definition at line 92 of file grloadac.cpp.
|
static |
Definition at line 91 of file grloadac.cpp.
|
static |
Definition at line 95 of file grloadac.cpp.
|
static |
Definition at line 94 of file grloadac.cpp.
|
static |
Definition at line 93 of file grloadac.cpp.
|
static |
Definition at line 83 of file grloadac.cpp.
| int inGroup =0 |
Definition at line 32 of file grloadac.cpp.
|
static |
Definition at line 78 of file grloadac.cpp.
|
static |
Definition at line 85 of file grloadac.cpp.
|
static |
Definition at line 245 of file grloadac.cpp.
|
static |
Definition at line 53 of file grloadac.cpp.
|
static |
Definition at line 81 of file grloadac.cpp.
|
static |
Definition at line 99 of file grloadac.cpp.
|
static |
Definition at line 67 of file grloadac.cpp.
|
static |
Definition at line 65 of file grloadac.cpp.
|
static |
Definition at line 82 of file grloadac.cpp.
|
static |
Definition at line 77 of file grloadac.cpp.
|
static |
Definition at line 224 of file grloadac.cpp.
|
static |
Definition at line 195 of file grloadac.cpp.
| double shad_xmax |
Definition at line 45 of file grloadac.cpp.
| double shad_xmin |
Definition at line 47 of file grloadac.cpp.
| double shad_ymax |
Definition at line 46 of file grloadac.cpp.
| double shad_ymin |
Definition at line 48 of file grloadac.cpp.
|
static |
Definition at line 73 of file grloadac.cpp.
|
static |
Definition at line 211 of file grloadac.cpp.
|
static |
Definition at line 217 of file grloadac.cpp.
|
static |
Definition at line 68 of file grloadac.cpp.
|
static |
Definition at line 69 of file grloadac.cpp.
|
static |
Definition at line 70 of file grloadac.cpp.
|
static |
Definition at line 71 of file grloadac.cpp.
|
static |
Definition at line 40 of file grloadac.cpp.
|
static |
Definition at line 42 of file grloadac.cpp.
|
static |
Definition at line 41 of file grloadac.cpp.
|
static |
Definition at line 43 of file grloadac.cpp.
|
static |
Definition at line 104 of file grloadac.cpp.
|
static |
Definition at line 103 of file grloadac.cpp.
|
static |
Definition at line 188 of file grloadac.cpp.
|
static |
Definition at line 74 of file grloadac.cpp.
|
static |
Definition at line 75 of file grloadac.cpp.
|
static |
Definition at line 80 of file grloadac.cpp.
|
static |
Definition at line 76 of file grloadac.cpp.
|
static |
Definition at line 79 of file grloadac.cpp.
|
static |
Definition at line 72 of file grloadac.cpp.
|
static |
Definition at line 66 of file grloadac.cpp.