Subversion Repositories Games.Carmageddon

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 pmbaty 1
#ifndef _V1DBFILE_H_
2
#define _V1DBFILE_H_
3
 
4
#include "brender/br_types.h"
5
 
6
 
7
int FopWrite_VERTICES(br_datafile* df, br_vertex* vertices, int nvertices);
8
 
9
int FopRead_VERTICES(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
10
 
11
int FopRead_OLD_VERTICES(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
12
 
13
int FopWrite_VERTEX_UV(br_datafile* df, br_vertex* vertices, int nvertices);
14
 
15
int FopRead_VERTEX_UV(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
16
 
17
int FopRead_OLD_VERTICES_UV(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
18
 
19
int FopRead_MATERIAL_INDEX(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
20
 
21
int FopWrite_MATERIAL_INDEX(br_datafile* df, br_material** materials, int nmaterials);
22
 
23
int FopRead_OLD_MATERIAL_INDEX(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
24
 
25
int FopRead_FACES(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
26
 
27
int FopWrite_FACES(br_datafile* df, br_face* faces, int nfaces);
28
 
29
int FopRead_OLD_FACES_1(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
30
 
31
int FopRead_OLD_FACES(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
32
 
33
int FopWrite_FACE_MATERIAL(br_datafile* df, br_face* faces, int nfaces, br_material** mindex, int nmaterials);
34
 
35
int FopRead_FACE_MATERIAL(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
36
 
37
int FopRead_MODEL(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
38
 
39
int FopWrite_MODEL(br_datafile* df, br_model* mp);
40
 
41
int FopRead_OLD_MODEL_1(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
42
 
43
int FopRead_OLD_MODEL(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
44
 
45
int FopRead_PIVOT(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
46
 
47
int FopRead_MATERIAL_OLD(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
48
 
49
int FopRead_MATERIAL(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
50
 
51
int FopWrite_MATERIAL(br_datafile* df, br_material* mp);
52
 
53
int FopRead_PIXELMAP_REF(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
54
 
55
int FopWrite_PIXELMAP_REF(br_datafile* df, int id, br_pixelmap* pixelmap);
56
 
57
int FopWrite_ACTOR(br_datafile* df, br_actor* ap);
58
 
59
int FopRead_ACTOR(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
60
 
61
int FopWrite_ACTOR_MODEL(br_datafile* df, br_model* model);
62
 
63
int FopRead_ACTOR_MODEL(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
64
 
65
int FopWrite_ACTOR_MATERIAL(br_datafile* df, br_material* material);
66
 
67
int FopRead_ACTOR_MATERIAL(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
68
 
69
int FopWrite_ACTOR_TRANSFORM(br_datafile* df);
70
 
71
int FopRead_ACTOR_TRANSFORM(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
72
 
73
int FopWrite_ACTOR_LIGHT(br_datafile* df);
74
 
75
int FopRead_ACTOR_LIGHT(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
76
 
77
int FopWrite_ACTOR_CAMERA(br_datafile* df);
78
 
79
int FopRead_ACTOR_CAMERA(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
80
 
81
int FopWrite_ACTOR_BOUNDS(br_datafile* df);
82
 
83
int FopRead_ACTOR_BOUNDS(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
84
 
85
int FopWrite_ACTOR_CLIP_PLANE(br_datafile* df);
86
 
87
int FopRead_ACTOR_CLIP_PLANE(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
88
 
89
int FopWrite_ACTOR_ADD_CHILD(br_datafile* df);
90
 
91
int FopRead_ACTOR_ADD_CHILD(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
92
 
93
int FopWrite_TRANSFORM(br_datafile* df, br_transform* t);
94
 
95
int FopRead_TRANSFORM(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
96
 
97
int FopWrite_BOUNDS(br_datafile* df, br_bounds* bp);
98
 
99
int FopRead_BOUNDS(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
100
 
101
int FopWrite_PLANE(br_datafile* df, br_vector4* pp);
102
 
103
int FopRead_PLANE(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
104
 
105
int FopWrite_LIGHT(br_datafile* df, br_light* lp);
106
 
107
int FopRead_LIGHT(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
108
 
109
int FopWrite_CAMERA(br_datafile* df, br_camera* cp);
110
 
111
int FopRead_CAMERA(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
112
 
113
br_uint_32 BrModelLoadMany(char* filename, br_model** models, br_uint_16 num);
114
 
115
int PtrCompare(void* a, void* b);
116
 
117
br_uint_32 WriteModel(br_model* mp, br_datafile* df);
118
 
119
br_uint_32 BrModelSaveMany(char* filename, br_model** models, br_uint_16 num);
120
 
121
br_uint_32 BrActorLoadMany(char* filename, br_actor** actors, br_uint_16 num);
122
 
123
int WriteActor(br_actor* a, br_datafile* df);
124
 
125
br_uint_32 BrActorSaveMany(char* filename, br_actor** actors, br_uint_16 num);
126
 
127
br_uint_32 BrMaterialLoadMany(char* filename, br_material** materials, br_uint_16 num);
128
 
129
br_uint_32 WriteMaterial(br_material* mp, br_datafile* df);
130
 
131
br_uint_32 BrMaterialSaveMany(char* filename, br_material** materials, br_uint_16 num);
132
 
133
br_model* BrModelLoad(char* filename);
134
 
135
br_uint_32 BrModelSave(char* filename, br_model* ptr);
136
 
137
br_material* BrMaterialLoad(char* filename);
138
 
139
br_uint_32 BrMaterialSave(char* filename, br_material* ptr);
140
 
141
br_actor* BrActorLoad(char* filename);
142
 
143
br_uint_32 BrActorSave(char* filename, br_actor* ptr);
144
 
145
br_error BrModelFileCount(char* filename, br_uint_16* num);
146
 
147
br_error BrActorFileCount(char* filename, br_uint_16* num);
148
 
149
br_error BrMaterialFileCount(char* filename, br_uint_16* num);
150
 
151
#endif