goat3dgfx
view src/meshgen.h @ 29:9d581abd0bfb
merged
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 02 Mar 2014 02:18:15 +0200 |
parents | 1873dfd13f2d |
children |
line source
1 #ifndef MESHGEN_H_
2 #define MESHGEN_H_
4 namespace goatgfx {
6 class Mesh;
8 void gen_sphere(Mesh *mesh, float rad, int usub, int vsub, float urange = 1.0, float vrange = 1.0);
9 void gen_cylinder(Mesh *mesh, float rad, float height, int usub, int vsub, int capsub = 0, float urange = 1.0, float vrange = 1.0);
10 void gen_cone(Mesh *mesh, float rad, float height, int usub, int vsub, int capsub = 0, float urange = 1.0, float vrange = 1.0);
11 void gen_plane(Mesh *mesh, float width, float height, int usub = 1, int vsub = 1);
13 } // namespace goatgfx
15 #endif // MESHGEN_H_