#ifndef _V1DBFILE_H_
#define _V1DBFILE_H_
#include "brender/br_types.h"
int FopWrite_VERTICES(br_datafile* df, br_vertex* vertices, int nvertices);
int FopRead_VERTICES(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopRead_OLD_VERTICES(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_VERTEX_UV(br_datafile* df, br_vertex* vertices, int nvertices);
int FopRead_VERTEX_UV(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopRead_OLD_VERTICES_UV(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopRead_MATERIAL_INDEX(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_MATERIAL_INDEX(br_datafile* df, br_material** materials, int nmaterials);
int FopRead_OLD_MATERIAL_INDEX(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopRead_FACES(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_FACES(br_datafile* df, br_face* faces, int nfaces);
int FopRead_OLD_FACES_1(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopRead_OLD_FACES(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_FACE_MATERIAL(br_datafile* df, br_face* faces, int nfaces, br_material** mindex, int nmaterials);
int FopRead_FACE_MATERIAL(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopRead_MODEL(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_MODEL(br_datafile* df, br_model* mp);
int FopRead_OLD_MODEL_1(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopRead_OLD_MODEL(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopRead_PIVOT(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopRead_MATERIAL_OLD(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopRead_MATERIAL(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_MATERIAL(br_datafile* df, br_material* mp);
int FopRead_PIXELMAP_REF(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_PIXELMAP_REF(br_datafile* df, int id, br_pixelmap* pixelmap);
int FopWrite_ACTOR(br_datafile* df, br_actor* ap);
int FopRead_ACTOR(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_ACTOR_MODEL(br_datafile* df, br_model* model);
int FopRead_ACTOR_MODEL(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_ACTOR_MATERIAL(br_datafile* df, br_material* material);
int FopRead_ACTOR_MATERIAL(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_ACTOR_TRANSFORM(br_datafile* df);
int FopRead_ACTOR_TRANSFORM(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_ACTOR_LIGHT(br_datafile* df);
int FopRead_ACTOR_LIGHT(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_ACTOR_CAMERA(br_datafile* df);
int FopRead_ACTOR_CAMERA(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_ACTOR_BOUNDS(br_datafile* df);
int FopRead_ACTOR_BOUNDS(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_ACTOR_CLIP_PLANE(br_datafile* df);
int FopRead_ACTOR_CLIP_PLANE(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_ACTOR_ADD_CHILD(br_datafile* df);
int FopRead_ACTOR_ADD_CHILD(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_TRANSFORM(br_datafile* df, br_transform* t);
int FopRead_TRANSFORM(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_BOUNDS(br_datafile* df, br_bounds* bp);
int FopRead_BOUNDS(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_PLANE(br_datafile* df, br_vector4* pp);
int FopRead_PLANE(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_LIGHT(br_datafile* df, br_light* lp);
int FopRead_LIGHT(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
int FopWrite_CAMERA(br_datafile* df, br_camera* cp);
int FopRead_CAMERA(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_32 count);
br_uint_32 BrModelLoadMany(char* filename, br_model** models, br_uint_16 num);
int PtrCompare(void* a, void* b);
br_uint_32 WriteModel(br_model* mp, br_datafile* df);
br_uint_32 BrModelSaveMany(char* filename, br_model** models, br_uint_16 num);
br_uint_32 BrActorLoadMany(char* filename, br_actor** actors, br_uint_16 num);
int WriteActor(br_actor* a, br_datafile* df);
br_uint_32 BrActorSaveMany(char* filename, br_actor** actors, br_uint_16 num);
br_uint_32 BrMaterialLoadMany(char* filename, br_material** materials, br_uint_16 num);
br_uint_32 WriteMaterial(br_material* mp, br_datafile* df);
br_uint_32 BrMaterialSaveMany(char* filename, br_material** materials, br_uint_16 num);
br_model* BrModelLoad(char* filename);
br_uint_32 BrModelSave(char* filename, br_model* ptr);
br_material* BrMaterialLoad(char* filename);
br_uint_32 BrMaterialSave(char* filename, br_material* ptr);
br_actor* BrActorLoad(char* filename);
br_uint_32 BrActorSave(char* filename, br_actor* ptr);
br_error BrModelFileCount(char* filename, br_uint_16* num);
br_error BrActorFileCount(char* filename, br_uint_16* num);
br_error BrMaterialFileCount(char* filename, br_uint_16* num);
#endif