tavli

view src/meshgen.h @ 1:3fcd7b4d631f

board mesh generation
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 22 Jun 2015 05:05:37 +0300
parents
children a8e26f163f99
line source
1 #ifndef MESHGEN_H_
2 #define MESHGEN_H_
4 class Mesh;
6 void gen_sphere(Mesh *mesh, float rad, int usub, int vsub, float urange = 1.0, float vrange = 1.0);
7 void gen_cylinder(Mesh *mesh, float rad, float height, int usub, int vsub, int capsub = 0, float urange = 1.0, float vrange = 1.0);
8 void gen_cone(Mesh *mesh, float rad, float height, int usub, int vsub, int capsub = 0, float urange = 1.0, float vrange = 1.0);
9 void gen_plane(Mesh *mesh, float width, float height, int usub = 1, int vsub = 1);
10 void gen_heightmap(Mesh *mesh, float width, float height, int usub, int vsub, float (*hf)(float, float, void*), void *hfdata = 0);
11 void gen_box(Mesh *mesh, float xsz, float ysz, float zsz);
13 #endif // MESHGEN_H_