projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed terrain rendering - visualized normals
[demo]
/
src
/
meshgen.h
diff --git
a/src/meshgen.h
b/src/meshgen.h
index
bcd09ae
..
81880f6
100644
(file)
--- 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);
/* 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_
#endif // MESHGEN_H_