metasurf
diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/metasurf.h Tue Oct 25 07:34:31 2011 +0300 1.3 @@ -0,0 +1,31 @@ 1.4 +#ifndef METASURF_H_ 1.5 +#define METASURF_H_ 1.6 + 1.7 +struct metasurface; 1.8 + 1.9 +typedef float (*msurf_eval_func_t)(float, float, float); 1.10 +typedef void (*msurf_vertex_func_t)(float, float, float); 1.11 +typedef void (*msurf_normal_func_t)(float, float, float); 1.12 + 1.13 +#ifdef __cplusplus 1.14 +extern "C" { 1.15 +#endif 1.16 + 1.17 +struct metasurface *msurf_create(void); 1.18 +void msurf_free(struct metasurface *ms); 1.19 + 1.20 +void msurf_eval_func(struct metasurface *ms, msurf_eval_func_t func); 1.21 +void msurf_vertex_func(struct metasurface *ms, msurf_vertex_func_t func); 1.22 +void msurf_normal_func(struct metasurface *ms, msurf_normal_func_t func); 1.23 + 1.24 +void msurf_bounds(struct metasurface *ms, float xmin, float ymin, float zmin, float xmax, float ymax, float zmax); 1.25 +void msurf_resolution(struct metasurface *ms, int xres, int yres, int zres); 1.26 +void msurf_threshold(struct metasurface *ms, float thres); 1.27 + 1.28 +void msurf_polygonize(struct metasurface *ms); 1.29 + 1.30 +#ifdef __cplusplus 1.31 +} 1.32 +#endif 1.33 + 1.34 +#endif /* METASURF_H_ */