metasurf

view src/metasurf.h @ 1:dc0e882ec3f9

renamed example source file test.c -> metaballs.c
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 25 Oct 2011 07:57:07 +0300
parents
children 9ab057fba0c5
line source
1 #ifndef METASURF_H_
2 #define METASURF_H_
4 struct metasurface;
6 typedef float (*msurf_eval_func_t)(float, float, float);
7 typedef void (*msurf_vertex_func_t)(float, float, float);
8 typedef void (*msurf_normal_func_t)(float, float, float);
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
14 struct metasurface *msurf_create(void);
15 void msurf_free(struct metasurface *ms);
17 void msurf_eval_func(struct metasurface *ms, msurf_eval_func_t func);
18 void msurf_vertex_func(struct metasurface *ms, msurf_vertex_func_t func);
19 void msurf_normal_func(struct metasurface *ms, msurf_normal_func_t func);
21 void msurf_bounds(struct metasurface *ms, float xmin, float ymin, float zmin, float xmax, float ymax, float zmax);
22 void msurf_resolution(struct metasurface *ms, int xres, int yres, int zres);
23 void msurf_threshold(struct metasurface *ms, float thres);
25 void msurf_polygonize(struct metasurface *ms);
27 #ifdef __cplusplus
28 }
29 #endif
31 #endif /* METASURF_H_ */