ui/modules/SDL3/module.jai

51 lines
3.2 KiB
Plaintext

SDL_FALSE :: 0;
SDL_TRUE :: 1;
SDL_WINDOW_FULLSCREEN :: 0x0000000000000001; /**< window is in fullscreen mode */
SDL_WINDOW_OPENGL :: 0x0000000000000002; /**< window usable with OpenGL context */
SDL_WINDOW_OCCLUDED :: 0x0000000000000004; /**< window is occluded */
SDL_WINDOW_HIDDEN :: 0x0000000000000008; /**< window is neither mapped onto the desktop nor shown in the taskbar/dock/window list; SDL_ShowWindow() is required for it to become visible */
SDL_WINDOW_BORDERLESS :: 0x0000000000000010; /**< no window decoration */
SDL_WINDOW_RESIZABLE :: 0x0000000000000020; /**< window can be resized */
SDL_WINDOW_MINIMIZED :: 0x0000000000000040; /**< window is minimized */
SDL_WINDOW_MAXIMIZED :: 0x0000000000000080; /**< window is maximized */
SDL_WINDOW_MOUSE_GRABBED :: 0x0000000000000100; /**< window has grabbed mouse input */
SDL_WINDOW_INPUT_FOCUS :: 0x0000000000000200; /**< window has input focus */
SDL_WINDOW_MOUSE_FOCUS :: 0x0000000000000400; /**< window has mouse focus */
SDL_WINDOW_EXTERNAL :: 0x0000000000000800; /**< window not created by SDL */
SDL_WINDOW_MODAL :: 0x0000000000001000; /**< window is modal */
SDL_WINDOW_HIGH_PIXEL_DENSITY :: 0x0000000000002000; /**< window uses high pixel density back buffer if possible */
SDL_WINDOW_MOUSE_CAPTURE :: 0x0000000000004000; /**< window has mouse captured (unrelated to MOUSE_GRABBED) */
SDL_WINDOW_MOUSE_RELATIVE_MODE :: 0x0000000000008000; /**< window has relative mode enabled */
SDL_WINDOW_ALWAYS_ON_TOP :: 0x0000000000010000; /**< window should always be above others */
SDL_WINDOW_UTILITY :: 0x0000000000020000; /**< window should be treated as a utility window, not showing in the task bar and window list */
SDL_WINDOW_TOOLTIP :: 0x0000000000040000; /**< window should be treated as a tooltip and does not get mouse or keyboard focus, requires a parent window */
SDL_WINDOW_POPUP_MENU :: 0x0000000000080000; /**< window should be treated as a popup menu, requires a parent window */
SDL_WINDOW_KEYBOARD_GRABBED :: 0x0000000000100000; /**< window has grabbed keyboard input */
SDL_WINDOW_VULKAN :: 0x0000000010000000; /**< window usable for Vulkan surface */
SDL_WINDOW_METAL :: 0x0000000020000000; /**< window usable for Metal view */
SDL_WINDOW_TRANSPARENT :: 0x0000000040000000; /**< window with transparent buffer */
SDL_WINDOW_NOT_FOCUSABLE :: 0x0000000080000000; /**< window should not be focusable */
//SDL_GL_GetProcAddress :: (proc: *u8) -> *void #foreign sdl3_static;
#if OS == .WINDOWS {
#load "windows.jai";
} else #if OS == .MACOS {
#load "macos.jai";
// SDL_GL_GetProcAddress :: (proc: *u8) -> *void #foreign libsdl3;
// libsdl3 :: #library "macos/libSDL3";
// #library,system,link_always "libdl";
// #library,system,link_always "libm";
} else #if OS == .LINUX {
#load "linux.jai";
sdl3 :: #library "linux/libSDL3";
}
#scope_module
#import "vulkan";