X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fmeshgen.h;h=1db98f95a1a31d9ce69e8b5a64e38b5cd81493c5;hb=HEAD;hp=bcd09ae3336373cb64a409b590dd2cb5c31c7558;hpb=713e854b6daf2ec0de8538be1e1eb385a213f36c;p=demo diff --git a/src/meshgen.h b/src/meshgen.h index bcd09ae..1db98f9 100644 --- a/src/meshgen.h +++ b/src/meshgen.h @@ -7,5 +7,7 @@ class Mesh; /* generates geodesic sphere: if hemi is true we only gen the hemisphere */ void gen_geosphere(Mesh *mesh, float rad, int subdiv, bool hemi = false); +void gen_heightfield(Mesh *mesh, float xsz, float ysz, float height, int usub, + int vsub, float (*calc_height)(float u, float v, void *ptr), void *ptr); #endif // MESHGEN_H_