25 |
#define MD3_DATA_H |
#define MD3_DATA_H |
26 |
|
|
27 |
#include <sys/types.h> |
#include <sys/types.h> |
28 |
|
|
29 |
#include <Foundation/NSObject.h> |
#include <Foundation/NSObject.h> |
30 |
|
|
31 |
|
#include "Common/Coord.h" |
32 |
|
|
33 |
@class NSString; |
@class NSString; |
34 |
|
|
35 |
#define SUCCESS YES |
#define SUCCESS YES |
36 |
#define FAILURE NO |
#define FAILURE NO |
37 |
|
|
38 |
|
typedef struct { |
39 |
|
int32_t vertex1; |
40 |
|
int32_t vertex2; |
41 |
|
int32_t vertex3; |
42 |
|
} triangle_t; |
43 |
|
|
44 |
@interface MD3Data : NSObject |
@interface MD3Data : NSObject |
45 |
{ |
{ |
46 |
@private |
@private |
51 |
- (id) initWithFile: (NSString *)fileName; |
- (id) initWithFile: (NSString *)fileName; |
52 |
- (void) dealloc; |
- (void) dealloc; |
53 |
|
|
54 |
- (const char*) modelName; |
- (const char *) modelName; |
55 |
- (int32_t) nbFrames; |
- (int32_t) nbFrames; |
56 |
|
|
57 |
- (const float*) boneFramePosition: (int32_t)noBoneFrame; |
- (coord_t) boneFramePosition: (int32_t)noBoneFrame; |
58 |
- (const float*) boneFrameMins: (int32_t)noBoneFrame; |
- (coord_t) boneFrameMins: (int32_t)noBoneFrame; |
59 |
- (const float*) boneFrameMaxs: (int32_t)noBoneFrame; |
- (coord_t) boneFrameMaxs: (int32_t)noBoneFrame; |
60 |
- (float) boneFrameScale: (int32_t)noBoneFrame; |
- (float) boneFrameScale: (int32_t)noBoneFrame; |
61 |
- (const char*) boneFrameCreator: (int32_t)noBoneFrame; |
- (const char *) boneFrameCreator: (int32_t)noBoneFrame; |
62 |
|
|
63 |
- (int32_t) nbTags; |
- (int32_t) nbTags; |
64 |
- (const char*) tagName: (int32_t)noTag |
- (const char *) tagName: (int32_t)noTag |
65 |
|
inFrame: (int32_t)noFrame; |
66 |
|
- (coord_t) tagPosition: (int32_t)noTag |
67 |
inFrame: (int32_t)noFrame; |
inFrame: (int32_t)noFrame; |
68 |
- (const float*) tagPosition: (int32_t)noTag |
- (const float *) tagOrientationMatrix: (int32_t)noTag |
69 |
inFrame: (int32_t)noFrame; |
inFrame: (int32_t)noFrame; |
|
- (const float*) tagOrientationMatrix: (int32_t)noTag |
|
|
inFrame: (int32_t)noFrame; |
|
70 |
|
|
71 |
- (int32_t) nbMeshes; |
- (int32_t) nbMeshes; |
72 |
- (const char*) meshName: (int32_t)noMesh; |
- (const char *) meshName: (int32_t)noMesh; |
73 |
- (int32_t) meshNbTextures: (int32_t)noMesh; |
- (int32_t) meshNbTextures: (int32_t)noMesh; |
74 |
- (int32_t) meshNbVertice: (int32_t)noMesh; |
- (int32_t) meshNbVertice: (int32_t)noMesh; |
75 |
- (int32_t) meshNbTriangles: (int32_t)noMesh; |
- (int32_t) meshNbTriangles: (int32_t)noMesh; |
76 |
- (const char *) meshTexName: (int32_t)noMesh |
- (const char *) meshTexName: (int32_t)noMesh |
77 |
withNumber: (int32_t)noTexture; |
withNumber: (int32_t)noTexture; |
78 |
- (const int32_t*) meshTriangle: (int32_t)noMesh |
- (triangle_t) meshTriangle: (int32_t)noMesh |
79 |
withNumber: (int32_t)noTriangle; |
withNumber: (int32_t)noTriangle; |
80 |
- (const float*) meshTexCoord: (int32_t)noMesh |
|
81 |
withNumber: (int32_t)noVertex; |
- (tex_coord_t) meshTexCoord: (int32_t)noMesh |
82 |
- (const u_int16_t*) meshCoordVertex: (int32_t)noMesh |
withNumber: (int32_t)noVertex; |
83 |
withNumber: (int32_t)noVertex |
- (coord_t) meshCoordVertex: (int32_t)noMesh |
84 |
inFrame: (int32_t)noFrame; |
withNumber: (int32_t)noVertex |
85 |
- (const u_int8_t*) meshTexEnvVertex: (int32_t)noMesh |
inFrame: (int32_t)noFrame; |
86 |
withNumber: (int32_t)noVertex |
- (coord_t) meshNormalVertex: (int32_t)noMesh |
87 |
inFrame: (int32_t)noFrame; |
withNumber: (int32_t)noVertex |
88 |
|
inFrame: (int32_t)noFrame; |
89 |
|
|
90 |
@end |
@end |
91 |
|
|