Skip to content

Commit 3d0a536

Browse files
committed
Encapsulated enum constants better.
1 parent 3d2136c commit 3d0a536

15 files changed

+183
-175
lines changed

lib/openxr.dart

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ library openxr;
44

55
export 'src/abi.dart';
66
export 'src/api.dart';
7-
8-
export 'src/action.dart';
9-
export 'src/action_set.dart';
10-
export 'src/extension.dart';
11-
export 'src/handle.dart';
12-
export 'src/instance.dart';
13-
export 'src/layer.dart';
14-
export 'src/result.dart';
15-
export 'src/session.dart';
16-
export 'src/space.dart';
17-
export 'src/swapchain.dart';
18-
export 'src/system.dart';
197
export 'src/version.dart';
8+
9+
export 'src/action.dart' show Action;
10+
export 'src/action_set.dart' show ActionSet;
11+
export 'src/extension.dart' show Extension;
12+
export 'src/handle.dart' show Handle;
13+
export 'src/instance.dart' show Instance;
14+
export 'src/layer.dart' show Layer;
15+
export 'src/result.dart' show Result;
16+
export 'src/session.dart' show Session;
17+
export 'src/space.dart' show Space;
18+
export 'src/swapchain.dart' show Swapchain;
19+
export 'src/system.dart' show System;

lib/src/abi.dart

Lines changed: 153 additions & 149 deletions
Original file line numberDiff line numberDiff line change
@@ -1,152 +1,156 @@
11
/* This is free and unencumbered software released into the public domain. */
22

