File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,25 @@ pub fn getProcAddress(procname: [*:0]const u8) callconv(.c) ?GlProc {
174174}
175175extern fn glfwGetProcAddress (procname : [* :0 ]const u8 ) callconv (.c ) ? GlProc ;
176176
177+ pub const Platform = enum (c_int ) {
178+ win32 = 0x00060001 ,
179+ cocoa = 0x00060002 ,
180+ wayland = 0x00060003 ,
181+ x11 = 0x00060004 ,
182+ null = 0x00060005 ,
183+ _ ,
184+ };
185+
186+ pub fn getPlatform () Platform {
187+ return glfwGetPlatform ();
188+ }
189+ extern fn glfwGetPlatform () Platform ;
190+
191+ pub fn platformSupported (platform : Platform ) bool {
192+ return glfwPlatformSupported (platform ) == TRUE ;
193+ }
194+ extern fn glfwPlatformSupported (Platform ) Bool ;
195+
177196//--------------------------------------------------------------------------------------------------
178197//
179198// Keyboard/Mouse
You can’t perform that action at this time.
0 commit comments