11 enum TERRAIN_MODE
{ FLAT
, NORMAL
, NORMAL_DEBUG
};
16 float max_height
, min_height
;
24 enum TERRAIN_MODE drawmode
;
33 struct terrain
* terrain_create(int size
);
35 void terrain_destroy(struct terrain
* t
);
37 void terrain_bake(struct terrain
*t
);
39 void terrain_draw(struct terrain
*t
);
41 void terrain_smooth(struct terrain
*t
, float k
);
43 void terrain_clear(struct terrain
*t
);
45 void terrain_fractal(struct terrain
*t
, float magnitude
);
47 void terrain_plasma(struct terrain
*t
);