3-
// XrResult
4-
const XR_SUCCESS = 0;
5-
const XR_TIMEOUT_EXPIRED = 1;
6-
const XR_SESSION_LOSS_PENDING = 3;
7-
const XR_EVENT_UNAVAILABLE = 4;
8-
const XR_SPACE_BOUNDS_UNAVAILABLE = 7;
9-
const XR_SESSION_NOT_FOCUSED = 8;
10-
const XR_FRAME_DISCARDED = 9;
11-
const XR_ERROR_VALIDATION_FAILURE = -1;
12-
const XR_ERROR_RUNTIME_FAILURE = -2;
13-
const XR_ERROR_OUT_OF_MEMORY = -3;
14-
const XR_ERROR_API_VERSION_UNSUPPORTED = -4;
15-
const XR_ERROR_INITIALIZATION_FAILED = -6;
16-
const XR_ERROR_FUNCTION_UNSUPPORTED = -7;
17-
const XR_ERROR_FEATURE_UNSUPPORTED = -8;
18-
const XR_ERROR_EXTENSION_NOT_PRESENT = -9;
19-
const XR_ERROR_LIMIT_REACHED = -10;
20-
const XR_ERROR_SIZE_INSUFFICIENT = -11;
21-
const XR_ERROR_HANDLE_INVALID = -12;
22-
const XR_ERROR_INSTANCE_LOST = -13;
23-
const XR_ERROR_SESSION_RUNNING = -14;
24-
const XR_ERROR_SESSION_NOT_RUNNING = -16;
25-
const XR_ERROR_SESSION_LOST = -17;
26-
const XR_ERROR_SYSTEM_INVALID = -18;
27-
const XR_ERROR_PATH_INVALID = -19;
28-
const XR_ERROR_PATH_COUNT_EXCEEDED = -20;
29-
const XR_ERROR_PATH_FORMAT_INVALID = -21;
30-
const XR_ERROR_PATH_UNSUPPORTED = -22;
31-
const XR_ERROR_LAYER_INVALID = -23;
32-
const XR_ERROR_LAYER_LIMIT_EXCEEDED = -24;
33-
const XR_ERROR_SWAPCHAIN_RECT_INVALID = -25;
34-
const XR_ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED = -26;
35-
const XR_ERROR_ACTION_TYPE_MISMATCH = -27;
36-
const XR_ERROR_SESSION_NOT_READY = -28;
37-
const XR_ERROR_SESSION_NOT_STOPPING = -29;
38-
const XR_ERROR_TIME_INVALID = -30;
39-
const XR_ERROR_REFERENCE_SPACE_UNSUPPORTED = -31;
40-
const XR_ERROR_FILE_ACCESS_ERROR = -32;
41-
const XR_ERROR_FILE_CONTENTS_INVALID = -33;
42-
const XR_ERROR_FORM_FACTOR_UNSUPPORTED = -34;
43-
const XR_ERROR_FORM_FACTOR_UNAVAILABLE = -35;
44-
const XR_ERROR_API_LAYER_NOT_PRESENT = -36;
45-
const XR_ERROR_CALL_ORDER_INVALID = -37;
46-
const XR_ERROR_GRAPHICS_DEVICE_INVALID = -38;
47-
const XR_ERROR_POSE_INVALID = -39;
48-
const XR_ERROR_INDEX_OUT_OF_RANGE = -40;
49-
const XR_ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED = -41;
50-
const XR_ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED = -42;
51-
const XR_ERROR_NAME_DUPLICATED = -44;
52-
const XR_ERROR_NAME_INVALID = -45;
53-
const XR_ERROR_ACTIONSET_NOT_ATTACHED = -46;
54-
const XR_ERROR_ACTIONSETS_ALREADY_ATTACHED = -47;
55-
const XR_ERROR_LOCALIZED_NAME_DUPLICATED = -48;
56-
const XR_ERROR_LOCALIZED_NAME_INVALID = -49;
57-
const XR_ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR = -1000003000;
58-
const XR_ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR = -1000003001;
59-
const XR_ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT = -1000039001;
60-
const XR_RESULT_MAX_ENUM = 0x7FFFFFFF;
3+
abstract class XrResult {
4+
XrResult._() {}
5+
static const XR_SUCCESS = 0;
6+
static const XR_TIMEOUT_EXPIRED = 1;
7+
static const XR_SESSION_LOSS_PENDING = 3;
8+
static const XR_EVENT_UNAVAILABLE = 4;
9+
static const XR_SPACE_BOUNDS_UNAVAILABLE = 7;
10+
static const XR_SESSION_NOT_FOCUSED = 8;
11+
static const XR_FRAME_DISCARDED = 9;
12+
static const XR_ERROR_VALIDATION_FAILURE = -1;
13+
static const XR_ERROR_RUNTIME_FAILURE = -2;
14+
static const XR_ERROR_OUT_OF_MEMORY = -3;
15+
static const XR_ERROR_API_VERSION_UNSUPPORTED = -4;
16+
static const XR_ERROR_INITIALIZATION_FAILED = -6;
17+
static const XR_ERROR_FUNCTION_UNSUPPORTED = -7;
18+
static const XR_ERROR_FEATURE_UNSUPPORTED = -8;
19+
static const XR_ERROR_EXTENSION_NOT_PRESENT = -9;
20+
static const XR_ERROR_LIMIT_REACHED = -10;
21+
static const XR_ERROR_SIZE_INSUFFICIENT = -11;
22+
static const XR_ERROR_HANDLE_INVALID = -12;
23+
static const XR_ERROR_INSTANCE_LOST = -13;
24+
static const XR_ERROR_SESSION_RUNNING = -14;
25+
static const XR_ERROR_SESSION_NOT_RUNNING = -16;
26+
static const XR_ERROR_SESSION_LOST = -17;
27+
static const XR_ERROR_SYSTEM_INVALID = -18;
28+
static const XR_ERROR_PATH_INVALID = -19;
29+
static const XR_ERROR_PATH_COUNT_EXCEEDED = -20;
30+
static const XR_ERROR_PATH_FORMAT_INVALID = -21;
31+
static const XR_ERROR_PATH_UNSUPPORTED = -22;
32+
static const XR_ERROR_LAYER_INVALID = -23;
33+
static const XR_ERROR_LAYER_LIMIT_EXCEEDED = -24;
34+
static const XR_ERROR_SWAPCHAIN_RECT_INVALID = -25;
35+
static const XR_ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED = -26;
36+
static const XR_ERROR_ACTION_TYPE_MISMATCH = -27;
37+
static const XR_ERROR_SESSION_NOT_READY = -28;
38+
static const XR_ERROR_SESSION_NOT_STOPPING = -29;
39+
static const XR_ERROR_TIME_INVALID = -30;
40+
static const XR_ERROR_REFERENCE_SPACE_UNSUPPORTED = -31;
41+
static const XR_ERROR_FILE_ACCESS_ERROR = -32;
42+
static const XR_ERROR_FILE_CONTENTS_INVALID = -33;
43+
static const XR_ERROR_FORM_FACTOR_UNSUPPORTED = -34;
44+
static const XR_ERROR_FORM_FACTOR_UNAVAILABLE = -35;
45+
static const XR_ERROR_API_LAYER_NOT_PRESENT = -36;
46+
static const XR_ERROR_CALL_ORDER_INVALID = -37;
47+
static const XR_ERROR_GRAPHICS_DEVICE_INVALID = -38;
48+
static const XR_ERROR_POSE_INVALID = -39;
49+
static const XR_ERROR_INDEX_OUT_OF_RANGE = -40;
50+
static const XR_ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED = -41;
51+
static const XR_ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED = -42;
52+
static const XR_ERROR_NAME_DUPLICATED = -44;
53+
static const XR_ERROR_NAME_INVALID = -45;
54+
static const XR_ERROR_ACTIONSET_NOT_ATTACHED = -46;
55+
static const XR_ERROR_ACTIONSETS_ALREADY_ATTACHED = -47;
56+
static const XR_ERROR_LOCALIZED_NAME_DUPLICATED = -48;
57+
static const XR_ERROR_LOCALIZED_NAME_INVALID = -49;
58+
static const XR_ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR = -1000003000;
59+
static const XR_ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR = -1000003001;
60+
static const XR_ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT = -1000039001;
61+
static const XR_RESULT_MAX_ENUM = 0x7FFFFFFF;
62+
}
6163

