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) { if (ase.verbose) { Com_Printf 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 | ) | { if (ase.verbose) { Com_Printf 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_FreeGeomObject(), ase_t::currentObject, and i.
Definition at line 200 of file aselib.cpp.
References aseGeomObject_t::anim, aseMesh_t::faces, aseMeshAnimation_t::frames, i, Mem_Free, aseMeshAnimation_t::numFrames, ase_t::objects, 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, aseMeshAnimation_t::currentFrame, ase_t::currentObject, aseMeshAnimation_t::frames, MAX_ASE_ANIMATION_FRAMES, MAX_ASE_OBJECTS, ase_t::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_t::currentObject.
Returns an animation (sequence of polysets)
Definition at line 155 of file aselib.cpp.
References aseGeomObject_t::anim, f, aseMesh_t::faces, aseMeshAnimation_t::frames, i, polyset_t::materialname, aseGeomObject_t::materialRef, ase_t::materials, Mem_AllocTypeN, polyset_t::name, aseMaterial_t::name, aseGeomObject_t::name, aseMesh_t::numFaces, aseMeshAnimation_t::numFrames, polyset_t::numtriangles, ase_t::objects, aseTVertex_t::s, aseTVertex_t::t, triangle_t::texcoords, aseMesh_t::tfaces, polyset_t::triangles, aseMesh_t::tvertexes, v, Vector2Set, VectorSet, aseMesh_t::vertexes, triangle_t::verts, aseVertex_t::x, aseVertex_t::y, and aseVertex_t::z.
const char* ASE_GetSurfaceName | ( | int | which | ) |
Definition at line 142 of file aselib.cpp.
References aseGeomObject_t::anim, aseGeomObject_t::name, aseMeshAnimation_t::numFrames, and ase_t::objects.
|
static |
Definition at line 236 of file aselib.cpp.
References ase_t::buffer, CharIsTokenDelimiter(), ase_t::curpos, i, ase_t::len, 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 aseGeomObject_t::anim, ASE_GetToken(), ASE_KeyMESH(), ASE_ParseBracedBlock(), ASE_SkipEnclosingBraces(), ASE_SkipRestOfLine(), aseMeshAnimation_t::currentFrame, ase_t::currentObject, aseGeomObject_t::materialRef, MAX_ASE_ANIMATION_FRAMES, aseGeomObject_t::name, name, aseGeomObject_t::numAnimations, aseMeshAnimation_t::numFrames, ase_t::objects, Q_streq, s_token, Sys_Error(), and VERBOSE.
Referenced by ASE_Process().
|
static |
Definition at line 311 of file aselib.cpp.
References ASE_GetToken(), Com_StripExtension(), len, ase_t::materials, MAX_QPATH, aseMaterial_t::name, ase_t::numMaterials, 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_GetToken(), ASE_KeyMATERIAL(), ASE_ParseBracedBlock(), MAX_ASE_MATERIALS, ase_t::numMaterials, 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_Process(), ase_t::buffer, ase_t::curpos, FILE_READ, FS_FileLength(), FS_OpenFile(), FS_Read(), ase_t::len, Mem_AllocTypeN, OBJZERO, Sys_Error(), VERB_EXTRA, Verb_Printf(), and ase_t::verbose.
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_FreeGeomObject(), ASE_GetToken(), ASE_KeyGEOMOBJECT(), ASE_KeyMATERIAL_LIST(), ASE_ParseBracedBlock(), ASE_SkipEnclosingBraces(), ASE_SkipRestOfLine(), CollapseObjects(), Com_Printf(), ase_t::currentObject, MAX_ASE_OBJECTS, aseGeomObject_t::name, ase_t::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 ConcatenateObjects(), ase_t::currentObject, i, aseGeomObject_t::materialRef, aseGeomObject_t::name, aseGeomObject_t::numAnimations, and ase_t::objects.
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.
|
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().