goat3dgfx

diff src/meshgen.h @ 0:1873dfd13f2d

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 14 Nov 2013 05:27:09 +0200
parents
children 7d6b667821cf
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/meshgen.h	Thu Nov 14 05:27:09 2013 +0200
     1.3 @@ -0,0 +1,11 @@
     1.4 +#ifndef MESHGEN_H_
     1.5 +#define MESHGEN_H_
     1.6 +
     1.7 +class Mesh;
     1.8 +
     1.9 +void gen_sphere(Mesh *mesh, float rad, int usub, int vsub, float urange = 1.0, float vrange = 1.0);
    1.10 +void gen_cylinder(Mesh *mesh, float rad, float height, int usub, int vsub, int capsub = 0, float urange = 1.0, float vrange = 1.0);
    1.11 +void gen_cone(Mesh *mesh, float rad, float height, int usub, int vsub, int capsub = 0, float urange = 1.0, float vrange = 1.0);
    1.12 +void gen_plane(Mesh *mesh, float width, float height, int usub = 1, int vsub = 1);
    1.13 +
    1.14 +#endif	// MESHGEN_H_