62-
// XrStructureType
63-
const XR_TYPE_UNKNOWN = 0;
64-
const XR_TYPE_API_LAYER_PROPERTIES = 1;
65-
const XR_TYPE_EXTENSION_PROPERTIES = 2;
66-
const XR_TYPE_INSTANCE_CREATE_INFO = 3;
67-
const XR_TYPE_SYSTEM_GET_INFO = 4;
68-
const XR_TYPE_SYSTEM_PROPERTIES = 5;
69-
const XR_TYPE_VIEW_LOCATE_INFO = 6;
70-
const XR_TYPE_VIEW = 7;
71-
const XR_TYPE_SESSION_CREATE_INFO = 8;
72-
const XR_TYPE_SWAPCHAIN_CREATE_INFO = 9;
73-
const XR_TYPE_SESSION_BEGIN_INFO = 10;
74-
const XR_TYPE_VIEW_STATE = 11;
75-
const XR_TYPE_FRAME_END_INFO = 12;
76-
const XR_TYPE_HAPTIC_VIBRATION = 13;
77-
const XR_TYPE_EVENT_DATA_BUFFER = 16;
78-
const XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING = 17;
79-
const XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED = 18;
80-
const XR_TYPE_ACTION_STATE_BOOLEAN = 23;
81-
const XR_TYPE_ACTION_STATE_FLOAT = 24;
82-
const XR_TYPE_ACTION_STATE_VECTOR2F = 25;
83-
const XR_TYPE_ACTION_STATE_POSE = 27;
84-
const XR_TYPE_ACTION_SET_CREATE_INFO = 28;
85-
const XR_TYPE_ACTION_CREATE_INFO = 29;
86-
const XR_TYPE_INSTANCE_PROPERTIES = 32;
87-
const XR_TYPE_FRAME_WAIT_INFO = 33;
88-
const XR_TYPE_COMPOSITION_LAYER_PROJECTION = 35;
89-
const XR_TYPE_COMPOSITION_LAYER_QUAD = 36;
90-
const XR_TYPE_REFERENCE_SPACE_CREATE_INFO = 37;
91-
const XR_TYPE_ACTION_SPACE_CREATE_INFO = 38;
92-
const XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING = 40;
93-
const XR_TYPE_VIEW_CONFIGURATION_VIEW = 41;
94-
const XR_TYPE_SPACE_LOCATION = 42;
95-
const XR_TYPE_SPACE_VELOCITY = 43;
96-
const XR_TYPE_FRAME_STATE = 44;
97-
const XR_TYPE_VIEW_CONFIGURATION_PROPERTIES = 45;
98-
const XR_TYPE_FRAME_BEGIN_INFO = 46;
99-
const XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW = 48;
100-
const XR_TYPE_EVENT_DATA_EVENTS_LOST = 49;
101-
const XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING = 51;
102-
const XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED = 52;
103-
const XR_TYPE_INTERACTION_PROFILE_STATE = 53;
104-
const XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO = 55;
105-
const XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO = 56;
106-
const XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO = 57;
107-
const XR_TYPE_ACTION_STATE_GET_INFO = 58;
108-
const XR_TYPE_HAPTIC_ACTION_INFO = 59;
109-
const XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO = 60;
110-
const XR_TYPE_ACTIONS_SYNC_INFO = 61;
111-
const XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO = 62;
112-
const XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO = 63;
113-
const XR_TYPE_COMPOSITION_LAYER_CUBE_KHR = 1000006000;
114-
const XR_TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR = 1000008000;
115-
const XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR = 1000010000;
116-
const XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR = 1000014000;
117-
const XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT = 1000015000;
118-
const XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR = 1000017000;
119-
const XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR = 1000018000;
120-
const XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT = 1000019000;
121-
const XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT = 1000019001;
122-
const XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT = 1000019002;
123-
const XR_TYPE_DEBUG_UTILS_LABEL_EXT = 1000019003;
124-
const XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR = 1000023000;
125-
const XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR = 1000023001;
126-
const XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR = 1000023002;
127-
const XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR = 1000023003;
128-
const XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR = 1000023004;
129-
const XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR = 1000023005;
130-
const XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR = 1000024001;
131-
const XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR = 1000024002;
132-
const XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR = 1000024003;
133-
const XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR = 1000025000;
134-
const XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR = 1000025001;
135-
const XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR = 1000025002;
136-
const XR_TYPE_GRAPHICS_BINDING_D3D11_KHR = 1000027000;
137-
const XR_TYPE_SWAPCHAIN_IMAGE_D3D11_KHR = 1000027001;
138-
const XR_TYPE_GRAPHICS_REQUIREMENTS_D3D11_KHR = 1000027002;
139-
const XR_TYPE_GRAPHICS_BINDING_D3D12_KHR = 1000028000;
140-
const XR_TYPE_SWAPCHAIN_IMAGE_D3D12_KHR = 1000028001;
141-
const XR_TYPE_GRAPHICS_REQUIREMENTS_D3D12_KHR = 1000028002;
142-
const XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT = 1000030000;
143-
const XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT = 1000030001;
144-
const XR_TYPE_VISIBILITY_MASK_KHR = 1000031000;
145-
const XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR = 1000031001;
146-
const XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX = 1000033000;
147-
const XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX = 1000033003;
148-
const XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT = 1000039000;
149-
const XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT = 1000039001;
150-
const XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT = 1000046000;
151-
const XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC = 1000059000;
152-
const XR_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF;
64+
abstract class XrStructureType {
65+
XrStructureType._() {}
66+
static const XR_TYPE_UNKNOWN = 0;
67+
static const XR_TYPE_API_LAYER_PROPERTIES = 1;
68+
static const XR_TYPE_EXTENSION_PROPERTIES = 2;
69+
static const XR_TYPE_INSTANCE_CREATE_INFO = 3;
70+
static const XR_TYPE_SYSTEM_GET_INFO = 4;
71+
static const XR_TYPE_SYSTEM_PROPERTIES = 5;
72+
static const XR_TYPE_VIEW_LOCATE_INFO = 6;
73+
static const XR_TYPE_VIEW = 7;
74+
static const XR_TYPE_SESSION_CREATE_INFO = 8;
75+
static const XR_TYPE_SWAPCHAIN_CREATE_INFO = 9;
76+
static const XR_TYPE_SESSION_BEGIN_INFO = 10;
77+
static const XR_TYPE_VIEW_STATE = 11;
78+
static const XR_TYPE_FRAME_END_INFO = 12;
79+
static const XR_TYPE_HAPTIC_VIBRATION = 13;
80+
static const XR_TYPE_EVENT_DATA_BUFFER = 16;
81+
static const XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING = 17;
82+
static const XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED = 18;
83+
static const XR_TYPE_ACTION_STATE_BOOLEAN = 23;
84+
static const XR_TYPE_ACTION_STATE_FLOAT = 24;
85+
static const XR_TYPE_ACTION_STATE_VECTOR2F = 25;
86+
static const XR_TYPE_ACTION_STATE_POSE = 27;
87+
static const XR_TYPE_ACTION_SET_CREATE_INFO = 28;
88+
static const XR_TYPE_ACTION_CREATE_INFO = 29;
89+
static const XR_TYPE_INSTANCE_PROPERTIES = 32;
90+
static const XR_TYPE_FRAME_WAIT_INFO = 33;
91+
static const XR_TYPE_COMPOSITION_LAYER_PROJECTION = 35;
92+
static const XR_TYPE_COMPOSITION_LAYER_QUAD = 36;
93+
static const XR_TYPE_REFERENCE_SPACE_CREATE_INFO = 37;
94+
static const XR_TYPE_ACTION_SPACE_CREATE_INFO = 38;
95+
static const XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING = 40;
96+
static const XR_TYPE_VIEW_CONFIGURATION_VIEW = 41;
97+
static const XR_TYPE_SPACE_LOCATION = 42;
98+
static const XR_TYPE_SPACE_VELOCITY = 43;
99+
static const XR_TYPE_FRAME_STATE = 44;
100+
static const XR_TYPE_VIEW_CONFIGURATION_PROPERTIES = 45;
101+
static const XR_TYPE_FRAME_BEGIN_INFO = 46;
102+
static const XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW = 48;
103+
static const XR_TYPE_EVENT_DATA_EVENTS_LOST = 49;
104+
static const XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING = 51;
105+
static const XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED = 52;
106+
static const XR_TYPE_INTERACTION_PROFILE_STATE = 53;
107+
static const XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO = 55;
108+
static const XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO = 56;
109+
static const XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO = 57;
110+
static const XR_TYPE_ACTION_STATE_GET_INFO = 58;
111+
static const XR_TYPE_HAPTIC_ACTION_INFO = 59;
112+
static const XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO = 60;
113+
static const XR_TYPE_ACTIONS_SYNC_INFO = 61;
114+
static const XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO = 62;
115+
static const XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO = 63;
116+
static const XR_TYPE_COMPOSITION_LAYER_CUBE_KHR = 1000006000;
117+
static const XR_TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR = 1000008000;
118+
static const XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR = 1000010000;
119+
static const XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR = 1000014000;
120+
static const XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT = 1000015000;
121+
static const XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR = 1000017000;
122+
static const XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR = 1000018000;
123+
static const XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT = 1000019000;
124+
static const XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT = 1000019001;
125+
static const XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT = 1000019002;
126+
static const XR_TYPE_DEBUG_UTILS_LABEL_EXT = 1000019003;
127+
static const XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR = 1000023000;
128+
static const XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR = 1000023001;
129+
static const XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR = 1000023002;
130+
static const XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR = 1000023003;
131+
static const XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR = 1000023004;
132+
static const XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR = 1000023005;
133+
static const XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR = 1000024001;
134+
static const XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR = 1000024002;
135+
static const XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR = 1000024003;
136+
static const XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR = 1000025000;
137+
static const XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR = 1000025001;
138+
static const XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR = 1000025002;
139+
static const XR_TYPE_GRAPHICS_BINDING_D3D11_KHR = 1000027000;
140+
static const XR_TYPE_SWAPCHAIN_IMAGE_D3D11_KHR = 1000027001;
141+
static const XR_TYPE_GRAPHICS_REQUIREMENTS_D3D11_KHR = 1000027002;
142+
static const XR_TYPE_GRAPHICS_BINDING_D3D12_KHR = 1000028000;
143+
static const XR_TYPE_SWAPCHAIN_IMAGE_D3D12_KHR = 1000028001;
144+
static const XR_TYPE_GRAPHICS_REQUIREMENTS_D3D12_KHR = 1000028002;
145+
static const XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT = 1000030000;
146+
static const XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT = 1000030001;
147+
static const XR_TYPE_VISIBILITY_MASK_KHR = 1000031000;
148+
static const XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR = 1000031001;
149+
static const XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX = 1000033000;
150+
static const XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX = 1000033003;
151+
static const XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT = 1000039000;
152+
static const XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT = 1000039001;
153+
static const XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT = 1000046000;
154+
static const XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC = 1000059000;
155+
static const XR_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF;
156+
}

