1 // machine generated, do not edit 2 3 module sokol.app; 4 5 enum max_touchpoints = 8; 6 enum max_mousebuttons = 3; 7 enum max_keycodes = 512; 8 enum max_iconimages = 8; 9 enum EventType { 10 Invalid, 11 Key_down, 12 Key_up, 13 Char, 14 Mouse_down, 15 Mouse_up, 16 Mouse_scroll, 17 Mouse_move, 18 Mouse_enter, 19 Mouse_leave, 20 Touches_began, 21 Touches_moved, 22 Touches_ended, 23 Touches_cancelled, 24 Resized, 25 Iconified, 26 Restored, 27 Focused, 28 Unfocused, 29 Suspended, 30 Resumed, 31 Quit_requested, 32 Clipboard_pasted, 33 Files_dropped, 34 Num, 35 } 36 enum Keycode { 37 Invalid = 0, 38 Space = 32, 39 Apostrophe = 39, 40 Comma = 44, 41 Minus = 45, 42 Period = 46, 43 Slash = 47, 44 _0 = 48, 45 _1 = 49, 46 _2 = 50, 47 _3 = 51, 48 _4 = 52, 49 _5 = 53, 50 _6 = 54, 51 _7 = 55, 52 _8 = 56, 53 _9 = 57, 54 Semicolon = 59, 55 Equal = 61, 56 A = 65, 57 B = 66, 58 C = 67, 59 D = 68, 60 E = 69, 61 F = 70, 62 G = 71, 63 H = 72, 64 I = 73, 65 J = 74, 66 K = 75, 67 L = 76, 68 M = 77, 69 N = 78, 70 O = 79, 71 P = 80, 72 Q = 81, 73 R = 82, 74 S = 83, 75 T = 84, 76 U = 85, 77 V = 86, 78 W = 87, 79 X = 88, 80 Y = 89, 81 Z = 90, 82 Left_bracket = 91, 83 Backslash = 92, 84 Right_bracket = 93, 85 Grave_accent = 96, 86 World_1 = 161, 87 World_2 = 162, 88 Escape = 256, 89 Enter = 257, 90 Tab = 258, 91 Backspace = 259, 92 Insert = 260, 93 Delete = 261, 94 Right = 262, 95 Left = 263, 96 Down = 264, 97 Up = 265, 98 Page_up = 266, 99 Page_down = 267, 100 Home = 268, 101 End = 269, 102 Caps_lock = 280, 103 Scroll_lock = 281, 104 Num_lock = 282, 105 Print_screen = 283, 106 Pause = 284, 107 F1 = 290, 108 F2 = 291, 109 F3 = 292, 110 F4 = 293, 111 F5 = 294, 112 F6 = 295, 113 F7 = 296, 114 F8 = 297, 115 F9 = 298, 116 F10 = 299, 117 F11 = 300, 118 F12 = 301, 119 F13 = 302, 120 F14 = 303, 121 F15 = 304, 122 F16 = 305, 123 F17 = 306, 124 F18 = 307, 125 F19 = 308, 126 F20 = 309, 127 F21 = 310, 128 F22 = 311, 129 F23 = 312, 130 F24 = 313, 131 F25 = 314, 132 Kp_0 = 320, 133 Kp_1 = 321, 134 Kp_2 = 322, 135 Kp_3 = 323, 136 Kp_4 = 324, 137 Kp_5 = 325, 138 Kp_6 = 326, 139 Kp_7 = 327, 140 Kp_8 = 328, 141 Kp_9 = 329, 142 Kp_decimal = 330, 143 Kp_divide = 331, 144 Kp_multiply = 332, 145 Kp_subtract = 333, 146 Kp_add = 334, 147 Kp_enter = 335, 148 Kp_equal = 336, 149 Left_shift = 340, 150 Left_control = 341, 151 Left_alt = 342, 152 Left_super = 343, 153 Right_shift = 344, 154 Right_control = 345, 155 Right_alt = 346, 156 Right_super = 347, 157 Menu = 348, 158 } 159 enum AndroidTooltype { 160 Unknown = 0, 161 Finger = 1, 162 Stylus = 2, 163 Mouse = 3, 164 } 165 extern(C) 166 struct Touchpoint { 167 ulong identifier = 0; 168 float pos_x = 0.0f; 169 float pos_y = 0.0f; 170 AndroidTooltype android_tooltype; 171 bool changed = false; 172 } 173 enum Mousebutton { 174 Left = 0, 175 Right = 1, 176 Middle = 2, 177 Invalid = 256, 178 } 179 enum modifier_shift = 1; 180 enum modifier_ctrl = 2; 181 enum modifier_alt = 4; 182 enum modifier_super = 8; 183 enum modifier_lmb = 256; 184 enum modifier_rmb = 512; 185 enum modifier_mmb = 1024; 186 extern(C) 187 struct Event { 188 ulong frame_count = 0; 189 EventType type; 190 Keycode key_code; 191 uint char_code = 0; 192 bool key_repeat = false; 193 uint modifiers = 0; 194 Mousebutton mouse_button; 195 float mouse_x = 0.0f; 196 float mouse_y = 0.0f; 197 float mouse_dx = 0.0f; 198 float mouse_dy = 0.0f; 199 float scroll_x = 0.0f; 200 float scroll_y = 0.0f; 201 int num_touches = 0; 202 Touchpoint[8] touches; 203 int window_width = 0; 204 int window_height = 0; 205 int framebuffer_width = 0; 206 int framebuffer_height = 0; 207 } 208 extern(C) 209 struct Range { 210 const(void)* ptr = null; 211 size_t size = 0; 212 } 213 extern(C) 214 struct ImageDesc { 215 int width = 0; 216 int height = 0; 217 Range pixels; 218 } 219 extern(C) 220 struct IconDesc { 221 bool sokol_default = false; 222 ImageDesc[8] images; 223 } 224 extern(C) 225 struct Allocator { 226 extern(C) void* function(size_t, void*) alloc_fn = null; 227 extern(C) void function(void*, void*) free_fn = null; 228 void* user_data = null; 229 } 230 enum LogItem { 231 Ok, 232 Malloc_failed, 233 Macos_invalid_nsopengl_profile, 234 Win32_load_opengl32_dll_failed, 235 Win32_create_helper_window_failed, 236 Win32_helper_window_getdc_failed, 237 Win32_dummy_context_set_pixelformat_failed, 238 Win32_create_dummy_context_failed, 239 Win32_dummy_context_make_current_failed, 240 Win32_get_pixelformat_attrib_failed, 241 Win32_wgl_find_pixelformat_failed, 242 Win32_wgl_describe_pixelformat_failed, 243 Win32_wgl_set_pixelformat_failed, 244 Win32_wgl_arb_create_context_required, 245 Win32_wgl_arb_create_context_profile_required, 246 Win32_wgl_opengl_version_not_supported, 247 Win32_wgl_opengl_profile_not_supported, 248 Win32_wgl_incompatible_device_context, 249 Win32_wgl_create_context_attribs_failed_other, 250 Win32_d3d11_create_device_and_swapchain_with_debug_failed, 251 Win32_d3d11_get_idxgifactory_failed, 252 Win32_d3d11_get_idxgiadapter_failed, 253 Win32_d3d11_query_interface_idxgidevice1_failed, 254 Win32_register_raw_input_devices_failed_mouse_lock, 255 Win32_register_raw_input_devices_failed_mouse_unlock, 256 Win32_get_raw_input_data_failed, 257 Linux_glx_load_libgl_failed, 258 Linux_glx_load_entry_points_failed, 259 Linux_glx_extension_not_found, 260 Linux_glx_query_version_failed, 261 Linux_glx_version_too_low, 262 Linux_glx_no_glxfbconfigs, 263 Linux_glx_no_suitable_glxfbconfig, 264 Linux_glx_get_visual_from_fbconfig_failed, 265 Linux_glx_required_extensions_missing, 266 Linux_glx_create_context_failed, 267 Linux_glx_create_window_failed, 268 Linux_x11_create_window_failed, 269 Linux_egl_bind_opengl_api_failed, 270 Linux_egl_bind_opengl_es_api_failed, 271 Linux_egl_get_display_failed, 272 Linux_egl_initialize_failed, 273 Linux_egl_no_configs, 274 Linux_egl_no_native_visual, 275 Linux_egl_get_visual_info_failed, 276 Linux_egl_create_window_surface_failed, 277 Linux_egl_create_context_failed, 278 Linux_egl_make_current_failed, 279 Linux_x11_open_display_failed, 280 Linux_x11_query_system_dpi_failed, 281 Linux_x11_dropped_file_uri_wrong_scheme, 282 Linux_x11_failed_to_become_owner_of_clipboard, 283 Android_unsupported_input_event_input_cb, 284 Android_unsupported_input_event_main_cb, 285 Android_read_msg_failed, 286 Android_write_msg_failed, 287 Android_msg_create, 288 Android_msg_resume, 289 Android_msg_pause, 290 Android_msg_focus, 291 Android_msg_no_focus, 292 Android_msg_set_native_window, 293 Android_msg_set_input_queue, 294 Android_msg_destroy, 295 Android_unknown_msg, 296 Android_loop_thread_started, 297 Android_loop_thread_done, 298 Android_native_activity_onstart, 299 Android_native_activity_onresume, 300 Android_native_activity_onsaveinstancestate, 301 Android_native_activity_onwindowfocuschanged, 302 Android_native_activity_onpause, 303 Android_native_activity_onstop, 304 Android_native_activity_onnativewindowcreated, 305 Android_native_activity_onnativewindowdestroyed, 306 Android_native_activity_oninputqueuecreated, 307 Android_native_activity_oninputqueuedestroyed, 308 Android_native_activity_onconfigurationchanged, 309 Android_native_activity_onlowmemory, 310 Android_native_activity_ondestroy, 311 Android_native_activity_done, 312 Android_native_activity_oncreate, 313 Android_create_thread_pipe_failed, 314 Android_native_activity_create_success, 315 Wgpu_swapchain_create_surface_failed, 316 Wgpu_swapchain_create_swapchain_failed, 317 Wgpu_swapchain_create_depth_stencil_texture_failed, 318 Wgpu_swapchain_create_depth_stencil_view_failed, 319 Wgpu_swapchain_create_msaa_texture_failed, 320 Wgpu_swapchain_create_msaa_view_failed, 321 Wgpu_request_device_status_error, 322 Wgpu_request_device_status_unknown, 323 Wgpu_request_adapter_status_unavailable, 324 Wgpu_request_adapter_status_error, 325 Wgpu_request_adapter_status_unknown, 326 Wgpu_create_instance_failed, 327 Image_data_size_mismatch, 328 Dropped_file_path_too_long, 329 Clipboard_string_too_big, 330 } 331 extern(C) 332 struct Logger { 333 extern(C) void function(const(char)*, uint, uint, const(char)*, uint, const(char)*, void*) func = null; 334 void* user_data = null; 335 } 336 extern(C) 337 struct Desc { 338 extern(C) void function() init_cb = null; 339 extern(C) void function() frame_cb = null; 340 extern(C) void function() cleanup_cb = null; 341 extern(C) void function(const Event *) event_cb = null; 342 void* user_data = null; 343 extern(C) void function(void*) init_userdata_cb = null; 344 extern(C) void function(void*) frame_userdata_cb = null; 345 extern(C) void function(void*) cleanup_userdata_cb = null; 346 extern(C) void function(const Event *, void*) event_userdata_cb = null; 347 int width = 0; 348 int height = 0; 349 int sample_count = 0; 350 int swap_interval = 0; 351 bool high_dpi = false; 352 bool fullscreen = false; 353 bool alpha = false; 354 const(char)* window_title = null; 355 bool enable_clipboard = false; 356 int clipboard_size = 0; 357 bool enable_dragndrop = false; 358 int max_dropped_files = 0; 359 int max_dropped_file_path_length = 0; 360 IconDesc icon; 361 Allocator allocator; 362 Logger logger; 363 int gl_major_version = 0; 364 int gl_minor_version = 0; 365 bool win32_console_utf8 = false; 366 bool win32_console_create = false; 367 bool win32_console_attach = false; 368 const(char)* html5_canvas_name = null; 369 bool html5_canvas_resize = false; 370 bool html5_preserve_drawing_buffer = false; 371 bool html5_premultiplied_alpha = false; 372 bool html5_ask_leave_site = false; 373 bool html5_bubble_mouse_events = false; 374 bool html5_bubble_touch_events = false; 375 bool html5_bubble_wheel_events = false; 376 bool html5_bubble_key_events = false; 377 bool html5_bubble_char_events = false; 378 bool html5_use_emsc_set_main_loop = false; 379 bool html5_emsc_set_main_loop_simulate_infinite_loop = false; 380 bool ios_keyboard_resizes_canvas = false; 381 } 382 enum Html5FetchError { 383 Fetch_error_no_error, 384 Fetch_error_buffer_too_small, 385 Fetch_error_other, 386 } 387 extern(C) 388 struct Html5FetchResponse { 389 bool succeeded = false; 390 Html5FetchError error_code; 391 int file_index = 0; 392 Range data; 393 Range buffer; 394 void* user_data = null; 395 } 396 extern(C) 397 struct Html5FetchRequest { 398 int dropped_file_index = 0; 399 extern(C) void function(const Html5FetchResponse *) callback = null; 400 Range buffer; 401 void* user_data = null; 402 } 403 enum MouseCursor { 404 Default = 0, 405 Arrow, 406 Ibeam, 407 Crosshair, 408 Pointing_hand, 409 Resize_ew, 410 Resize_ns, 411 Resize_nwse, 412 Resize_nesw, 413 Resize_all, 414 Not_allowed, 415 Num, 416 } 417 extern(C) bool sapp_isvalid() @system @nogc nothrow; 418 bool isvalid() @trusted @nogc nothrow { 419 return sapp_isvalid(); 420 } 421 extern(C) int sapp_width() @system @nogc nothrow; 422 int width() @trusted @nogc nothrow { 423 return sapp_width(); 424 } 425 extern(C) float sapp_widthf() @system @nogc nothrow; 426 float widthf() @trusted @nogc nothrow { 427 return sapp_widthf(); 428 } 429 extern(C) int sapp_height() @system @nogc nothrow; 430 int height() @trusted @nogc nothrow { 431 return sapp_height(); 432 } 433 extern(C) float sapp_heightf() @system @nogc nothrow; 434 float heightf() @trusted @nogc nothrow { 435 return sapp_heightf(); 436 } 437 extern(C) int sapp_color_format() @system @nogc nothrow; 438 int colorFormat() @trusted @nogc nothrow { 439 return sapp_color_format(); 440 } 441 extern(C) int sapp_depth_format() @system @nogc nothrow; 442 int depthFormat() @trusted @nogc nothrow { 443 return sapp_depth_format(); 444 } 445 extern(C) int sapp_sample_count() @system @nogc nothrow; 446 int sampleCount() @trusted @nogc nothrow { 447 return sapp_sample_count(); 448 } 449 extern(C) bool sapp_high_dpi() @system @nogc nothrow; 450 bool highDpi() @trusted @nogc nothrow { 451 return sapp_high_dpi(); 452 } 453 extern(C) float sapp_dpi_scale() @system @nogc nothrow; 454 float dpiScale() @trusted @nogc nothrow { 455 return sapp_dpi_scale(); 456 } 457 extern(C) void sapp_show_keyboard(bool) @system @nogc nothrow; 458 void showKeyboard(bool show) @trusted @nogc nothrow { 459 sapp_show_keyboard(show); 460 } 461 extern(C) bool sapp_keyboard_shown() @system @nogc nothrow; 462 bool keyboardShown() @trusted @nogc nothrow { 463 return sapp_keyboard_shown(); 464 } 465 extern(C) bool sapp_is_fullscreen() @system @nogc nothrow; 466 bool isFullscreen() @trusted @nogc nothrow { 467 return sapp_is_fullscreen(); 468 } 469 extern(C) void sapp_toggle_fullscreen() @system @nogc nothrow; 470 void toggleFullscreen() @trusted @nogc nothrow { 471 sapp_toggle_fullscreen(); 472 } 473 extern(C) void sapp_show_mouse(bool) @system @nogc nothrow; 474 void showMouse(bool show) @trusted @nogc nothrow { 475 sapp_show_mouse(show); 476 } 477 extern(C) bool sapp_mouse_shown() @system @nogc nothrow; 478 bool mouseShown() @trusted @nogc nothrow { 479 return sapp_mouse_shown(); 480 } 481 extern(C) void sapp_lock_mouse(bool) @system @nogc nothrow; 482 void lockMouse(bool lock) @trusted @nogc nothrow { 483 sapp_lock_mouse(lock); 484 } 485 extern(C) bool sapp_mouse_locked() @system @nogc nothrow; 486 bool mouseLocked() @trusted @nogc nothrow { 487 return sapp_mouse_locked(); 488 } 489 extern(C) void sapp_set_mouse_cursor(MouseCursor) @system @nogc nothrow; 490 void setMouseCursor(MouseCursor cursor) @trusted @nogc nothrow { 491 sapp_set_mouse_cursor(cursor); 492 } 493 extern(C) MouseCursor sapp_get_mouse_cursor() @system @nogc nothrow; 494 MouseCursor getMouseCursor() @trusted @nogc nothrow { 495 return sapp_get_mouse_cursor(); 496 } 497 extern(C) void* sapp_userdata() @system @nogc nothrow; 498 scope void* userdata() @trusted @nogc nothrow { 499 return sapp_userdata(); 500 } 501 extern(C) Desc sapp_query_desc() @system @nogc nothrow; 502 Desc queryDesc() @trusted @nogc nothrow { 503 return sapp_query_desc(); 504 } 505 extern(C) void sapp_request_quit() @system @nogc nothrow; 506 void requestQuit() @trusted @nogc nothrow { 507 sapp_request_quit(); 508 } 509 extern(C) void sapp_cancel_quit() @system @nogc nothrow; 510 void cancelQuit() @trusted @nogc nothrow { 511 sapp_cancel_quit(); 512 } 513 extern(C) void sapp_quit() @system @nogc nothrow; 514 void quit() @trusted @nogc nothrow { 515 sapp_quit(); 516 } 517 extern(C) void sapp_consume_event() @system @nogc nothrow; 518 void consumeEvent() @trusted @nogc nothrow { 519 sapp_consume_event(); 520 } 521 extern(C) ulong sapp_frame_count() @system @nogc nothrow; 522 ulong frameCount() @trusted @nogc nothrow { 523 return sapp_frame_count(); 524 } 525 extern(C) double sapp_frame_duration() @system @nogc nothrow; 526 double frameDuration() @trusted @nogc nothrow { 527 return sapp_frame_duration(); 528 } 529 extern(C) void sapp_set_clipboard_string(const(char)*) @system @nogc nothrow; 530 void setClipboardString(scope const(char)* str) @trusted @nogc nothrow { 531 sapp_set_clipboard_string(str); 532 } 533 extern(C) const(char)* sapp_get_clipboard_string() @system @nogc nothrow; 534 scope const(char)* getClipboardString() @trusted @nogc nothrow { 535 return sapp_get_clipboard_string(); 536 } 537 extern(C) void sapp_set_window_title(const(char)*) @system @nogc nothrow; 538 void setWindowTitle(scope const(char)* str) @trusted @nogc nothrow { 539 sapp_set_window_title(str); 540 } 541 extern(C) void sapp_set_icon(const IconDesc *) @system @nogc nothrow; 542 void setIcon(scope ref IconDesc icon_desc) @trusted @nogc nothrow { 543 sapp_set_icon(&icon_desc); 544 } 545 extern(C) int sapp_get_num_dropped_files() @system @nogc nothrow; 546 int getNumDroppedFiles() @trusted @nogc nothrow { 547 return sapp_get_num_dropped_files(); 548 } 549 extern(C) const(char)* sapp_get_dropped_file_path(int) @system @nogc nothrow; 550 scope const(char)* getDroppedFilePath(int index) @trusted @nogc nothrow { 551 return sapp_get_dropped_file_path(index); 552 } 553 extern(C) void sapp_run(const Desc *) @system @nogc nothrow; 554 void run(scope ref Desc desc) @trusted @nogc nothrow { 555 sapp_run(&desc); 556 } 557 extern(C) const(void)* sapp_egl_get_display() @system @nogc nothrow; 558 scope const(void)* eglGetDisplay() @trusted @nogc nothrow { 559 return sapp_egl_get_display(); 560 } 561 extern(C) const(void)* sapp_egl_get_context() @system @nogc nothrow; 562 scope const(void)* eglGetContext() @trusted @nogc nothrow { 563 return sapp_egl_get_context(); 564 } 565 extern(C) void sapp_html5_ask_leave_site(bool) @system @nogc nothrow; 566 void html5AskLeaveSite(bool ask) @trusted @nogc nothrow { 567 sapp_html5_ask_leave_site(ask); 568 } 569 extern(C) uint sapp_html5_get_dropped_file_size(int) @system @nogc nothrow; 570 uint html5GetDroppedFileSize(int index) @trusted @nogc nothrow { 571 return sapp_html5_get_dropped_file_size(index); 572 } 573 extern(C) void sapp_html5_fetch_dropped_file(const Html5FetchRequest *) @system @nogc nothrow; 574 void html5FetchDroppedFile(scope ref Html5FetchRequest request) @trusted @nogc nothrow { 575 sapp_html5_fetch_dropped_file(&request); 576 } 577 extern(C) const(void)* sapp_metal_get_device() @system @nogc nothrow; 578 scope const(void)* metalGetDevice() @trusted @nogc nothrow { 579 return sapp_metal_get_device(); 580 } 581 extern(C) const(void)* sapp_metal_get_current_drawable() @system @nogc nothrow; 582 scope const(void)* metalGetCurrentDrawable() @trusted @nogc nothrow { 583 return sapp_metal_get_current_drawable(); 584 } 585 extern(C) const(void)* sapp_metal_get_depth_stencil_texture() @system @nogc nothrow; 586 scope const(void)* metalGetDepthStencilTexture() @trusted @nogc nothrow { 587 return sapp_metal_get_depth_stencil_texture(); 588 } 589 extern(C) const(void)* sapp_metal_get_msaa_color_texture() @system @nogc nothrow; 590 scope const(void)* metalGetMsaaColorTexture() @trusted @nogc nothrow { 591 return sapp_metal_get_msaa_color_texture(); 592 } 593 extern(C) const(void)* sapp_macos_get_window() @system @nogc nothrow; 594 scope const(void)* macosGetWindow() @trusted @nogc nothrow { 595 return sapp_macos_get_window(); 596 } 597 extern(C) const(void)* sapp_ios_get_window() @system @nogc nothrow; 598 scope const(void)* iosGetWindow() @trusted @nogc nothrow { 599 return sapp_ios_get_window(); 600 } 601 extern(C) const(void)* sapp_d3d11_get_device() @system @nogc nothrow; 602 scope const(void)* d3d11GetDevice() @trusted @nogc nothrow { 603 return sapp_d3d11_get_device(); 604 } 605 extern(C) const(void)* sapp_d3d11_get_device_context() @system @nogc nothrow; 606 scope const(void)* d3d11GetDeviceContext() @trusted @nogc nothrow { 607 return sapp_d3d11_get_device_context(); 608 } 609 extern(C) const(void)* sapp_d3d11_get_swap_chain() @system @nogc nothrow; 610 scope const(void)* d3d11GetSwapChain() @trusted @nogc nothrow { 611 return sapp_d3d11_get_swap_chain(); 612 } 613 extern(C) const(void)* sapp_d3d11_get_render_view() @system @nogc nothrow; 614 scope const(void)* d3d11GetRenderView() @trusted @nogc nothrow { 615 return sapp_d3d11_get_render_view(); 616 } 617 extern(C) const(void)* sapp_d3d11_get_resolve_view() @system @nogc nothrow; 618 scope const(void)* d3d11GetResolveView() @trusted @nogc nothrow { 619 return sapp_d3d11_get_resolve_view(); 620 } 621 extern(C) const(void)* sapp_d3d11_get_depth_stencil_view() @system @nogc nothrow; 622 scope const(void)* d3d11GetDepthStencilView() @trusted @nogc nothrow { 623 return sapp_d3d11_get_depth_stencil_view(); 624 } 625 extern(C) const(void)* sapp_win32_get_hwnd() @system @nogc nothrow; 626 scope const(void)* win32GetHwnd() @trusted @nogc nothrow { 627 return sapp_win32_get_hwnd(); 628 } 629 extern(C) const(void)* sapp_wgpu_get_device() @system @nogc nothrow; 630 scope const(void)* wgpuGetDevice() @trusted @nogc nothrow { 631 return sapp_wgpu_get_device(); 632 } 633 extern(C) const(void)* sapp_wgpu_get_render_view() @system @nogc nothrow; 634 scope const(void)* wgpuGetRenderView() @trusted @nogc nothrow { 635 return sapp_wgpu_get_render_view(); 636 } 637 extern(C) const(void)* sapp_wgpu_get_resolve_view() @system @nogc nothrow; 638 scope const(void)* wgpuGetResolveView() @trusted @nogc nothrow { 639 return sapp_wgpu_get_resolve_view(); 640 } 641 extern(C) const(void)* sapp_wgpu_get_depth_stencil_view() @system @nogc nothrow; 642 scope const(void)* wgpuGetDepthStencilView() @trusted @nogc nothrow { 643 return sapp_wgpu_get_depth_stencil_view(); 644 } 645 extern(C) uint sapp_gl_get_framebuffer() @system @nogc nothrow; 646 uint glGetFramebuffer() @trusted @nogc nothrow { 647 return sapp_gl_get_framebuffer(); 648 } 649 extern(C) int sapp_gl_get_major_version() @system @nogc nothrow; 650 int glGetMajorVersion() @trusted @nogc nothrow { 651 return sapp_gl_get_major_version(); 652 } 653 extern(C) int sapp_gl_get_minor_version() @system @nogc nothrow; 654 int glGetMinorVersion() @trusted @nogc nothrow { 655 return sapp_gl_get_minor_version(); 656 } 657 extern(C) const(void)* sapp_android_get_native_activity() @system @nogc nothrow; 658 scope const(void)* androidGetNativeActivity() @trusted @nogc nothrow { 659 return sapp_android_get_native_activity(); 660 }