Monado OpenXR Runtime
|
C++ program part for the SDL test. More...
Functions | |
void | sdl_create_window (struct sdl_program *sp) |
struct sdl_program * | sdl_program_plus_create () |
Create the SDL program. More... | |
void | sdl_program_plus_render (struct sdl_program_plus *spp_ptr) |
Render a frame, called by the compositor when layers have been committed. More... | |
void | sdl_program_plus_destroy (struct sdl_program_plus *spp) |
Destroy the SDL program. More... | |
C++ program part for the SDL test.
struct sdl_program * sdl_program_plus_create | ( | void | ) |
Create the SDL program.
References sdl_program::current_mutex, sdl_program::log_level, os_mutex::os_mutex_init(), sdl_program::pose, sdl_program::spp, U_LOGGING_INFO, and xrt_pose::XRT_POSE_IDENTITY.
void sdl_program_plus_destroy | ( | struct sdl_program_plus * | spp | ) |
Destroy the SDL program.
References sdl_program::current_mutex, os_mutex::os_mutex_destroy(), and sdl_program::spp.
void sdl_program_plus_render | ( | struct sdl_program_plus * | spp_ptr | ) |
Render a frame, called by the compositor when layers have been committed.
References sdl_compositor::base, sdl_program::c, comp_layer::data, comp_base::layer_accum, comp_layer_accum::layer_count, comp_layer_accum::layers, sdl_make_current(), sdl_program::spp, and xrt_layer_data::type.