|
vgl 1.0.0
Virtual Globe Library: API 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 |
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.
| uint32_t vgl_view::struct_size |
| uint32_t vgl_view::reserved |
| vgl_dmat4 vgl_view::view_matrix |
From ECEF to camera space. Must be invertible.
| vgl_dmat4 vgl_view::projection_matrix |
From camera space to clip space: perspective or orthographic.
| uint32_t vgl_view::viewport_width |
Size of the render target in pixels. Both must be at least 1.
| uint32_t vgl_view::viewport_height |
| double vgl_view::max_screen_space_error |
Largest screen-space error of a selected tile, in pixels. 0 selects 2.