vgl 1.0.0
Virtual Globe Library: API reference
Loading...
Searching...
No Matches
vgl_context_create_info Struct 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
 

Detailed Description

Creation parameters of a context. Zero-initialize, set struct_size, then fill in.

Member Data Documentation

◆ struct_size

uint32_t vgl_context_create_info::struct_size

◆ log_level

vgl_log_level vgl_context_create_info::log_level

Minimum level of messages passed to log. VGL_LOG_LEVEL_DEFAULT is warnings.

◆ cpu_budget

uint64_t vgl_context_create_info::cpu_budget

Memory for decoded tiles and pack metadata, in bytes. 0 selects 256 MiB.

◆ allocator

const vgl_allocator_interface* vgl_context_create_info::allocator

Optional. Every allocation of the context goes through it; null uses the C heap.

◆ io

const vgl_io_interface* vgl_context_create_info::io

Optional. How the context reads packs. Without it, packs cannot be created.

◆ tasks

const vgl_task_interface* vgl_context_create_info::tasks

Optional. Where decoding runs. Without it, vgl_context_update decodes.

◆ ellipsoid

const vgl_ellipsoid* vgl_context_create_info::ellipsoid

Optional. Reference ellipsoid; null selects WGS84. Packs must use the same.

◆ log

vgl_log_fn vgl_context_create_info::log

Optional. Receives log messages; without it, the context is silent.

◆ log_user_data

void* vgl_context_create_info::log_user_data

◆ gpu_budget

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).


The documentation for this struct was generated from the following file: