goat3dgfx

view src/meshgen.h @ 10:b4c9a24c946e

wrote an awesome configure script added "main" 3d engine source file with global init/cleanup
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 24 Nov 2013 13:30:44 +0200
parents
children 7d6b667821cf
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);
11 #endif // MESHGEN_H_