ld33_umonster

diff src/meshgen.h @ 10:1b30bd381667

sweep curve mesh gen and dragon horns
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 27 Aug 2015 05:25:04 +0300
parents 7b1fa527b51b
children
line diff
     1.1 --- a/src/meshgen.h	Thu Aug 27 01:58:26 2015 +0300
     1.2 +++ b/src/meshgen.h	Thu Aug 27 05:25:04 2015 +0300
     1.3 @@ -16,4 +16,7 @@
     1.4  void gen_revol(Mesh *mesh, int usub, int vsub, Vector2 (*rfunc)(float, float, void*), void *cls = 0);
     1.5  void gen_revol(Mesh *mesh, int usub, int vsub, Vector2 (*rfunc)(float, float, void*), Vector2 (*nfunc)(float, float, void*), void *cls);
     1.6  
     1.7 +/* callback args: (float u, float v, void *cls) -> Vector2 XZ offset u,v in [0, 1] */
     1.8 +void gen_sweep(Mesh *mesh, float height, int usub, int vsub, Vector2 (*sfunc)(float, float, void*), void *cls = 0);
     1.9 +
    1.10  #endif	// MESHGEN_H_