|
@@ -1,420 +1,218 @@
|
1
|
|
-/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
|
2
|
|
-/*================================================================
|
|
1
|
+/*!
|
|
2
|
+ * \file OpenGLMesh.h
|
|
3
|
+ * \brief OpenGL Mesh
|
3
|
4
|
*
|
4
|
|
- * Project : OpenRaider
|
5
|
|
- * Author : Terry 'Mongoose' Hendrix II
|
6
|
|
- * Website : http://www.westga.edu/~stu7440/
|
7
|
|
- * Email : stu7440@westga.edu
|
8
|
|
- * Object : OpenGLMesh
|
9
|
|
- * License : No use w/o permission (C) 2002 Mongoose
|
10
|
|
- * Comments:
|
|
5
|
+ * Defining UNIT_TEST_OPENGLMESH builds OpenGLMesh class as a console unit test
|
11
|
6
|
*
|
|
7
|
+ * \author Mongoose
|
12
|
8
|
*
|
13
|
|
- * This file was generated using Mongoose's C++
|
14
|
|
- * template generator script. <stu7440@westga.edu>
|
15
|
|
- *
|
16
|
|
- *-- Test Defines -----------------------------------------------
|
17
|
|
- *
|
18
|
|
- * UNIT_TEST_OPENGLMESH - Builds OpenGLMesh class as a console unit test
|
19
|
|
- *
|
20
|
|
- *-- History ------------------------------------------------
|
21
|
|
- *
|
22
|
|
- * 2002.08.23:
|
23
|
|
- * Mongoose - Created
|
24
|
|
- ================================================================*/
|
25
|
|
-
|
|
9
|
+ * \todo Unify the parallel systems here, arrays and the allocate/set
|
|
10
|
+ */
|
26
|
11
|
|
27
|
12
|
#ifndef GUARD__OPENRAIDER_MONGOOSE_OPENGLMESH_H_
|
28
|
13
|
#define GUARD__OPENRAIDER_MONGOOSE_OPENGLMESH_H_
|
29
|
14
|
|
30
|
15
|
#include "hel/math.h"
|
31
|
16
|
|
32
|
|
-// TODO: Unify the parallel systems here, arrays and the allocate/set
|
|
17
|
+class OpenGLMesh {
|
|
18
|
+public:
|
33
|
19
|
|
|
20
|
+ typedef enum {
|
|
21
|
+ OpenGLMeshModeSolid = 0,
|
|
22
|
+ OpenGLMeshModeWireframe = 1,
|
|
23
|
+ OpenGLMeshModeTexture = 2,
|
|
24
|
+ OpenGLMeshModeMultiTexture = 3
|
|
25
|
+ } OpenGLMeshMode;
|
34
|
26
|
|
35
|
|
-typedef enum
|
36
|
|
-{
|
37
|
|
- OpenGLMeshModeSolid = 0,
|
38
|
|
- OpenGLMeshModeWireframe = 1,
|
39
|
|
- OpenGLMeshModeTexture = 2,
|
40
|
|
- OpenGLMeshModeMultiTexture = 3
|
|
27
|
+ typedef enum {
|
|
28
|
+ fOpenGLMesh_Transparent = 1,
|
|
29
|
+ fOpenGLMesh_BumpMap = 2,
|
|
30
|
+ fOpenGLMesh_UseVertexArray = 4
|
|
31
|
+ } OpenGLMeshFlags;
|
41
|
32
|
|
42
|
|
-} OpenGLMeshMode;
|
|
33
|
+ typedef struct tris_s {
|
|
34
|
+ int texture;
|
|
35
|
+#ifdef MULTITEXTURE
|
|
36
|
+ int bumpmap;
|
|
37
|
+#endif
|
43
|
38
|
|
44
|
|
-enum OpenGLMeshFlags
|
45
|
|
-{
|
46
|
|
- fOpenGLMesh_Transparent = 1,
|
47
|
|
- fOpenGLMesh_BumpMap = 2,
|
48
|
|
- fOpenGLMesh_UseVertexArray = 4
|
49
|
|
-};
|
|
39
|
+ unsigned int cnum_triangles;
|
|
40
|
+ unsigned int cnum_alpha_triangles;
|
50
|
41
|
|
|
42
|
+ unsigned int num_texcoors;
|
|
43
|
+ vec2_t *texcoors;
|
51
|
44
|
|
52
|
|
-typedef struct tris_s
|
53
|
|
-{
|
54
|
|
- int texture;
|
|
45
|
+ unsigned int num_texcoors2;
|
|
46
|
+ vec2_t *texcoors2;
|
|
47
|
+
|
|
48
|
+ //! Arrays of triangle indices sorted by texture
|
|
49
|
+ unsigned int num_triangles;
|
|
50
|
+ unsigned int *triangles; //!< ABCABCABC...
|
|
51
|
+
|
|
52
|
+ //! Arrays of alpha triangle indices sorted by texture
|
|
53
|
+ unsigned int num_alpha_triangles;
|
|
54
|
+ unsigned int *alpha_triangles; //!< ABCABCABC...
|
|
55
|
+ } tris_t;
|
|
56
|
+
|
|
57
|
+ typedef struct rect_s {
|
|
58
|
+
|
|
59
|
+ int texture;
|
55
|
60
|
#ifdef MULTITEXTURE
|
56
|
|
- int bumpmap;
|
|
61
|
+ int bumpmap;
|
57
|
62
|
#endif
|
58
|
63
|
|
59
|
|
- unsigned int cnum_triangles;
|
60
|
|
- unsigned int cnum_alpha_triangles;
|
|
64
|
+ unsigned int cnum_quads;
|
|
65
|
+ unsigned int cnum_alpha_quads;
|
61
|
66
|
|
62
|
|
- unsigned int num_texcoors;
|
63
|
|
- vec2_t *texcoors;
|
|
67
|
+ unsigned int num_texcoors;
|
|
68
|
+ vec2_t *texcoors;
|
64
|
69
|
|
65
|
|
- unsigned int num_texcoors2;
|
66
|
|
- vec2_t *texcoors2;
|
|
70
|
+ unsigned int num_texcoors2;
|
|
71
|
+ vec2_t *texcoors2;
|
67
|
72
|
|
68
|
|
- // Arrays of triangle indices sorted by texture
|
69
|
|
- unsigned int num_triangles;
|
70
|
|
- unsigned int *triangles; // ABCABCABC...
|
|
73
|
+ //! Arrays of rectangle indices sorted by texture
|
|
74
|
+ unsigned int num_quads;
|
|
75
|
+ unsigned int *quads; //!< ABCDABCDABCD...
|
71
|
76
|
|
72
|
|
- // Arrays of alpha triangle indices sorted by texture
|
73
|
|
- unsigned int num_alpha_triangles;
|
74
|
|
- unsigned int *alpha_triangles; // ABCABCABC...
|
|
77
|
+ //! Arrays of alpha rectangle indices sorted by texture
|
|
78
|
+ unsigned int num_alpha_quads;
|
|
79
|
+ unsigned int *alpha_quads; //!< ABCDABCDABCD...
|
75
|
80
|
|
76
|
|
-} tris_t;
|
|
81
|
+ } rect_t;
|
77
|
82
|
|
|
83
|
+ ////////////////////////////////////////////////////////////
|
|
84
|
+ // Constructors
|
|
85
|
+ ////////////////////////////////////////////////////////////
|
78
|
86
|
|
79
|
|
-typedef struct rect_s
|
80
|
|
-{
|
81
|
|
- int texture;
|
82
|
|
-#ifdef MULTITEXTURE
|
83
|
|
- int bumpmap;
|
84
|
|
-#endif
|
|
87
|
+ /*!
|
|
88
|
+ * \brief Constructs an object of OpenGLMesh
|
|
89
|
+ */
|
|
90
|
+ OpenGLMesh();
|
|
91
|
+
|
|
92
|
+ /*!
|
|
93
|
+ * \brief Deconstructs an object of OpenGLMesh
|
|
94
|
+ */
|
|
95
|
+ ~OpenGLMesh();
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+ ////////////////////////////////////////////////////////////
|
|
99
|
+ // Public Accessors
|
|
100
|
+ ////////////////////////////////////////////////////////////
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+ void drawAlpha();
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+ void drawSolid();
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+ ////////////////////////////////////////////////////////////
|
|
110
|
+ // Public Mutators
|
|
111
|
+ ////////////////////////////////////////////////////////////
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+ void allocateColors(unsigned int n);
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+ void allocateNormals(unsigned int n);
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+ void allocateRectangles(unsigned int n);
|
85
|
121
|
|
86
|
|
- unsigned int cnum_quads;
|
87
|
|
- unsigned int cnum_alpha_quads;
|
88
|
|
-
|
89
|
|
- unsigned int num_texcoors;
|
90
|
|
- vec2_t *texcoors;
|
91
|
|
-
|
92
|
|
- unsigned int num_texcoors2;
|
93
|
|
- vec2_t *texcoors2;
|
94
|
|
-
|
95
|
|
- // Arrays of rectangle indices sorted by texture
|
96
|
|
- unsigned int num_quads;
|
97
|
|
- unsigned int *quads; // ABCDABCDABCD...
|
98
|
|
-
|
99
|
|
- // Arrays of alpha rectangle indices sorted by texture
|
100
|
|
- unsigned int num_alpha_quads;
|
101
|
|
- unsigned int *alpha_quads; // ABCDABCDABCD...
|
102
|
|
-
|
103
|
|
-} rect_t;
|
104
|
|
-
|
105
|
|
-
|
106
|
|
-class OpenGLMesh
|
107
|
|
-{
|
108
|
|
- public:
|
109
|
|
-
|
110
|
|
- ////////////////////////////////////////////////////////////
|
111
|
|
- // Constructors
|
112
|
|
- ////////////////////////////////////////////////////////////
|
113
|
|
-
|
114
|
|
- OpenGLMesh();
|
115
|
|
- /*------------------------------------------------------
|
116
|
|
- * Pre :
|
117
|
|
- * Post : Constructs an object of OpenGLMesh
|
118
|
|
- *
|
119
|
|
- *-- History ------------------------------------------
|
120
|
|
- *
|
121
|
|
- * 2002.08.23:
|
122
|
|
- * Mongoose - Created
|
123
|
|
- ------------------------------------------------------*/
|
124
|
|
-
|
125
|
|
- ~OpenGLMesh();
|
126
|
|
- /*------------------------------------------------------
|
127
|
|
- * Pre : OpenGLMesh object is allocated
|
128
|
|
- * Post : Deconstructs an object of OpenGLMesh
|
129
|
|
- *
|
130
|
|
- *-- History ------------------------------------------
|
131
|
|
- *
|
132
|
|
- * 2002.08.23:
|
133
|
|
- * Mongoose - Created
|
134
|
|
- ------------------------------------------------------*/
|
135
|
|
-
|
136
|
|
-
|
137
|
|
- ////////////////////////////////////////////////////////////
|
138
|
|
- // Public Accessors
|
139
|
|
- ////////////////////////////////////////////////////////////
|
140
|
|
-
|
141
|
|
- void drawAlpha();
|
142
|
|
- /*------------------------------------------------------
|
143
|
|
- * Pre :
|
144
|
|
- * Post : Render alpha polygons
|
145
|
|
- *
|
146
|
|
- *-- History ------------------------------------------
|
147
|
|
- *
|
148
|
|
- * 2002.08.23:
|
149
|
|
- * Mongoose - Created
|
150
|
|
- ------------------------------------------------------*/
|
151
|
|
-
|
152
|
|
- void drawSolid();
|
153
|
|
- /*------------------------------------------------------
|
154
|
|
- * Pre :
|
155
|
|
- * Post : Render solid polygons
|
156
|
|
- *
|
157
|
|
- *-- History ------------------------------------------
|
158
|
|
- *
|
159
|
|
- * 2002.08.23:
|
160
|
|
- * Mongoose - Created
|
161
|
|
- ------------------------------------------------------*/
|
162
|
|
-
|
163
|
|
-
|
164
|
|
- ////////////////////////////////////////////////////////////
|
165
|
|
- // Public Mutators
|
166
|
|
- ////////////////////////////////////////////////////////////
|
167
|
|
-
|
168
|
|
- void allocateColors(unsigned int n);
|
169
|
|
- /*------------------------------------------------------
|
170
|
|
- * Pre :
|
171
|
|
- * Post :
|
172
|
|
- *
|
173
|
|
- *-- History ------------------------------------------
|
174
|
|
- *
|
175
|
|
- * 2002.08.23:
|
176
|
|
- * Mongoose - Created
|
177
|
|
- ------------------------------------------------------*/
|
178
|
|
-
|
179
|
|
- void allocateNormals(unsigned int n);
|
180
|
|
- /*------------------------------------------------------
|
181
|
|
- * Pre :
|
182
|
|
- * Post :
|
183
|
|
- *
|
184
|
|
- *-- History ------------------------------------------
|
185
|
|
- *
|
186
|
|
- * 2002.08.23:
|
187
|
|
- * Mongoose - Created
|
188
|
|
- ------------------------------------------------------*/
|
189
|
|
-
|
190
|
|
- void allocateRectangles(unsigned int n);
|
191
|
|
- /*------------------------------------------------------
|
192
|
|
- * Pre :
|
193
|
|
- * Post :
|
194
|
|
- *
|
195
|
|
- *-- History ------------------------------------------
|
196
|
|
- *
|
197
|
|
- * 2002.08.23:
|
198
|
|
- * Mongoose - Created
|
199
|
|
- ------------------------------------------------------*/
|
200
|
|
-
|
201
|
|
- void allocateTriangles(unsigned int n);
|
202
|
|
- /*------------------------------------------------------
|
203
|
|
- * Pre :
|
204
|
|
- * Post :
|
205
|
|
- *
|
206
|
|
- *-- History ------------------------------------------
|
207
|
|
- *
|
208
|
|
- * 2002.08.23:
|
209
|
|
- * Mongoose - Created
|
210
|
|
- ------------------------------------------------------*/
|
211
|
|
-
|
212
|
|
- void allocateVertices(unsigned int n);
|
213
|
|
- /*------------------------------------------------------
|
214
|
|
- * Pre :
|
215
|
|
- * Post :
|
216
|
|
- *
|
217
|
|
- *-- History ------------------------------------------
|
218
|
|
- *
|
219
|
|
- * 2002.08.23:
|
220
|
|
- * Mongoose - Created
|
221
|
|
- ------------------------------------------------------*/
|
222
|
|
-
|
223
|
|
- void bufferColorArray(unsigned int colorCount, vec_t *colors,
|
224
|
|
- unsigned int colorWidth);
|
225
|
|
- /*------------------------------------------------------
|
226
|
|
- * Pre :
|
227
|
|
- * Post :
|
228
|
|
- *
|
229
|
|
- *-- History ------------------------------------------
|
230
|
|
- *
|
231
|
|
- * 2003.05.20:
|
232
|
|
- * Mongoose - Created
|
233
|
|
- ------------------------------------------------------*/
|
234
|
|
-
|
235
|
|
- void bufferNormalArray(unsigned int normalCount, vec_t *normals);
|
236
|
|
- /*------------------------------------------------------
|
237
|
|
- * Pre :
|
238
|
|
- * Post :
|
239
|
|
- *
|
240
|
|
- *-- History ------------------------------------------
|
241
|
|
- *
|
242
|
|
- * 2003.05.20:
|
243
|
|
- * Mongoose - Created
|
244
|
|
- ------------------------------------------------------*/
|
245
|
|
-
|
246
|
|
- void bufferTriangles(unsigned int count,
|
247
|
|
- unsigned int *indices, vec_t *texCoords,
|
248
|
|
- int *textures, unsigned int *flags);
|
249
|
|
- /*------------------------------------------------------
|
250
|
|
- * Pre :
|
251
|
|
- * Post :
|
252
|
|
- *
|
253
|
|
- *-- History ------------------------------------------
|
254
|
|
- *
|
255
|
|
- * 2003.05.26:
|
256
|
|
- * Mongoose - Created
|
257
|
|
- ------------------------------------------------------*/
|
258
|
|
-
|
259
|
|
- void bufferVertexArray(unsigned int vertexCount, vec_t *vertices);
|
260
|
|
- /*------------------------------------------------------
|
261
|
|
- * Pre :
|
262
|
|
- * Post :
|
263
|
|
- *
|
264
|
|
- *-- History ------------------------------------------
|
265
|
|
- *
|
266
|
|
- * 2003.05.20:
|
267
|
|
- * Mongoose - Created
|
268
|
|
- ------------------------------------------------------*/
|
269
|
|
-
|
270
|
|
- void setColor(unsigned int index, float r, float g, float b, float a);
|
271
|
|
- /*------------------------------------------------------
|
272
|
|
- * Pre :
|
273
|
|
- * Post :
|
274
|
|
- *
|
275
|
|
- *-- History ------------------------------------------
|
276
|
|
- *
|
277
|
|
- * 2002.08.23:
|
278
|
|
- * Mongoose - Created
|
279
|
|
- ------------------------------------------------------*/
|
280
|
|
-
|
281
|
|
- void setColor(unsigned int index, float rgba[4]);
|
282
|
|
- /*------------------------------------------------------
|
283
|
|
- * Pre :
|
284
|
|
- * Post :
|
285
|
|
- *
|
286
|
|
- *-- History ------------------------------------------
|
287
|
|
- *
|
288
|
|
- * 2002.08.23:
|
289
|
|
- * Mongoose - Created
|
290
|
|
- ------------------------------------------------------*/
|
291
|
|
-
|
292
|
|
- void setNormal(unsigned int index, float i, float j, float k);
|
293
|
|
- /*------------------------------------------------------
|
294
|
|
- * Pre :
|
295
|
|
- * Post :
|
296
|
|
- *
|
297
|
|
- *-- History ------------------------------------------
|
298
|
|
- *
|
299
|
|
- * 2002.08.23:
|
300
|
|
- * Mongoose - Created
|
301
|
|
- ------------------------------------------------------*/
|
302
|
|
-
|
303
|
|
- void setVertex(unsigned int index, float x, float y, float z);
|
304
|
|
- /*------------------------------------------------------
|
305
|
|
- * Pre :
|
306
|
|
- * Post :
|
307
|
|
- *
|
308
|
|
- *-- History ------------------------------------------
|
309
|
|
- *
|
310
|
|
- * 2002.08.23:
|
311
|
|
- * Mongoose - Created
|
312
|
|
- ------------------------------------------------------*/
|
|
122
|
+
|
|
123
|
+ void allocateTriangles(unsigned int n);
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+ void allocateVertices(unsigned int n);
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+ void bufferColorArray(unsigned int colorCount, vec_t *colors,
|
|
130
|
+ unsigned int colorWidth);
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+ void bufferNormalArray(unsigned int normalCount, vec_t *normals);
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+ void bufferTriangles(unsigned int count,
|
|
137
|
+ unsigned int *indices, vec_t *texCoords,
|
|
138
|
+ int *textures, unsigned int *flags);
|
|
139
|
+
|
|
140
|
+ void bufferVertexArray(unsigned int vertexCount, vec_t *vertices);
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+ void setColor(unsigned int index, float r, float g, float b, float a);
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+ void setColor(unsigned int index, float rgba[4]);
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+ void setNormal(unsigned int index, float i, float j, float k);
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+ void setVertex(unsigned int index, float x, float y, float z);
|
313
|
153
|
|
314
|
154
|
#ifdef NOT_IMPLEMENTED
|
315
|
|
- void sortFacesByTexture();
|
316
|
|
- /*------------------------------------------------------
|
317
|
|
- * Pre :
|
318
|
|
- * Post :
|
319
|
|
- *
|
320
|
|
- *-- History ------------------------------------------
|
321
|
|
- *
|
322
|
|
- * 2003.05.26:
|
323
|
|
- * Mongoose - Created
|
324
|
|
- ------------------------------------------------------*/
|
325
|
|
-
|
326
|
|
- void addFace(int textureIndex, int textureIndexB, unsigned int flags,
|
327
|
|
- unsigned int vertexIndexCount, vec_t *vertexIndices);
|
328
|
|
- /*------------------------------------------------------
|
329
|
|
- * Pre :
|
330
|
|
- * Post :
|
331
|
|
- *
|
332
|
|
- *-- History ------------------------------------------
|
333
|
|
- *
|
334
|
|
- * 2003.05.26:
|
335
|
|
- * Mongoose - Created
|
336
|
|
- ------------------------------------------------------*/
|
337
|
|
-
|
338
|
|
- void addTexTiledFace(int textureIndex, int textureIndexB,
|
339
|
|
- unsigned int flags, unsigned int indexCount,
|
340
|
|
- vec_t *vertexIndices, vec_t *texcoords);
|
341
|
|
- /*------------------------------------------------------
|
342
|
|
- * Pre :
|
343
|
|
- * Post :
|
344
|
|
- *
|
345
|
|
- *-- History ------------------------------------------
|
346
|
|
- *
|
347
|
|
- * 2003.05.26:
|
348
|
|
- * Mongoose - Created
|
349
|
|
- ------------------------------------------------------*/
|
350
|
|
-
|
351
|
|
- void bufferTexcoords(unsigned int texcoordCount, vec_t *texcoords);
|
352
|
|
- /*------------------------------------------------------
|
353
|
|
- * Pre :
|
354
|
|
- * Post :
|
355
|
|
- *
|
356
|
|
- *-- History ------------------------------------------
|
357
|
|
- *
|
358
|
|
- * 2003.05.26:
|
359
|
|
- * Mongoose - Created
|
360
|
|
- ------------------------------------------------------*/
|
361
|
|
-
|
362
|
|
- void duplicateArraysForTexTiledTexcoords();
|
363
|
|
- /*------------------------------------------------------
|
364
|
|
- * Pre :
|
365
|
|
- * Post :
|
366
|
|
- *
|
367
|
|
- *-- History ------------------------------------------
|
368
|
|
- *
|
369
|
|
- * 2003.05.26:
|
370
|
|
- * Mongoose - Created
|
371
|
|
- ------------------------------------------------------*/
|
372
|
|
-#endif
|
373
|
155
|
|
374
|
156
|
|
375
|
|
- unsigned int mFlags;
|
|
157
|
+ void sortFacesByTexture();
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+ void addFace(int textureIndex, int textureIndexB, unsigned int flags,
|
|
161
|
+ unsigned int vertexIndexCount, vec_t *vertexIndices);
|
376
|
162
|
|
377
|
|
- OpenGLMeshMode mMode;
|
378
|
163
|
|
379
|
|
- unsigned int mNumVertices;
|
380
|
|
- vec3_t *mVertices; // <XYZ>
|
|
164
|
+ void addTexTiledFace(int textureIndex, int textureIndexB,
|
|
165
|
+ unsigned int flags, unsigned int indexCount,
|
|
166
|
+ vec_t *vertexIndices, vec_t *texcoords);
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+ void bufferTexcoords(unsigned int texcoordCount, vec_t *texcoords);
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+ void duplicateArraysForTexTiledTexcoords();
|
|
173
|
+
|
|
174
|
+#endif
|
|
175
|
+
|
|
176
|
+ unsigned int mFlags;
|
381
|
177
|
|
382
|
|
- unsigned int mNumNormals;
|
383
|
|
- vec3_t *mNormals; // <IJK>
|
|
178
|
+ OpenGLMeshMode mMode;
|
384
|
179
|
|
385
|
|
- unsigned int mNumColors;
|
386
|
|
- vec4_t *mColors; // <RGBA>
|
|
180
|
+ unsigned int mNumVertices;
|
|
181
|
+ vec3_t *mVertices; //!< XYZ
|
387
|
182
|
|
388
|
|
- unsigned int mNumTris;
|
389
|
|
- tris_t *mTris;
|
|
183
|
+ unsigned int mNumNormals;
|
|
184
|
+ vec3_t *mNormals; //!< IJK
|
390
|
185
|
|
391
|
|
- unsigned int mNumQuads;
|
392
|
|
- rect_t *mQuads;
|
|
186
|
+ unsigned int mNumColors;
|
|
187
|
+ vec4_t *mColors; //!< RGBA
|
393
|
188
|
|
|
189
|
+ unsigned int mNumTris;
|
|
190
|
+ tris_t *mTris;
|
394
|
191
|
|
395
|
|
- unsigned int mTriangleCount;
|
396
|
|
- int *mTriangleTextures;
|
397
|
|
- unsigned int *mTriangleIndices;
|
398
|
|
- unsigned int *mTriangleFlags;
|
399
|
|
- vec_t *mTriangleTexCoordArray;
|
|
192
|
+ unsigned int mNumQuads;
|
|
193
|
+ rect_t *mQuads;
|
400
|
194
|
|
401
|
|
- vec_t *mVertexArray;
|
402
|
|
- vec_t *mNormalArray;
|
403
|
|
- vec_t *mColorArray;
|
|
195
|
+ unsigned int mTriangleCount;
|
|
196
|
+ int *mTriangleTextures;
|
|
197
|
+ unsigned int *mTriangleIndices;
|
|
198
|
+ unsigned int *mTriangleFlags;
|
|
199
|
+ vec_t *mTriangleTexCoordArray;
|
404
|
200
|
|
405
|
|
- private:
|
|
201
|
+ vec_t *mVertexArray;
|
|
202
|
+ vec_t *mNormalArray;
|
|
203
|
+ vec_t *mColorArray;
|
406
|
204
|
|
407
|
|
- ////////////////////////////////////////////////////////////
|
408
|
|
- // Private Accessors
|
409
|
|
- ////////////////////////////////////////////////////////////
|
|
205
|
+private:
|
410
|
206
|
|
|
207
|
+ ////////////////////////////////////////////////////////////
|
|
208
|
+ // Private Accessors
|
|
209
|
+ ////////////////////////////////////////////////////////////
|
411
|
210
|
|
412
|
|
- ////////////////////////////////////////////////////////////
|
413
|
|
- // Private Mutators
|
414
|
|
- ////////////////////////////////////////////////////////////
|
415
|
211
|
|
|
212
|
+ ////////////////////////////////////////////////////////////
|
|
213
|
+ // Private Mutators
|
|
214
|
+ ////////////////////////////////////////////////////////////
|
416
|
215
|
|
417
|
|
- /* */
|
418
|
216
|
};
|
419
|
217
|
|
420
|
218
|
#endif
|