X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fmeshgen.h;h=81880f68715e6f85e5d92c48ad8d8273050c0c23;hb=243eb502c5dc70e586a9e81815234069bf623480;hp=bcd09ae3336373cb64a409b590dd2cb5c31c7558;hpb=713e854b6daf2ec0de8538be1e1eb385a213f36c;p=demo diff --git a/src/meshgen.h b/src/meshgen.h index bcd09ae..81880f6 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_