X-Git-Url: http://git.mutantstargoat.com?p=demo;a=blobdiff_plain;f=src%2Fmeshgen.h;h=81880f68715e6f85e5d92c48ad8d8273050c0c23;hp=bcd09ae3336373cb64a409b590dd2cb5c31c7558;hb=197f20b5d4db937029f7b585be23ee7fe5da66dc;hpb=dd0aabd3aed66f9c5d25a9e8bcbbb07c7f886085 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_