|
@@ -1,589 +0,0 @@
|
1
|
|
-/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
|
2
|
|
-/*================================================================
|
3
|
|
- *
|
4
|
|
- * Project : Freyja
|
5
|
|
- * Author : Terry 'Mongoose' Hendrix II
|
6
|
|
- * Website : http://www.westga.edu/~stu7440/
|
7
|
|
- * Email : stu7440@westga.edu
|
8
|
|
- * Object : PSKModel
|
9
|
|
- * License : No use w/o permission (C) 2003 Mongoose
|
10
|
|
- * Comments: Unreal Tournament skeletal model
|
11
|
|
- *
|
12
|
|
- *
|
13
|
|
- * This file was generated using Mongoose's C++
|
14
|
|
- * template generator script. <stu7440@westga.edu>
|
15
|
|
- *
|
16
|
|
- *-- Test Defines -----------------------------------------------
|
17
|
|
- *
|
18
|
|
- * UNIT_TEST_PSKMODEL - Builds PSKModel class as a console unit test
|
19
|
|
- *
|
20
|
|
- *-- History ------------------------------------------------
|
21
|
|
- *
|
22
|
|
- * 2003.07.12:
|
23
|
|
- * Mongoose - UT Package prototype code moved into 'UTPackage'
|
24
|
|
- * API changes to structs to clearify meaning
|
25
|
|
- *
|
26
|
|
- * 2003.06.12:
|
27
|
|
- * Mongoose - PSA keyframes fixed, special thanks to:
|
28
|
|
- * Steven Fuller and Forest Hale for help picking
|
29
|
|
- * apart those tough little 8 bytes =)
|
30
|
|
- *
|
31
|
|
- * 2003.06.11:
|
32
|
|
- * Mongoose - Broke up rendering and model loading into seperate
|
33
|
|
- * classes ( Closely coupled )
|
34
|
|
- *
|
35
|
|
- * PSA experimental loader
|
36
|
|
- *
|
37
|
|
- * 2003.06.10:
|
38
|
|
- * Mongoose - Skeletal format fixed, should load perfectly
|
39
|
|
- *
|
40
|
|
- * 2003.01.20:
|
41
|
|
- * Mongoose - Fixed triangle rendering thanks to debugging by
|
42
|
|
- * Steven Fuller, who found the tris -> UV -> vert
|
43
|
|
- * connection
|
44
|
|
- *
|
45
|
|
- * Finished up basic rendering, lots of
|
46
|
|
- * small fixes/features
|
47
|
|
- *
|
48
|
|
- * 2003.01.06:
|
49
|
|
- * Mongoose - Created
|
50
|
|
- ================================================================*/
|
51
|
|
-
|
52
|
|
-
|
53
|
|
-#ifndef GUARD__FREYJA_MONGOOSE_PSKMODEL_H_
|
54
|
|
-#define GUARD__FREYJA_MONGOOSE_PSKMODEL_H_
|
55
|
|
-
|
56
|
|
-
|
57
|
|
-typedef struct /* 13 bytes */
|
58
|
|
-{
|
59
|
|
- unsigned short x, y, z;
|
60
|
|
- unsigned char material;
|
61
|
|
- unsigned int flags;
|
62
|
|
- unsigned short unknown;
|
63
|
|
-
|
64
|
|
-} psk_face_t;
|
65
|
|
-
|
66
|
|
-
|
67
|
|
-typedef struct /* 16 bytes */
|
68
|
|
-{
|
69
|
|
- unsigned short vertex;
|
70
|
|
- unsigned short unknown1;
|
71
|
|
- float uv[2];
|
72
|
|
- unsigned int unknown2;
|
73
|
|
-
|
74
|
|
-} psk_vtxw_t;
|
75
|
|
-
|
76
|
|
-
|
77
|
|
-typedef struct /* 88 bytes */
|
78
|
|
-{
|
79
|
|
- char name[64];
|
80
|
|
-
|
81
|
|
- unsigned int unknown1;
|
82
|
|
- unsigned int unknown2;
|
83
|
|
- unsigned int unknown3;
|
84
|
|
- unsigned int unknown4;
|
85
|
|
- unsigned int unknown5;
|
86
|
|
- unsigned int unknown6;
|
87
|
|
-
|
88
|
|
-} psk_material_t;
|
89
|
|
-
|
90
|
|
-typedef struct /* 120 bytes */
|
91
|
|
-{
|
92
|
|
- char name[64];
|
93
|
|
- unsigned int flags; /* Option flags? */
|
94
|
|
- unsigned int numChildren;
|
95
|
|
- unsigned int parentIndex;
|
96
|
|
- float restDir[4]; /* Quaternion x,y,z,w */
|
97
|
|
- float restLoc[3];
|
98
|
|
- int unknown[4]; /* Scale? */
|
99
|
|
-
|
100
|
|
-} psk_bone_t;
|
101
|
|
-
|
102
|
|
-
|
103
|
|
-typedef struct /* 12 bytes */
|
104
|
|
-{
|
105
|
|
- float weight;
|
106
|
|
- unsigned int vertexIndex;
|
107
|
|
- unsigned int boneIndex;
|
108
|
|
-
|
109
|
|
-} psk_weight_t;
|
110
|
|
-
|
111
|
|
-
|
112
|
|
-typedef struct /* 168 bytes */
|
113
|
|
-{
|
114
|
|
- char name[64];
|
115
|
|
- char name2[64];
|
116
|
|
- unsigned int numBones;
|
117
|
|
- unsigned int rootId; // ?
|
118
|
|
- unsigned int key[2];
|
119
|
|
- float keyf;
|
120
|
|
- float time[2];
|
121
|
|
- float unknown[3];
|
122
|
|
-
|
123
|
|
-} psa_anim_info_t;
|
124
|
|
-
|
125
|
|
-
|
126
|
|
-typedef struct /* 32 bytes */
|
127
|
|
-{
|
128
|
|
- float trans[3]; // xyz
|
129
|
|
- float dir[4]; // xyzw
|
130
|
|
- float scale; // ?
|
131
|
|
-
|
132
|
|
-} psa_key_frame_t;
|
133
|
|
-
|
134
|
|
-
|
135
|
|
-class PSKModel
|
136
|
|
-{
|
137
|
|
- public:
|
138
|
|
-
|
139
|
|
- enum PSKModelFlag
|
140
|
|
- {
|
141
|
|
- fDebugWeightLoad = 1,
|
142
|
|
- fDebugPointLoad = 2,
|
143
|
|
- fDebugFaceLoad = 4,
|
144
|
|
- fDebugUVLoad = 8,
|
145
|
|
- fDebugMattLoad = 16,
|
146
|
|
- fDebugBoneLoad = 32
|
147
|
|
- };
|
148
|
|
-
|
149
|
|
-
|
150
|
|
- ////////////////////////////////////////////////////////////
|
151
|
|
- // Constructors
|
152
|
|
- ////////////////////////////////////////////////////////////
|
153
|
|
-
|
154
|
|
- PSKModel();
|
155
|
|
- /*------------------------------------------------------
|
156
|
|
- * Pre :
|
157
|
|
- * Post : Constructs an object of PSKModel
|
158
|
|
- *
|
159
|
|
- *-- History ------------------------------------------
|
160
|
|
- *
|
161
|
|
- * 2003.01.06:
|
162
|
|
- * Mongoose - Created
|
163
|
|
- ------------------------------------------------------*/
|
164
|
|
-
|
165
|
|
- ~PSKModel();
|
166
|
|
- /*------------------------------------------------------
|
167
|
|
- * Pre : PSKModel object is allocated
|
168
|
|
- * Post : Deconstructs an object of PSKModel
|
169
|
|
- *
|
170
|
|
- *-- History ------------------------------------------
|
171
|
|
- *
|
172
|
|
- * 2003.01.06:
|
173
|
|
- * Mongoose - Created
|
174
|
|
- ------------------------------------------------------*/
|
175
|
|
-
|
176
|
|
-
|
177
|
|
- ////////////////////////////////////////////////////////////
|
178
|
|
- // Public Accessors
|
179
|
|
- ////////////////////////////////////////////////////////////
|
180
|
|
-
|
181
|
|
- void printSkeletion(bool printNames);
|
182
|
|
- /*------------------------------------------------------
|
183
|
|
- * Pre : <PrintNames> if true use names instead of Ids
|
184
|
|
- *
|
185
|
|
- * Post : Prints skeletion bone trace one bone per line
|
186
|
|
- *
|
187
|
|
- *-- History ------------------------------------------
|
188
|
|
- *
|
189
|
|
- * 2003.06.10:
|
190
|
|
- * Mongoose - Created
|
191
|
|
- ------------------------------------------------------*/
|
192
|
|
-
|
193
|
|
-
|
194
|
|
- ////////////////////////////////////////////////////////////
|
195
|
|
- // Public Mutators
|
196
|
|
- ////////////////////////////////////////////////////////////
|
197
|
|
-
|
198
|
|
- int load(char *filename);
|
199
|
|
- /*------------------------------------------------------
|
200
|
|
- * Pre :
|
201
|
|
- * Post : Loads PSK model from disk
|
202
|
|
- *
|
203
|
|
- *-- History ------------------------------------------
|
204
|
|
- *
|
205
|
|
- * 2003.01.06:
|
206
|
|
- * Mongoose - Created
|
207
|
|
- ------------------------------------------------------*/
|
208
|
|
-
|
209
|
|
- unsigned int mFlags;
|
210
|
|
-
|
211
|
|
- unsigned int mNumFrames;
|
212
|
|
-
|
213
|
|
- unsigned int mNumVertices;
|
214
|
|
-
|
215
|
|
- unsigned int mNumFaces;
|
216
|
|
-
|
217
|
|
- unsigned int mNumVTXWs;
|
218
|
|
-
|
219
|
|
- unsigned int mNumMaterials;
|
220
|
|
-
|
221
|
|
- unsigned int mNumBones;
|
222
|
|
-
|
223
|
|
- unsigned int mNumWeights;
|
224
|
|
-
|
225
|
|
- float *mVertices; /* Vertices of the model */
|
226
|
|
-
|
227
|
|
- psk_vtxw_t *mVTXWs; /* UV Wedges */
|
228
|
|
-
|
229
|
|
- psk_face_t *mFaces; /* The triangle mesh */
|
230
|
|
-
|
231
|
|
- psk_material_t *mMaterials; /* Materials/textures */
|
232
|
|
-
|
233
|
|
- psk_bone_t *mBones; /* The bones of the model */
|
234
|
|
-
|
235
|
|
- psk_weight_t *mWeights; /* The weights of the bones */
|
236
|
|
-
|
237
|
|
-
|
238
|
|
- private:
|
239
|
|
-
|
240
|
|
- ////////////////////////////////////////////////////////////
|
241
|
|
- // Private Accessors
|
242
|
|
- ////////////////////////////////////////////////////////////
|
243
|
|
-
|
244
|
|
-
|
245
|
|
- ////////////////////////////////////////////////////////////
|
246
|
|
- // Private Mutators
|
247
|
|
- ////////////////////////////////////////////////////////////
|
248
|
|
-};
|
249
|
|
-
|
250
|
|
-
|
251
|
|
-//////////////////////////////////////////////////////////////////////
|
252
|
|
-// PSAAnimation Class
|
253
|
|
-//////////////////////////////////////////////////////////////////////
|
254
|
|
-
|
255
|
|
-class PSAAnimation
|
256
|
|
-{
|
257
|
|
-public:
|
258
|
|
-
|
259
|
|
- enum PSKModelRendererFlag
|
260
|
|
- {
|
261
|
|
- fReserved1 = 1,
|
262
|
|
- fReserved2 = 2,
|
263
|
|
- fDebugBones = 4,
|
264
|
|
- fDebugAnimInfos = 8,
|
265
|
|
- fDebugKeyFrames = 16
|
266
|
|
- };
|
267
|
|
-
|
268
|
|
- ////////////////////////////////////////////////////////////
|
269
|
|
- // Constructors
|
270
|
|
- ////////////////////////////////////////////////////////////
|
271
|
|
-
|
272
|
|
- PSAAnimation();
|
273
|
|
- /*------------------------------------------------------
|
274
|
|
- * Pre :
|
275
|
|
- * Post : Constructs an object of PSAAnimation
|
276
|
|
- *
|
277
|
|
- *-- History ------------------------------------------
|
278
|
|
- *
|
279
|
|
- * 2003.06.11:
|
280
|
|
- * Mongoose - Created
|
281
|
|
- ------------------------------------------------------*/
|
282
|
|
-
|
283
|
|
- ~PSAAnimation();
|
284
|
|
- /*------------------------------------------------------
|
285
|
|
- * Pre : PSAAnimation object is allocated
|
286
|
|
- * Post : Deconstructs an object of PSAAnimation
|
287
|
|
- *
|
288
|
|
- *-- History ------------------------------------------
|
289
|
|
- *
|
290
|
|
- * 2003.06.11:
|
291
|
|
- * Mongoose - Created
|
292
|
|
- ------------------------------------------------------*/
|
293
|
|
-
|
294
|
|
-
|
295
|
|
- ////////////////////////////////////////////////////////////
|
296
|
|
- // Public Accessors
|
297
|
|
- ////////////////////////////////////////////////////////////
|
298
|
|
-
|
299
|
|
- int load(char *filename);
|
300
|
|
- /*------------------------------------------------------
|
301
|
|
- * Pre :
|
302
|
|
- * Post : Loads PSA animation from disk
|
303
|
|
- *
|
304
|
|
- * Returns < 0 on error
|
305
|
|
- *
|
306
|
|
- *-- History ------------------------------------------
|
307
|
|
- *
|
308
|
|
- * 2003.01.06:
|
309
|
|
- * Mongoose - Created
|
310
|
|
- ------------------------------------------------------*/
|
311
|
|
-
|
312
|
|
-
|
313
|
|
- ////////////////////////////////////////////////////////////
|
314
|
|
- // Public Mutators
|
315
|
|
- ////////////////////////////////////////////////////////////
|
316
|
|
-
|
317
|
|
- unsigned int mFlags;
|
318
|
|
-
|
319
|
|
- unsigned int mNumFrames;
|
320
|
|
-
|
321
|
|
- unsigned int mNumBones;
|
322
|
|
-
|
323
|
|
- unsigned int mNumAnimInfos;
|
324
|
|
-
|
325
|
|
- unsigned int mNumKeyFrames;
|
326
|
|
-
|
327
|
|
- psk_bone_t *mBones;
|
328
|
|
-
|
329
|
|
- psa_anim_info_t *mAnimInfos;
|
330
|
|
-
|
331
|
|
- psa_key_frame_t *mKeyFrames;
|
332
|
|
-
|
333
|
|
-
|
334
|
|
-private:
|
335
|
|
-
|
336
|
|
- ////////////////////////////////////////////////////////////
|
337
|
|
- // Private Accessors
|
338
|
|
- ////////////////////////////////////////////////////////////
|
339
|
|
-
|
340
|
|
-
|
341
|
|
- ////////////////////////////////////////////////////////////
|
342
|
|
- // Private Mutators
|
343
|
|
- ////////////////////////////////////////////////////////////
|
344
|
|
-
|
345
|
|
-};
|
346
|
|
-
|
347
|
|
-
|
348
|
|
-//////////////////////////////////////////////////////////////////////
|
349
|
|
-// PSKModelRenderer Class
|
350
|
|
-//////////////////////////////////////////////////////////////////////
|
351
|
|
-
|
352
|
|
-class PSKModelRenderer
|
353
|
|
-{
|
354
|
|
- public:
|
355
|
|
-
|
356
|
|
- enum PSKModelRendererFlag
|
357
|
|
- {
|
358
|
|
- fRenderFaces = 1,
|
359
|
|
- fRenderTexture = 2,
|
360
|
|
- fRenderPoints = 4,
|
361
|
|
- fRenderBones = 8,
|
362
|
|
- fConvertEuler = 16,
|
363
|
|
- fDebugFaceRender = 32
|
364
|
|
- };
|
365
|
|
-
|
366
|
|
-
|
367
|
|
- ////////////////////////////////////////////////////////////
|
368
|
|
- // Constructors
|
369
|
|
- ////////////////////////////////////////////////////////////
|
370
|
|
-
|
371
|
|
- PSKModelRenderer();
|
372
|
|
- /*------------------------------------------------------
|
373
|
|
- * Pre :
|
374
|
|
- * Post : Constructs an object of PSKModelRenderer
|
375
|
|
- *
|
376
|
|
- *-- History ------------------------------------------
|
377
|
|
- *
|
378
|
|
- * 2003.01.06:
|
379
|
|
- * Mongoose - Created
|
380
|
|
- ------------------------------------------------------*/
|
381
|
|
-
|
382
|
|
- ~PSKModelRenderer();
|
383
|
|
- /*------------------------------------------------------
|
384
|
|
- * Pre : PSKModelRenderer object is allocated
|
385
|
|
- * Post : Deconstructs an object of PSKModelRenderer
|
386
|
|
- *
|
387
|
|
- *-- History ------------------------------------------
|
388
|
|
- *
|
389
|
|
- * 2003.01.06:
|
390
|
|
- * Mongoose - Created
|
391
|
|
- ------------------------------------------------------*/
|
392
|
|
-
|
393
|
|
-
|
394
|
|
- ////////////////////////////////////////////////////////////
|
395
|
|
- // Public Accessors
|
396
|
|
- ////////////////////////////////////////////////////////////
|
397
|
|
-
|
398
|
|
- void render();
|
399
|
|
- /*------------------------------------------------------
|
400
|
|
- * Pre :
|
401
|
|
- * Post : Renders PSK model in OpenGL
|
402
|
|
- *
|
403
|
|
- *-- History ------------------------------------------
|
404
|
|
- *
|
405
|
|
- * 2003.01.06:
|
406
|
|
- * Mongoose - Created
|
407
|
|
- ------------------------------------------------------*/
|
408
|
|
-
|
409
|
|
- void renderBone(unsigned int id);
|
410
|
|
- /*------------------------------------------------------
|
411
|
|
- * Pre :
|
412
|
|
- * Post : Renders PSK model's bone in OpenGL,
|
413
|
|
- * ( Recursive calling )
|
414
|
|
- *
|
415
|
|
- *-- History ------------------------------------------
|
416
|
|
- *
|
417
|
|
- * 2003.01.06:
|
418
|
|
- * Mongoose - Created, from nonpublic render()
|
419
|
|
- ------------------------------------------------------*/
|
420
|
|
-
|
421
|
|
-
|
422
|
|
- ////////////////////////////////////////////////////////////
|
423
|
|
- // Public Mutators
|
424
|
|
- ////////////////////////////////////////////////////////////
|
425
|
|
-
|
426
|
|
- void convertBoneAngles();
|
427
|
|
- /*------------------------------------------------------
|
428
|
|
- * Pre :
|
429
|
|
- * Post : Converts bone angles for rendering use
|
430
|
|
- *
|
431
|
|
- *-- History ------------------------------------------
|
432
|
|
- *
|
433
|
|
- * 2003.06.10:
|
434
|
|
- * Mongoose - Created
|
435
|
|
- ------------------------------------------------------*/
|
436
|
|
-
|
437
|
|
- void convertBoneAnglesPSA(unsigned int frame);
|
438
|
|
- /*------------------------------------------------------
|
439
|
|
- * Pre :
|
440
|
|
- * Post : Converts PSA bone angles for rendering use
|
441
|
|
- *
|
442
|
|
- *-- History ------------------------------------------
|
443
|
|
- *
|
444
|
|
- * 2003.06.10:
|
445
|
|
- * Mongoose - Created
|
446
|
|
- ------------------------------------------------------*/
|
447
|
|
-
|
448
|
|
- void copyVertices();
|
449
|
|
- /*------------------------------------------------------
|
450
|
|
- * Pre :
|
451
|
|
- * Post : Resets vertices to match PSKModel's default
|
452
|
|
- *
|
453
|
|
- *-- History ------------------------------------------
|
454
|
|
- *
|
455
|
|
- * 2003.06.10:
|
456
|
|
- * Mongoose - Created
|
457
|
|
- ------------------------------------------------------*/
|
458
|
|
-
|
459
|
|
- void setAnimation(PSAAnimation *anim);
|
460
|
|
- /*------------------------------------------------------
|
461
|
|
- * Pre :
|
462
|
|
- * Post : Sets PSA animation to render, and sets up cache
|
463
|
|
- *
|
464
|
|
- *-- History ------------------------------------------
|
465
|
|
- *
|
466
|
|
- * 2003.06.11:
|
467
|
|
- * Mongoose - Created
|
468
|
|
- ------------------------------------------------------*/
|
469
|
|
-
|
470
|
|
- void setModel(PSKModel *model);
|
471
|
|
- /*------------------------------------------------------
|
472
|
|
- * Pre :
|
473
|
|
- * Post : Sets PSK model to render, and sets up cache
|
474
|
|
- *
|
475
|
|
- *-- History ------------------------------------------
|
476
|
|
- *
|
477
|
|
- * 2003.06.10:
|
478
|
|
- * Mongoose - Created
|
479
|
|
- ------------------------------------------------------*/
|
480
|
|
-
|
481
|
|
- void setupRestMatrices(unsigned int id);
|
482
|
|
- /*------------------------------------------------------
|
483
|
|
- * Pre : <Id> the bone to setup matching invert matrix
|
484
|
|
- *
|
485
|
|
- * Post : Generates inverted matrices to render deformed
|
486
|
|
- * mesh by recursive call from root bone
|
487
|
|
- *
|
488
|
|
- * OpenGL accelerated where avalibable
|
489
|
|
- *
|
490
|
|
- *-- History ------------------------------------------
|
491
|
|
- *
|
492
|
|
- * 2003.07.07:
|
493
|
|
- * Mongoose - Created, was boneTransforms
|
494
|
|
- ------------------------------------------------------*/
|
495
|
|
-
|
496
|
|
- void setupWorldMatrices(unsigned int id);
|
497
|
|
- /*------------------------------------------------------
|
498
|
|
- * Pre : <Id> the bone to setup matching transform matrix
|
499
|
|
- *
|
500
|
|
- * Post : Generates transform matrices to render deformed
|
501
|
|
- * mesh by recursive call from root bone
|
502
|
|
- *
|
503
|
|
- *-- History ------------------------------------------
|
504
|
|
- *
|
505
|
|
- * 2003.06.10:
|
506
|
|
- * Mongoose - Created, was boneTransforms
|
507
|
|
- ------------------------------------------------------*/
|
508
|
|
-
|
509
|
|
- void transformVertices();
|
510
|
|
- /*------------------------------------------------------
|
511
|
|
- * Pre :
|
512
|
|
- * Post : Transforms vertices to deformed mesh for
|
513
|
|
- * current bone frame
|
514
|
|
- *
|
515
|
|
- *-- History ------------------------------------------
|
516
|
|
- *
|
517
|
|
- * 2003.06.10:
|
518
|
|
- * Mongoose - Created
|
519
|
|
- ------------------------------------------------------*/
|
520
|
|
-
|
521
|
|
- unsigned int mFlags;
|
522
|
|
-
|
523
|
|
- int mTextures[8]; /* Texture Ids of loaded materials */
|
524
|
|
-
|
525
|
|
- unsigned int mAnimationFrame; /* Used to keep up with animation
|
526
|
|
- frame externally,
|
527
|
|
-
|
528
|
|
- And updated internally
|
529
|
|
-
|
530
|
|
- Should be moved to
|
531
|
|
- private+acessor method
|
532
|
|
- */
|
533
|
|
-
|
534
|
|
- private:
|
535
|
|
-
|
536
|
|
- ////////////////////////////////////////////////////////////
|
537
|
|
- // Private Accessors
|
538
|
|
- ////////////////////////////////////////////////////////////
|
539
|
|
-
|
540
|
|
-
|
541
|
|
- ////////////////////////////////////////////////////////////
|
542
|
|
- // Private Mutators
|
543
|
|
- ////////////////////////////////////////////////////////////
|
544
|
|
-
|
545
|
|
- float *mBoneRotationCache; /* Cache of the computed axis angles */
|
546
|
|
-
|
547
|
|
- float *mVertexTransformCache; /* Cache of vertex transforms */
|
548
|
|
-
|
549
|
|
- float **mInvertedMatrices; /* Cache of computed inverted
|
550
|
|
- bone transform matrices for the
|
551
|
|
- vertices at rest position */
|
552
|
|
-
|
553
|
|
- float **mWorldMatrices;
|
554
|
|
-
|
555
|
|
- unsigned int mNumMatrices;
|
556
|
|
-
|
557
|
|
-
|
558
|
|
- /* Simulate inheritence here, cheesy waste */
|
559
|
|
-
|
560
|
|
- unsigned int mNumFrames;
|
561
|
|
-
|
562
|
|
- unsigned int mNumVertices;
|
563
|
|
-
|
564
|
|
- unsigned int mNumFaces;
|
565
|
|
-
|
566
|
|
- unsigned int mNumVTXWs;
|
567
|
|
-
|
568
|
|
- unsigned int mNumMaterials;
|
569
|
|
-
|
570
|
|
- unsigned int mNumBones;
|
571
|
|
-
|
572
|
|
- unsigned int mNumWeights;
|
573
|
|
-
|
574
|
|
- PSKModel *mModel; /* Current PSK model to render */
|
575
|
|
-
|
576
|
|
- PSAAnimation *mAnimation; /* Current PSA anim to render */
|
577
|
|
-
|
578
|
|
- psk_vtxw_t *mVTXWs; /* UV Wedges */
|
579
|
|
-
|
580
|
|
- psk_face_t *mFaces; /* The triangle mesh */
|
581
|
|
-
|
582
|
|
- psk_material_t *mMaterials; /* Materials/textures */
|
583
|
|
-
|
584
|
|
- psk_bone_t *mBones; /* The bones of the model */
|
585
|
|
-
|
586
|
|
- psk_weight_t *mWeights; /* The weights of the bones */
|
587
|
|
-};
|
588
|
|
-
|
589
|
|
-#endif
|