test/abi_test.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
import 'package:test/test.dart';
44

5-
import 'package:openxr/openxr.dart' as openxr;
5+
import 'package:openxr/openxr.dart';
66

77
void main() {
88
test('checks XR_SUCCESS', () {
9-
expect(openxr.XR_SUCCESS, 0);
9+
expect(XrResult.XR_SUCCESS, 0);
10+
});
11+
12+
test('checks XR_TYPE_UNKNOWN', () {
13+
expect(XrStructureType.XR_TYPE_UNKNOWN, 0);
1014
});
1115
}

test/action_set_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import 'package:test/test.dart';
44

5-
import 'package:openxr/openxr.dart' as openxr;
5+
import 'package:openxr/openxr.dart' as xr;
66

77
void main() {
88
// TODO

test/action_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import 'package:test/test.dart';
44

5-
import 'package:openxr/openxr.dart' as openxr;
5+
import 'package:openxr/openxr.dart' as xr;
66

77
void main() {
88
// TODO

test/api_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import 'package:test/test.dart';
44

5-
import 'package:openxr/openxr.dart' as openxr;
5+
import 'package:openxr/openxr.dart' as xr;
66

77
void main() {
88
// TODO

test/extension_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import 'package:test/test.dart';
44

5-
import 'package:openxr/openxr.dart' as openxr;
5+
import 'package:openxr/openxr.dart' as xr;
66

77
void main() {
88
// TODO

test/handle_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import 'package:test/test.dart';
44

5-
import 'package:openxr/openxr.dart' as openxr;
5+
import 'package:openxr/openxr.dart' as xr;
66

77
void main() {
88
// TODO

0 commit comments

Comments
 (0)