20typedef enum { KORE_TRACKING_ORIGIN_STAND, KORE_TRACKING_ORIGIN_SIT } kore_tracking_origin;
22typedef enum { KORE_TRACKED_DEVICE_HMD, KORE_TRACKED_DEVICE_CONTROLLER, KORE_TRACKED_DEVICE_VIVE_TRACKER } kore_tracked_device;
24typedef struct kore_vr_pose {
25 kore_quaternion orientation;
29 kore_matrix4x4 projection;
38typedef struct kore_vr_pose_state {
40 kore_float3 angularVelocity;
41 kore_float3 linearVelocity;
42 kore_float3 angularAcceleration;
43 kore_float3 linearAcceleration;
45 kore_tracked_device_t trackedDevice;
56typedef struct kore_vr_sensor_state {
57 kore_vr_pose_state pose;
58} kore_vr_sensor_state;
60void *kore_vr_init(
void *hinst,
const char *title,
const char *windowClassName);
62void kore_vr_begin_render(
int eye);
63void kore_vr_end_render(
int eye);
64kore_vr_sensor_state kore_vr_get_sensor_state(
int eye);
65kore_vr_pose_state kore_vr_get_controller(
int index);
66void kore_vr_warp_swap();
67void kore_vr_update_tracking_origin(kore_tracking_origin origin);
68void kore_vr_reset_hmd_pose();
69void kore_vr_ovr_shutdown();
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
Provides basic matrix types and a few functions which create transformation-matrices....
Provides a basic quaternion type.
Provides basic vector types.