UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
aselib.h
Go to the documentation of this file.
1 
5 /*
6 Copyright (C) 1999-2007 id Software, Inc. and contributors.
7 For a list of contributors, see the accompanying CONTRIBUTORS file.
8 
9 This file is part of GtkRadiant.
10 
11 GtkRadiant is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 (at your option) any later version.
15 
16 GtkRadiant is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20 
21 You should have received a copy of the GNU General Public License
22 along with GtkRadiant; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 */
25 
26 #pragma once
27 
28 #include "../../../shared/mathlib.h"
29 
30 typedef struct {
31  vec3_t verts[3];
32  vec3_t normals[3];
33  vec2_t texcoords[3];
34 } triangle_t;
35 
36 typedef struct {
37  char name[100];
38  char materialname[100];
41 } polyset_t;
42 
43 void ASE_Load(const char* filename, bool verbose);
44 polyset_t* ASE_GetSurfaceAnimation(int whichSurface);
45 int ASE_GetNumSurfaces(void);
46 const char* ASE_GetSurfaceName(int ndx);
47 void ASE_Free(void);
const char * ASE_GetSurfaceName(int ndx)
Definition: aselib.cpp:142
polyset_t * ASE_GetSurfaceAnimation(int whichSurface)
Returns an animation (sequence of polysets)
Definition: aselib.cpp:155
const char * filename
Definition: ioapi.h:41
int numtriangles
Definition: aselib.h:40
void ASE_Free(void)
Definition: aselib.cpp:131
int ASE_GetNumSurfaces(void)
Definition: aselib.cpp:137
void ASE_Load(const char *filename, bool verbose)
Definition: aselib.cpp:106
triangle_t * triangles
Definition: aselib.h:39
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition: r_gl.h:110
vec_t vec3_t[3]
Definition: ufotypes.h:39
vec_t vec2_t[2]
Definition: ufotypes.h:38