ld33_umonster

annotate src/meshgen.h @ 0:4a6683050e29

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 22 Aug 2015 07:15:00 +0300
parents
children bed0e207acb6
rev   line source
nuclear@0 1 #ifndef MESHGEN_H_
nuclear@0 2 #define MESHGEN_H_
nuclear@0 3
nuclear@0 4 #include "vmath/vmath.h"
nuclear@0 5
nuclear@0 6 class Mesh;
nuclear@0 7
nuclear@0 8 void gen_sphere(Mesh *mesh, float rad, int usub, int vsub, float urange = 1.0, float vrange = 1.0);
nuclear@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);
nuclear@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);
nuclear@0 11 void gen_plane(Mesh *mesh, float width, float height, int usub = 1, int vsub = 1);
nuclear@0 12 void gen_heightmap(Mesh *mesh, float width, float height, int usub, int vsub, float (*hf)(float, float, void*), void *hfdata = 0);
nuclear@0 13 void gen_box(Mesh *mesh, float xsz, float ysz, float zsz);
nuclear@0 14
nuclear@0 15 void gen_revol(Mesh *mesh, int usub, int vsub, Vector2 (*rfunc)(float, float, void*), void *cls = 0);
nuclear@0 16 void gen_revol(Mesh *mesh, int usub, int vsub, Vector2 (*rfunc)(float, float, void*), Vector2 (*nfunc)(float, float, void*), void *cls);
nuclear@0 17
nuclear@0 18 #endif // MESHGEN_H_