File: v3dfio.h

package info (click to toggle)
searchandrescue 0.8.2-10
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,656 kB
  • ctags: 6,111
  • sloc: ansic: 89,072; cpp: 7,691; sh: 90; makefile: 80
file content (50 lines) | stat: -rw-r--r-- 994 bytes parent folder | download | duplicates (7)
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
50
/*
			   V3D Format File IO
 */

#ifndef V3DFIO_H
#define V3DFIO_H

#include <stdio.h>
#include <sys/types.h>

#include "v3dmp.h"
#include "v3dmodel.h"
#include "v3dtex.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */


#ifndef V3D_COMMENT_CHAR
# define V3D_COMMENT_CHAR	'#'
#endif

#ifndef V3D_SAVE_FILE_OPTIMIZATION_MAX
# define V3D_SAVE_FILE_OPTIMIZATION_MAX		2
#endif

extern int V3DLoadModel(
	const char **buf, FILE *fp,
	void ***mh_item, int *total_mh_items,
	v3d_model_struct ***model, int *total_models,
	void *client_data,
	int (*progress_cb)(void *, int, int)
);
extern int V3DSaveModel(
	char ***buf, FILE *fp,
	void **mh_item, int total_mh_items,
	v3d_model_struct **model, int total_models,
	int optimization_level,		/* 0 to V3D_SAVE_FILE_OPTIMIZATION_MAX. */
	int strip_extras,               /* 1 for true, strips extranous data. */
	void *client_data,
	int (*progress_cb)(void *, int, int)
);


#ifdef __cplusplus
}  
#endif /* __cplusplus */

#endif	/* V3DFIO_H */