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

#include <vgl/gl.h>

Public Attributes

uint32_t struct_size
 
vgl_depth_convention depth_convention
 
vgl_gl_get_proc_address_fn get_proc_address
 
void * get_proc_address_user_data
 

Detailed Description

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

Member Data Documentation

◆ struct_size

uint32_t vgl_gl_backend_create_info::struct_size

◆ depth_convention

vgl_depth_convention vgl_gl_backend_create_info::depth_convention

How depth is written and compared (vgl/render.h). The default is logarithmic. The reversed-Z convention needs clip control: OpenGL 4.5, GL_ARB_clip_control or, on OpenGL ES, GL_EXT_clip_control.

◆ get_proc_address

vgl_gl_get_proc_address_fn vgl_gl_backend_create_info::get_proc_address

Required. Loads the OpenGL functions.

◆ get_proc_address_user_data

void* vgl_gl_backend_create_info::get_proc_address_user_data

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