35#ifndef TCOD_HEIGHTMAP_H_
36#define TCOD_HEIGHTMAP_H_
47 float* __restrict values;
53TCODLIB_API
float TCOD_heightmap_get_value(
const TCOD_heightmap_t* hm,
int x,
int y);
54TCODLIB_API
float TCOD_heightmap_get_interpolated_value(
const TCOD_heightmap_t* hm,
float x,
float y);
55TCODLIB_API
void TCOD_heightmap_set_value(
TCOD_heightmap_t* hm,
int x,
int y,
float value);
56TCODLIB_API
float TCOD_heightmap_get_slope(
const TCOD_heightmap_t* hm,
int x,
int y);
57TCODLIB_API
void TCOD_heightmap_get_normal(
const TCOD_heightmap_t* hm,
float x,
float y,
float n[3],
float waterLevel);
58TCODLIB_API
int TCOD_heightmap_count_cells(
const TCOD_heightmap_t* hm,
float min,
float max);
59TCODLIB_API
bool TCOD_heightmap_has_land_on_border(
const TCOD_heightmap_t* hm,
float waterLevel);
60TCODLIB_API
void TCOD_heightmap_get_minmax(
const TCOD_heightmap_t* hm,
float* min,
float* max);
65TCODLIB_API
void TCOD_heightmap_clamp(
TCOD_heightmap_t* hm,
float min,
float max);
66TCODLIB_API
void TCOD_heightmap_normalize(
TCOD_heightmap_t* hm,
float min,
float max);
68TCODLIB_API
void TCOD_heightmap_lerp_hm(
71TCODLIB_API
void TCOD_heightmap_multiply_hm(
74TCODLIB_API
void TCOD_heightmap_add_hill(
TCOD_heightmap_t* hm,
float hx,
float hy,
float h_radius,
float h_height);
75TCODLIB_API
void TCOD_heightmap_dig_hill(
TCOD_heightmap_t* hm,
float hx,
float hy,
float h_radius,
float h_height);
76TCODLIB_API
void TCOD_heightmap_dig_bezier(
77 TCOD_heightmap_t* hm,
int px[4],
int py[4],
float startRadius,
float startDepth,
float endRadius,
float endDepth);
78TCODLIB_API
void TCOD_heightmap_rain_erosion(
82TCODLIB_API
void TCOD_heightmap_kernel_transform(
90TCODLIB_API
void TCOD_heightmap_add_voronoi(
93TCODLIB_API
void TCOD_heightmap_add_fbm(
103TCODLIB_API
void TCOD_heightmap_scale_fbm(
113TCOD_DEPRECATED(
"This function does nothing and will be removed.")
Random number generator types.
Texture noise generator module.
Miscellaneous tools needed across platforms.
Definition heightmap.h:45
Pseudorandom number generator toolkit, all attributes are private.
Definition mersenne_types.h:87