|
Space Sim
|
Go to the source code of this file.
Data Structures | |
| struct | CenterKey |
| struct | AuthorityEntry |
| struct | ChunkKey |
| struct | ChunkHash |
Functions | |
| void | load_chunks (vec3 planet_origin, float planet_radius) |
| Checks all chunks based on new Camera position, building a job list and then executing them based on ChunkScore. | |
| void | init_chunk_data () |
| Initializes and frees old ChunkData and hash tables. | |
| bool | free_parent (int lod, int i) |
| Frees the parent of given LOD. | |
| bool | free_child (int lod, int i) |
| Frees the child of given LOD. | |
| bool | free_current_parent (int lod, int i) |
| Frees the given LOD (as a parent). | |
| float | calc_density (vec3 p) |
| Copies the exact density function from the GPU to the CPU. | |
| void | mesh_atmosphere_sphere () |
| Creates an atmosphere sphere for rendering. | |
| void | create_new_planet_mesh (int lod, ivec3 chunk_center, int chunk_id, bool is_parent) |
| Creates a mesh for a certain chunk. | |
| float | fbm (vec3 p) |
| int | get_current_lod (ivec3 center) |
| void | set_current_lod (ivec3 center, int lod) |
| ChunkHash * | find_chunk_hash (ivec3 center, int lod) |
| void | add_chunk_hash (ivec3 center, int lod, int id) |
| void | replace_chunk_hash (ivec3 center, int lod, int id) |
| void | delete_chunk_hash (ivec3 center, int lod) |
Variables | |
| AuthorityEntry * | authority_map |
| ChunkHash * | hash_table |
| struct AuthorityEntry |
| struct ChunkHash |
| float fbm | ( | vec3 | p | ) |
Definition at line 139 of file density.comp.
References fbm(), fbm_noise(), noise(), NUM_OCTAVES, vec3_add(), and vec3_scale().
Referenced by density_fn(), fbm(), fbm(), and precompute_fbm_texture().
|
inline |
Definition at line 51 of file mesh.h.
References authority_map, get_current_lod(), AuthorityEntry::lod, ivec3::x, ivec3::y, and ivec3::z.
Referenced by get_current_lod(), and load_chunks().
|
inline |
Definition at line 62 of file mesh.h.
References authority_map, AuthorityEntry::key, AuthorityEntry::lod, lod, set_current_lod(), ivec3::x, ivec3::y, and ivec3::z.
Referenced by load_chunks(), and set_current_lod().
Definition at line 79 of file mesh.h.
References find_chunk_hash(), hash_table, lod, ivec3::x, ivec3::y, and ivec3::z.
Referenced by find_chunk_hash(), find_current_lod(), and load_chunks().
|
inline |
Definition at line 88 of file mesh.h.
References add_chunk_hash(), hash_table, ChunkHash::id, ChunkHash::key, lod, ivec3::x, ivec3::y, and ivec3::z.
Referenced by add_chunk_hash().
|
inline |
Definition at line 101 of file mesh.h.
References hash_table, ChunkHash::id, ChunkHash::key, lod, replace_chunk_hash(), ivec3::x, ivec3::y, and ivec3::z.
Referenced by load_chunks(), and replace_chunk_hash().
|
inline |
Definition at line 126 of file mesh.h.
References delete_chunk_hash(), hash_table, lod, ivec3::x, ivec3::y, and ivec3::z.
Referenced by delete_chunk_hash(), free_child(), free_current_parent(), and free_parent().
|
extern |
Definition at line 617 of file mesh.c.
Referenced by get_current_lod(), init_chunk_data(), and set_current_lod().
|
extern |
Definition at line 618 of file mesh.c.
Referenced by add_chunk_hash(), delete_chunk_hash(), find_chunk_hash(), init_chunk_data(), and replace_chunk_hash().