|
LibGame
v0.4.0
The LG Game Engine - Copyright (C) 2024-2025 ETMSoftware
|
9 #define HEIGHTMAP_MAX_W 1024
10 #define HEIGHTMAP_MAX_H 1024
12 #define HEIGHTMAP_MIN_W 8
13 #define HEIGHTMAP_MIN_H 8
15 #define TERRAIN_BBOX_COLOR "cyan"
29 #define NORTH_BORDER 1
30 #define SOUTH_BORDER 2
LG_Mesh * lg_terrain_to_mesh(LG_Terrain *terrain)
Definition: lg_terrain.c:449
size_t lg_sizeof_horiz_grid0()
Definition: lg_terrain.c:736
size_t lg_sizeof_horiz_grid0_indices()
Definition: lg_terrain.c:744
Definition: lg_vertex.h:44
void lg_terrain_free(LG_Terrain *terrain)
Definition: lg_terrain.c:300
LG_Terrain * lg_terrain_new_from_heightmap(float *heightmap, uint16_t width, uint16_t height, float vert_scaling_k, LG_Texture *tex)
Definition: lg_terrain.c:120
float * lg_heightmap_generate(uint16_t width, uint16_t height, int noise_type, int seed, float frequency)
Definition: lg_terrain.c:335
Definition: lg_vertex.h:14
void lg_heightmaps_add(float *heightmap1, float *heightmap2, uint16_t w, uint16_t h, float k)
Definition: lg_terrain.c:380
const Vertex * lg_horiz_grid0()
Definition: lg_terrain.c:711
void lg_heightmap_flatten_border(float *heightmap, uint16_t w, uint16_t h, uint16_t k, int border)
Definition: lg_terrain.c:405
Definition: lg_vertex.h:91
Definition: lg_textures.h:42
Vertex_rgba * lg_horiz_grid(int grid_width, int *n_vertices, float scaling, LG_Color_u c)
Definition: lg_terrain.c:605
const unsigned short * lg_horiz_grid0_indices()
Definition: lg_terrain.c:728
Definition: lg_terrain.h:35
LG_Terrain * lg_terrain_new(uint16_t width, uint16_t height, float vert_scaling_k, int noise_type, int seed, float frequency, LG_Texture *tex)
Definition: lg_terrain.c:91
Definition: lg_vertex.h:60