annotate src/metasurf.h @ 0:7aa4627e492b
first commit
author |
John Tsiombikas <nuclear@member.fsf.org> |
date |
Tue, 25 Oct 2011 07:34:31 +0300 |
parents |
|
children |
9ab057fba0c5 |
rev |
line source |
nuclear@0
|
1 #ifndef METASURF_H_
|
nuclear@0
|
2 #define METASURF_H_
|
nuclear@0
|
3
|
nuclear@0
|
4 struct metasurface;
|
nuclear@0
|
5
|
nuclear@0
|
6 typedef float (*msurf_eval_func_t)(float, float, float);
|
nuclear@0
|
7 typedef void (*msurf_vertex_func_t)(float, float, float);
|
nuclear@0
|
8 typedef void (*msurf_normal_func_t)(float, float, float);
|
nuclear@0
|
9
|
nuclear@0
|
10 #ifdef __cplusplus
|
nuclear@0
|
11 extern "C" {
|
nuclear@0
|
12 #endif
|
nuclear@0
|
13
|
nuclear@0
|
14 struct metasurface *msurf_create(void);
|
nuclear@0
|
15 void msurf_free(struct metasurface *ms);
|
nuclear@0
|
16
|
nuclear@0
|
17 void msurf_eval_func(struct metasurface *ms, msurf_eval_func_t func);
|
nuclear@0
|
18 void msurf_vertex_func(struct metasurface *ms, msurf_vertex_func_t func);
|
nuclear@0
|
19 void msurf_normal_func(struct metasurface *ms, msurf_normal_func_t func);
|
nuclear@0
|
20
|
nuclear@0
|
21 void msurf_bounds(struct metasurface *ms, float xmin, float ymin, float zmin, float xmax, float ymax, float zmax);
|
nuclear@0
|
22 void msurf_resolution(struct metasurface *ms, int xres, int yres, int zres);
|
nuclear@0
|
23 void msurf_threshold(struct metasurface *ms, float thres);
|
nuclear@0
|
24
|
nuclear@0
|
25 void msurf_polygonize(struct metasurface *ms);
|
nuclear@0
|
26
|
nuclear@0
|
27 #ifdef __cplusplus
|
nuclear@0
|
28 }
|
nuclear@0
|
29 #endif
|
nuclear@0
|
30
|
nuclear@0
|
31 #endif /* METASURF_H_ */
|