Holds instance related functions.
More...
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include "util/u_var.h"
#include "util/u_time.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "xrt/xrt_instance.h"
#include "oxr_objects.h"
#include "oxr_logger.h"
#include "oxr_handle.h"
#include "oxr_extension_support.h"
|
int | oxr_sdl2_hack_create (void **out_hack) |
|
void | oxr_sdl2_hack_start (void *hack, struct xrt_instance *xinst) |
|
void | oxr_sdl2_hack_stop (void **hack_ptr) |
|
XrResult | oxr_instance_create (struct oxr_logger *log, const XrInstanceCreateInfo *createInfo, struct oxr_instance **out_instance) |
|
XrResult | oxr_instance_get_properties (struct oxr_logger *log, struct oxr_instance *inst, XrInstanceProperties *instanceProperties) |
|
XrResult | oxr_instance_convert_time_to_timespec (struct oxr_logger *log, struct oxr_instance *inst, XrTime time, struct timespec *timespecTime) |
|
XrResult | oxr_instance_convert_timespec_to_time (struct oxr_logger *log, struct oxr_instance *inst, const struct timespec *timespecTime, XrTime *time) |
|
Holds instance related functions.
- Author
- Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m
◆ ENABLE_EXT
#define ENABLE_EXT |
( |
|
mixed_case, |
|
|
|
all_caps |
|
) |
| |
Value:if (strcmp(createInfo->enabledExtensionNames[i], \
XR_##all_caps##_EXTENSION_NAME) == 0) { \
inst->extensions.mixed_case = true; \
continue; \
}
◆ NUM_XDEVS
◆ oxr_sdl2_hack_create()
int oxr_sdl2_hack_create |
( |
void ** |
out_hack | ) |
|
◆ oxr_sdl2_hack_start()
void oxr_sdl2_hack_start |
( |
void * |
hack, |
|
|
struct xrt_instance * |
xinst |
|
) |
| |
◆ oxr_sdl2_hack_stop()
void oxr_sdl2_hack_stop |
( |
void ** |
hack_ptr | ) |
|
References xrt_colour_rgb_f32::b, sdl2_program::base, gui_imgui::clear, sdl2_program::ctx, DEBUG_GET_ONCE_BOOL_OPTION(), xrt_colour_rgb_f32::g, gui_prober_update(), gui_scene_debug(), gui_scene_manager_destroy(), gui_scene_manager_init(), gui_scene_manager_render(), oxr_sdl2_hack_create(), oxr_sdl2_hack_start(), xrt_colour_rgb_f32::r, sdl2_program::sdl_initialized, gui_imgui::show_demo_window, gui_program::stopped, U_TYPED_CALLOC, u_var_add_root(), u_var_force_on(), u_var_remove_root(), and sdl2_program::win.