|
vgl 1.0.0
Virtual Globe Library: API reference
|
#include <vgl/context.h>
Public Attributes | |
| uint32_t | struct_size |
| vgl_log_level | log_level |
| uint64_t | cpu_budget |
| const vgl_allocator_interface * | allocator |
| const vgl_io_interface * | io |
| const vgl_task_interface * | tasks |
| const vgl_ellipsoid * | ellipsoid |
| vgl_log_fn | log |
| void * | log_user_data |
| uint64_t | gpu_budget |
Creation parameters of a context. Zero-initialize, set struct_size, then fill in.
| uint32_t vgl_context_create_info::struct_size |
| vgl_log_level vgl_context_create_info::log_level |
Minimum level of messages passed to log. VGL_LOG_LEVEL_DEFAULT is warnings.
| uint64_t vgl_context_create_info::cpu_budget |
Memory for decoded tiles and pack metadata, in bytes. 0 selects 256 MiB.
| const vgl_allocator_interface* vgl_context_create_info::allocator |
Optional. Every allocation of the context goes through it; null uses the C heap.
| const vgl_io_interface* vgl_context_create_info::io |
Optional. How the context reads packs. Without it, packs cannot be created.
| const vgl_task_interface* vgl_context_create_info::tasks |
Optional. Where decoding runs. Without it, vgl_context_update decodes.
| const vgl_ellipsoid* vgl_context_create_info::ellipsoid |
Optional. Reference ellipsoid; null selects WGS84. Packs must use the same.
| vgl_log_fn vgl_context_create_info::log |
Optional. Receives log messages; without it, the context is silent.
| void* vgl_context_create_info::log_user_data |
| uint64_t vgl_context_create_info::gpu_budget |
GPU memory for the resources of the render interface, in bytes. 0 selects 512 MiB (docs/render-interface.md, section 4.3).