tavli
diff src/meshgen.h @ 11:a8e26f163f99
poulia
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 27 Jun 2015 08:01:51 +0300 |
parents | 3fcd7b4d631f |
children | ae1c60726c41 |
line diff
1.1 --- a/src/meshgen.h Fri Jun 26 05:41:18 2015 +0300 1.2 +++ b/src/meshgen.h Sat Jun 27 08:01:51 2015 +0300 1.3 @@ -1,6 +1,8 @@ 1.4 #ifndef MESHGEN_H_ 1.5 #define MESHGEN_H_ 1.6 1.7 +#include "vmath/vmath.h" 1.8 + 1.9 class Mesh; 1.10 1.11 void gen_sphere(Mesh *mesh, float rad, int usub, int vsub, float urange = 1.0, float vrange = 1.0); 1.12 @@ -9,5 +11,6 @@ 1.13 void gen_plane(Mesh *mesh, float width, float height, int usub = 1, int vsub = 1); 1.14 void gen_heightmap(Mesh *mesh, float width, float height, int usub, int vsub, float (*hf)(float, float, void*), void *hfdata = 0); 1.15 void gen_box(Mesh *mesh, float xsz, float ysz, float zsz); 1.16 +void gen_revol(Mesh *mesh, int usub, int vsub, Vector2 (*rfunc)(float, float, void*), void *cls); 1.17 1.18 #endif // MESHGEN_H_