|
UFO: Alien Invasion
|
ASE model loading. More...

Go to the source code of this file.
Data Structures | |
| struct | aseVertex_t |
| struct | aseTVertex_t |
| struct | aseMesh_t |
| struct | aseMeshAnimation_t |
| struct | aseMaterial_t |
| struct | aseGeomObject_t |
| contains the animate sequence of a single surface using a single material More... | |
| struct | ase_t |
Macros | |
| #define | MAX_ASE_MATERIALS 32 |
| #define | MAX_ASE_OBJECTS 64 |
| #define | MAX_ASE_ANIMATIONS 32 |
| #define | MAX_ASE_ANIMATION_FRAMES 512 |
| #define | VERBOSE(x) |
Typedefs | |
| typedef int | aseFace_t[3] |
Variables | |
| static char | s_token [1024] |
| static ase_t | ase |
ASE model loading.
Definition in file aselib.cpp.
| #define MAX_ASE_ANIMATION_FRAMES 512 |
Definition at line 34 of file aselib.cpp.
Referenced by ASE_GetCurrentMesh(), and ASE_KeyGEOMOBJECT().
| #define MAX_ASE_ANIMATIONS 32 |
Definition at line 33 of file aselib.cpp.
| #define MAX_ASE_MATERIALS 32 |
Definition at line 31 of file aselib.cpp.
Referenced by ASE_KeyMATERIAL_LIST().
| #define MAX_ASE_OBJECTS 64 |
Definition at line 32 of file aselib.cpp.
Referenced by ASE_GetCurrentMesh(), and ASE_Process().
| #define VERBOSE | ( | x | ) |
Definition at line 36 of file aselib.cpp.
Referenced by ASE_KeyGEOMOBJECT(), ASE_KeyMATERIAL_LIST(), ASE_KeyMESH(), and ASE_Process().
| typedef int aseFace_t[3] |
Definition at line 48 of file aselib.cpp.
Definition at line 131 of file aselib.cpp.
References ase, ASE_FreeGeomObject(), and i.
Definition at line 200 of file aselib.cpp.
References aseGeomObject_t::anim, ase, aseMesh_t::faces, aseMeshAnimation_t::frames, i, Mem_Free, aseMeshAnimation_t::numFrames, OBJZERO, aseMesh_t::tfaces, aseMesh_t::tvertexes, and aseMesh_t::vertexes.
Referenced by ASE_Free(), and ASE_Process().
Definition at line 214 of file aselib.cpp.
References aseGeomObject_t::anim, ase, aseMeshAnimation_t::currentFrame, aseMeshAnimation_t::frames, MAX_ASE_ANIMATION_FRAMES, MAX_ASE_OBJECTS, and Sys_Error().
Referenced by ASE_KeyMESH(), ASE_KeyMESH_FACE_LIST(), ASE_KeyMESH_TVERTLIST(), ASE_KeyMESH_VERTEX_LIST(), and ASE_KeyTFACE_LIST().
Definition at line 137 of file aselib.cpp.
References ase.
Returns an animation (sequence of polysets).
Definition at line 155 of file aselib.cpp.
References aseGeomObject_t::anim, ase, f, aseMesh_t::faces, aseMeshAnimation_t::frames, i, polyset_t::materialname, aseGeomObject_t::materialRef, Mem_AllocTypeN, aseGeomObject_t::name, polyset_t::name, aseMesh_t::numFaces, aseMeshAnimation_t::numFrames, polyset_t::numtriangles, aseTVertex_t::s, aseTVertex_t::t, triangle_t::texcoords, aseMesh_t::tfaces, polyset_t::triangles, aseMesh_t::tvertexes, v, Vector2Set, VectorSet, aseMesh_t::vertexes, and triangle_t::verts.
| const char * ASE_GetSurfaceName | ( | int | which | ) |
Definition at line 142 of file aselib.cpp.
References aseGeomObject_t::anim, ase, aseGeomObject_t::name, and aseMeshAnimation_t::numFrames.
|
static |
Definition at line 236 of file aselib.cpp.
References ase, CharIsTokenDelimiter(), i, and s_token.
Referenced by ASE_KeyGEOMOBJECT(), ASE_KeyMAP_DIFFUSE(), ASE_KeyMATERIAL_LIST(), ASE_KeyMESH(), ASE_KeyMESH_FACE_LIST(), ASE_KeyMESH_TVERTLIST(), ASE_KeyMESH_VERTEX_LIST(), ASE_KeyTFACE_LIST(), ASE_ParseBracedBlock(), ASE_Process(), ASE_SkipEnclosingBraces(), and ASE_SkipRestOfLine().
|
static |
Definition at line 522 of file aselib.cpp.
References ase, ASE_GetToken(), ASE_KeyMESH(), ASE_ParseBracedBlock(), ASE_SkipEnclosingBraces(), ASE_SkipRestOfLine(), MAX_ASE_ANIMATION_FRAMES, name, Q_streq, s_token, Sys_Error(), and VERBOSE.
Referenced by ASE_Process().
|
static |
Definition at line 311 of file aselib.cpp.
References ase, ASE_GetToken(), Com_StripExtension(), len, MAX_QPATH, Q_streq, s_token, VERB_EXTRA, and Verb_Printf().
Referenced by ASE_KeyMATERIAL().
|
static |
Definition at line 329 of file aselib.cpp.
References ASE_KeyMAP_DIFFUSE(), ASE_ParseBracedBlock(), and Q_streq.
Referenced by ASE_KeyMATERIAL_LIST().
|
static |
Definition at line 335 of file aselib.cpp.
References ase, ASE_GetToken(), ASE_KeyMATERIAL(), ASE_ParseBracedBlock(), MAX_ASE_MATERIALS, Q_streq, s_token, Sys_Error(), and VERBOSE.
Referenced by ASE_Process().
|
static |
Definition at line 467 of file aselib.cpp.
References ASE_GetCurrentMesh(), ASE_GetToken(), ASE_KeyMESH_FACE_LIST(), ASE_KeyMESH_TVERTLIST(), ASE_KeyMESH_VERTEX_LIST(), ASE_KeyTFACE_LIST(), ASE_ParseBracedBlock(), aseMesh_t::currentFace, aseMesh_t::currentVertex, aseMesh_t::faces, Mem_AllocTypeN, aseMesh_t::numFaces, aseMesh_t::numTVertexes, aseMesh_t::numVertexes, Q_streq, s_token, Sys_Error(), aseMesh_t::tfaces, aseMesh_t::timeValue, aseMesh_t::tvertexes, VERBOSE, and aseMesh_t::vertexes.
Referenced by ASE_KeyGEOMOBJECT().
|
static |
Definition at line 375 of file aselib.cpp.
References ASE_GetCurrentMesh(), ASE_GetToken(), aseMesh_t::currentFace, aseMesh_t::faces, Q_streq, s_token, and Sys_Error().
Referenced by ASE_KeyMESH().
|
static |
Definition at line 437 of file aselib.cpp.
References ASE_GetCurrentMesh(), ASE_GetToken(), aseMesh_t::currentVertex, aseMesh_t::numTVertexes, Q_streq, aseTVertex_t::s, s_token, Sys_Error(), aseTVertex_t::t, aseMesh_t::tvertexes, and v.
Referenced by ASE_KeyMESH().
|
static |
Definition at line 351 of file aselib.cpp.
References ASE_GetCurrentMesh(), ASE_GetToken(), aseMesh_t::currentVertex, aseMesh_t::numVertexes, Q_streq, s_token, Sys_Error(), aseMesh_t::vertexes, aseVertex_t::x, aseVertex_t::y, and aseVertex_t::z.
Referenced by ASE_KeyMESH().
|
static |
Definition at line 410 of file aselib.cpp.
References ASE_GetCurrentMesh(), ASE_GetToken(), aseMesh_t::currentFace, f, Q_streq, s_token, Sys_Error(), and aseMesh_t::tfaces.
Referenced by ASE_KeyMESH().
| void ASE_Load | ( | const char * | filename, |
| bool | verbose ) |
Definition at line 106 of file aselib.cpp.
References ase, ASE_Process(), FILE_READ, FS_FileLength(), FS_OpenFile(), FS_Read(), Mem_AllocTypeN, OBJZERO, Sys_Error(), VERB_EXTRA, and Verb_Printf().
Definition at line 269 of file aselib.cpp.
References ASE_GetToken(), Q_streq, s_token, and Sys_Error().
Referenced by ASE_KeyGEOMOBJECT(), ASE_KeyMATERIAL(), ASE_KeyMATERIAL_LIST(), ASE_KeyMESH(), and ASE_Process().
Definition at line 615 of file aselib.cpp.
References ase, ASE_FreeGeomObject(), ASE_GetToken(), ASE_KeyGEOMOBJECT(), ASE_KeyMATERIAL_LIST(), ASE_ParseBracedBlock(), ASE_SkipEnclosingBraces(), ASE_SkipRestOfLine(), CollapseObjects(), Com_Printf(), MAX_ASE_OBJECTS, Q_streq, s_token, Sys_Error(), and VERBOSE.
Referenced by ASE_Load().
Definition at line 289 of file aselib.cpp.
References ASE_GetToken(), Q_streq, s_token, and Sys_Error().
Referenced by ASE_KeyGEOMOBJECT(), and ASE_Process().
Definition at line 306 of file aselib.cpp.
References ASE_GetToken().
Referenced by ASE_KeyGEOMOBJECT(), and ASE_Process().
Definition at line 229 of file aselib.cpp.
Referenced by ASE_GetToken().
Definition at line 590 of file aselib.cpp.
References ase, ConcatenateObjects(), and i.
Referenced by ASE_Process().
|
static |
Definition at line 586 of file aselib.cpp.
Referenced by CollapseObjects().
|
static |
Definition at line 101 of file aselib.cpp.
Referenced by ASE_Free(), ASE_FreeGeomObject(), ASE_GetCurrentMesh(), ASE_GetNumSurfaces(), ASE_GetSurfaceAnimation(), ASE_GetSurfaceName(), ASE_GetToken(), ASE_KeyGEOMOBJECT(), ASE_KeyMAP_DIFFUSE(), ASE_KeyMATERIAL_LIST(), ASE_Load(), ASE_Process(), and CollapseObjects().
|
static |
Definition at line 100 of file aselib.cpp.
Referenced by ASE_GetToken(), ASE_KeyGEOMOBJECT(), ASE_KeyMAP_DIFFUSE(), ASE_KeyMATERIAL_LIST(), ASE_KeyMESH(), ASE_KeyMESH_FACE_LIST(), ASE_KeyMESH_TVERTLIST(), ASE_KeyMESH_VERTEX_LIST(), ASE_KeyTFACE_LIST(), ASE_ParseBracedBlock(), ASE_Process(), and ASE_SkipEnclosingBraces().