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

#include <vgl/context.h>

Public Attributes

uint32_t struct_size
 
uint32_t reserved
 
vgl_dmat4 view_matrix
 
vgl_dmat4 projection_matrix
 
uint32_t viewport_width
 
uint32_t viewport_height
 
double max_screen_space_error
 

Detailed Description

A view of the globe, for tile selection (design document, section 7.3). Matrices are column-major and multiply column vectors (vgl_dmat4). Hosts with row-major matrices that multiply row vectors, as is common with Direct3D, pass theirs unchanged: the two differences cancel out (docs/c-api.md, section 4.2). Any handedness and any depth mapping work: OpenGL or Direct3D clip space, reversed or infinite projections.

Member Data Documentation

◆ struct_size

uint32_t vgl_view::struct_size

◆ reserved

uint32_t vgl_view::reserved

◆ view_matrix

vgl_dmat4 vgl_view::view_matrix

From ECEF to camera space. Must be invertible.

◆ projection_matrix

vgl_dmat4 vgl_view::projection_matrix

From camera space to clip space: perspective or orthographic.

◆ viewport_width

uint32_t vgl_view::viewport_width

Size of the render target in pixels. Both must be at least 1.

◆ viewport_height

uint32_t vgl_view::viewport_height

◆ max_screen_space_error

double vgl_view::max_screen_space_error

Largest screen-space error of a selected tile, in pixels. 0 selects 2.


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