ld33_umonster

diff src/meshgen.h @ 1:bed0e207acb6

improved gen_box
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 22 Aug 2015 23:17:57 +0300
parents 4a6683050e29
children 7b1fa527b51b
line diff
     1.1 --- a/src/meshgen.h	Sat Aug 22 07:15:00 2015 +0300
     1.2 +++ b/src/meshgen.h	Sat Aug 22 23:17:57 2015 +0300
     1.3 @@ -10,7 +10,7 @@
     1.4  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.5  void gen_plane(Mesh *mesh, float width, float height, int usub = 1, int vsub = 1);
     1.6  void gen_heightmap(Mesh *mesh, float width, float height, int usub, int vsub, float (*hf)(float, float, void*), void *hfdata = 0);
     1.7 -void gen_box(Mesh *mesh, float xsz, float ysz, float zsz);
     1.8 +void gen_box(Mesh *mesh, float xsz, float ysz, float zsz, int usub = 1, int vsub = 1);
     1.9  
    1.10  void gen_revol(Mesh *mesh, int usub, int vsub, Vector2 (*rfunc)(float, float, void*), void *cls = 0);
    1.11  void gen_revol(Mesh *mesh, int usub, int vsub, Vector2 (*rfunc)(float, float, void*), Vector2 (*nfunc)(float, float, void*), void *cls);