-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmd2Loader.h
49 lines (42 loc) · 1.15 KB
/
md2Loader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/***********************************************
* $author: javery
* $date : 20 May 02
* $descp : Rotines to load and animate md2 models ( thanks to id software for
* this convienet file spec )
* $path : C:\Program Files\Microsoft Visual Studio\MyProjects\KaosDemoEngine\md2Loader.h
* $ver : 0.0.0
***********************************************/
#ifndef __MD2_LOADER_H__
#define __MD2_LOADER_H__
#include "model.h"
#include "util_common_h.h"
#include <stdio.h>
#define MD2_MAX_TRI_COUNT 0x1000
#define MD2_MAX_VERT_COUNT 0x0800
#define MD2_MAX_TEX_COORD_COUNT 0x0800
#define MD2_MAX_FRAME_COUNT 0x0200
#define MD2_MAX_SKIN_COUNT 0x0200
typedef struct md2Struct_t
{
int magic_id,
version,
skinWidth,
skinHeight,
frameSize,
skinCount,
vertCount,
texCoordCount,
triCount,
glCmdCount,
frameCount,
skinOffset,
texCoordOffset,
triOffset,
frameOffset,
glCmdOffset,
endOffsetl;
}*pmd2Struct_t;
static void MD2_InitStruct( pmd2Struct_t , FILE* );
static __inline float MD2_TranslateVertex( float , float , k_byte );
k_boolean MD2_LoadObject( pmd2Struct_t , char* , pModel_t );
#endif