no clue :) just to push it
[demo] / src / meshgen.h
1 #ifndef MESHGEN_H_
2 #define MESHGEN_H_
3
4 #include <gmath/gmath.h>
5
6 class Mesh;
7
8 /* generates geodesic sphere: if hemi is true we only gen the hemisphere */
9 void gen_geosphere(Mesh *mesh, float rad, int subdiv, bool hemi = false);
10 void gen_heightfield(Mesh *mesh, float xsz, float ysz, float height, int usub,
11                      int vsub, float (*calc_height)(float u, float v, void *ptr), void *ptr);
12
13 #endif  // MESHGEN_H_