vgl 1.0.0
Virtual Globe Library: API reference
Loading...
Searching...
No Matches
vgl_frame_begin_info Struct Reference

#include <vgl/render.h>

Public Attributes

uint32_t struct_size
 
uint32_t draw_item_size
 
uint32_t draw_layer_size
 
uint32_t index_list_data_size
 
uint32_t mesh_data_size
 
uint32_t texture_data_size
 
uint64_t upload_budget
 
const vgl_dmat4 * view_matrix
 

Detailed Description

Parameters of a frame. Zero-initialize, set struct_size, then fill in.

Member Data Documentation

◆ struct_size

uint32_t vgl_frame_begin_info::struct_size

◆ draw_item_size

uint32_t vgl_frame_begin_info::draw_item_size

The sizes of the frame's structures in the consumer's header: the frame's lists are written at these strides, so that a consumer built against a later minor version, whose structures have grown, reads them with its own layout, with zeros in the fields this version does not have (docs/render-interface.md, section 5). 0 selects the size in this header, which is also the smallest accepted. sizeof(vgl_draw_item)

◆ draw_layer_size

uint32_t vgl_frame_begin_info::draw_layer_size

sizeof(vgl_draw_layer)

◆ index_list_data_size

uint32_t vgl_frame_begin_info::index_list_data_size

sizeof(vgl_index_list_data)

◆ mesh_data_size

uint32_t vgl_frame_begin_info::mesh_data_size

sizeof(vgl_mesh_data)

◆ texture_data_size

uint32_t vgl_frame_begin_info::texture_data_size

sizeof(vgl_texture_data)

◆ upload_budget

uint64_t vgl_frame_begin_info::upload_budget

Bytes of resources the consumer may create in this frame. 0 selects VGL_UPLOAD_BUDGET_DEFAULT. At least one resource is always offered.

◆ view_matrix

const vgl_dmat4* vgl_frame_begin_info::view_matrix

Optional. The camera to compose model-view matrices for, when it differs from the view of the last update. Null uses the view set with vgl_context_view_set.


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