nuclear@1: #ifndef MESHGEN_H_ nuclear@1: #define MESHGEN_H_ nuclear@1: nuclear@11: #include "vmath/vmath.h" nuclear@11: nuclear@1: class Mesh; nuclear@1: nuclear@1: void gen_sphere(Mesh *mesh, float rad, int usub, int vsub, float urange = 1.0, float vrange = 1.0); nuclear@1: 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@1: 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@1: void gen_plane(Mesh *mesh, float width, float height, int usub = 1, int vsub = 1); nuclear@1: void gen_heightmap(Mesh *mesh, float width, float height, int usub, int vsub, float (*hf)(float, float, void*), void *hfdata = 0); nuclear@1: void gen_box(Mesh *mesh, float xsz, float ysz, float zsz); nuclear@11: void gen_revol(Mesh *mesh, int usub, int vsub, Vector2 (*rfunc)(float, float, void*), void *cls); nuclear@1: nuclear@1: #endif // MESHGEN_H_