Package arc.backend.sdl.jni
Class SDL
java.lang.Object
arc.backend.sdl.jni.SDL
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
SDL_CreateColorCursor
(long surface, int hotx, int hoty) static long
SDL_CreateRGBSurfaceFrom
(ByteBuffer bytes, int width, int height) static long
SDL_CreateSystemCursor
(int type) static long
SDL_CreateWindow
(String title, int w, int h, int flags) static void
SDL_DestroyWindow
(long handle) static void
SDL_FreeCursor
(long handle) static void
SDL_FreeSurface
(long handle) static String
static void
SDL_GetCompiledVersion
(int[] values) static int
SDL_GetDisplayBounds
(int display, int[] xywh) static int
SDL_GetDisplayUsableBounds
(int display, int[] xywh) static String
static int
static void
SDL_GetVersion
(int[] values) static int
SDL_GetWindowDisplayIndex
(long handle) static int
SDL_GetWindowFlags
(long handle) static long
SDL_GL_CreateContext
(long window) static boolean
static void
SDL_GL_GetDrawableSize
(long window, int[] values) static int
SDL_GL_SetAttribute
(int attribute, int value) static int
SDL_GL_SetSwapInterval
(int on) static void
SDL_GL_SwapWindow
(long window) static int
SDL_Init
(int flags) static int
SDL_InitSubSystem
(int flags) static void
SDL_MaximizeWindow
(long handle) static void
SDL_MinimizeWindow
(long handle) static boolean
SDL_PollEvent
(int[] data) Since passing in or returning a class here would be a pain, I have to resort to an int array.static void
SDL_Quit()
static void
SDL_QuitSubSystem
(int flags) static void
SDL_RestoreWindow
(long handle) static int
SDL_SetClipboardText
(String text) static void
SDL_SetCursor
(long handle) static boolean
SDL_SetHint
(String name, String value) static void
SDL_SetTextInputRect
(int x, int y, int w, int h) static void
SDL_SetWindowBordered
(long handle, boolean bordered) static int
SDL_SetWindowFullscreen
(long handle, int flags) static void
SDL_SetWindowIcon
(long handle, long surface) static void
SDL_SetWindowPosition
(long handle, int x, int y) static void
SDL_SetWindowSize
(long handle, int w, int h) static void
SDL_SetWindowTitle
(long handle, String title) static int
SDL_ShowSimpleMessageBox
(int flags, String title, String message) static void
static void
static int
SDL_WasInit
(int flags)
-
Field Details
-
SDL_INIT_TIMER
public static final int SDL_INIT_TIMER- See Also:
-
SDL_INIT_AUDIO
public static final int SDL_INIT_AUDIO- See Also:
-
SDL_INIT_VIDEO
public static final int SDL_INIT_VIDEO- See Also:
-
SDL_INIT_JOYSTICK
public static final int SDL_INIT_JOYSTICK- See Also:
-
SDL_INIT_HAPTIC
public static final int SDL_INIT_HAPTIC- See Also:
-
SDL_INIT_GAMECONTROLLER
public static final int SDL_INIT_GAMECONTROLLER- See Also:
-
SDL_INIT_EVENTS
public static final int SDL_INIT_EVENTS- See Also:
-
SDL_INIT_NOPARACHUTE
public static final int SDL_INIT_NOPARACHUTE- See Also:
-
SDL_INIT_EVERYTHING
public static final int SDL_INIT_EVERYTHING- See Also:
-
SDL_WINDOW_FULLSCREEN
public static final int SDL_WINDOW_FULLSCREEN- See Also:
-
SDL_WINDOW_OPENGL
public static final int SDL_WINDOW_OPENGL- See Also:
-
SDL_WINDOW_SHOWN
public static final int SDL_WINDOW_SHOWN- See Also:
-
SDL_WINDOW_HIDDEN
public static final int SDL_WINDOW_HIDDEN- See Also:
-
SDL_WINDOW_BORDERLESS
public static final int SDL_WINDOW_BORDERLESS- See Also:
-
SDL_WINDOW_RESIZABLE
public static final int SDL_WINDOW_RESIZABLE- See Also:
-
SDL_WINDOW_MINIMIZED
public static final int SDL_WINDOW_MINIMIZED- See Also:
-
SDL_WINDOW_MAXIMIZED
public static final int SDL_WINDOW_MAXIMIZED- See Also:
-
SDL_WINDOW_INPUT_GRABBED
public static final int SDL_WINDOW_INPUT_GRABBED- See Also:
-
SDL_WINDOW_INPUT_FOCUS
public static final int SDL_WINDOW_INPUT_FOCUS- See Also:
-
SDL_WINDOW_MOUSE_FOCUS
public static final int SDL_WINDOW_MOUSE_FOCUS- See Also:
-
SDL_WINDOW_FULLSCREEN_DESKTOP
public static final int SDL_WINDOW_FULLSCREEN_DESKTOP- See Also:
-
SDL_WINDOW_FOREIGN
public static final int SDL_WINDOW_FOREIGN- See Also:
-
SDL_WINDOW_ALLOW_HIGHDPI
public static final int SDL_WINDOW_ALLOW_HIGHDPI- See Also:
-
SDL_WINDOW_MOUSE_CAPTURE
public static final int SDL_WINDOW_MOUSE_CAPTURE- See Also:
-
SDL_WINDOWEVENT_NONE
public static final int SDL_WINDOWEVENT_NONE- See Also:
-
SDL_WINDOWEVENT_SHOWN
public static final int SDL_WINDOWEVENT_SHOWN- See Also:
-
SDL_WINDOWEVENT_HIDDEN
public static final int SDL_WINDOWEVENT_HIDDEN- See Also:
-
SDL_WINDOWEVENT_EXPOSED
public static final int SDL_WINDOWEVENT_EXPOSED- See Also:
-
SDL_WINDOWEVENT_MOVED
public static final int SDL_WINDOWEVENT_MOVED- See Also:
-
SDL_WINDOWEVENT_RESIZED
public static final int SDL_WINDOWEVENT_RESIZED- See Also:
-
SDL_WINDOWEVENT_SIZE_CHANGED
public static final int SDL_WINDOWEVENT_SIZE_CHANGED- See Also:
-
SDL_WINDOWEVENT_MINIMIZED
public static final int SDL_WINDOWEVENT_MINIMIZED- See Also:
-
SDL_WINDOWEVENT_MAXIMIZED
public static final int SDL_WINDOWEVENT_MAXIMIZED- See Also:
-
SDL_WINDOWEVENT_RESTORED
public static final int SDL_WINDOWEVENT_RESTORED- See Also:
-
SDL_WINDOWEVENT_ENTER
public static final int SDL_WINDOWEVENT_ENTER- See Also:
-
SDL_WINDOWEVENT_LEAVE
public static final int SDL_WINDOWEVENT_LEAVE- See Also:
-
SDL_WINDOWEVENT_FOCUS_GAINED
public static final int SDL_WINDOWEVENT_FOCUS_GAINED- See Also:
-
SDL_WINDOWEVENT_FOCUS_LOST
public static final int SDL_WINDOWEVENT_FOCUS_LOST- See Also:
-
SDL_WINDOWEVENT_CLOSE
public static final int SDL_WINDOWEVENT_CLOSE- See Also:
-
SDL_SYSTEM_CURSOR_ARROW
public static final int SDL_SYSTEM_CURSOR_ARROW- See Also:
-
SDL_SYSTEM_CURSOR_IBEAM
public static final int SDL_SYSTEM_CURSOR_IBEAM- See Also:
-
SDL_SYSTEM_CURSOR_WAIT
public static final int SDL_SYSTEM_CURSOR_WAIT- See Also:
-
SDL_SYSTEM_CURSOR_CROSSHAIR
public static final int SDL_SYSTEM_CURSOR_CROSSHAIR- See Also:
-
SDL_SYSTEM_CURSOR_WAITARROW
public static final int SDL_SYSTEM_CURSOR_WAITARROW- See Also:
-
SDL_SYSTEM_CURSOR_SIZENWSE
public static final int SDL_SYSTEM_CURSOR_SIZENWSE- See Also:
-
SDL_SYSTEM_CURSOR_SIZENESW
public static final int SDL_SYSTEM_CURSOR_SIZENESW- See Also:
-
SDL_SYSTEM_CURSOR_SIZEWE
public static final int SDL_SYSTEM_CURSOR_SIZEWE- See Also:
-
SDL_SYSTEM_CURSOR_SIZENS
public static final int SDL_SYSTEM_CURSOR_SIZENS- See Also:
-
SDL_SYSTEM_CURSOR_SIZEALL
public static final int SDL_SYSTEM_CURSOR_SIZEALL- See Also:
-
SDL_SYSTEM_CURSOR_NO
public static final int SDL_SYSTEM_CURSOR_NO- See Also:
-
SDL_SYSTEM_CURSOR_HAND
public static final int SDL_SYSTEM_CURSOR_HAND- See Also:
-
SDL_NUM_SYSTEM_CURSORS
public static final int SDL_NUM_SYSTEM_CURSORS- See Also:
-
SDL_MESSAGEBOX_ERROR
public static final int SDL_MESSAGEBOX_ERROR- See Also:
-
SDL_MESSAGEBOX_WARNING
public static final int SDL_MESSAGEBOX_WARNING- See Also:
-
SDL_MESSAGEBOX_INFORMATION
public static final int SDL_MESSAGEBOX_INFORMATION- See Also:
-
SDL_BUTTON_LEFT
public static final int SDL_BUTTON_LEFT- See Also:
-
SDL_BUTTON_MIDDLE
public static final int SDL_BUTTON_MIDDLE- See Also:
-
SDL_BUTTON_RIGHT
public static final int SDL_BUTTON_RIGHT- See Also:
-
SDL_BUTTON_X1
public static final int SDL_BUTTON_X1- See Also:
-
SDL_BUTTON_X2
public static final int SDL_BUTTON_X2- See Also:
-
SDL_EVENT_QUIT
public static final int SDL_EVENT_QUIT- See Also:
-
SDL_EVENT_WINDOW
public static final int SDL_EVENT_WINDOW- See Also:
-
SDL_EVENT_MOUSE_MOTION
public static final int SDL_EVENT_MOUSE_MOTION- See Also:
-
SDL_EVENT_MOUSE_BUTTON
public static final int SDL_EVENT_MOUSE_BUTTON- See Also:
-
SDL_EVENT_MOUSE_WHEEL
public static final int SDL_EVENT_MOUSE_WHEEL- See Also:
-
SDL_EVENT_KEYBOARD
public static final int SDL_EVENT_KEYBOARD- See Also:
-
SDL_EVENT_TEXT_INPUT
public static final int SDL_EVENT_TEXT_INPUT- See Also:
-
SDL_EVENT_TEXT_EDIT
public static final int SDL_EVENT_TEXT_EDIT- See Also:
-
SDL_EVENT_OTHER
public static final int SDL_EVENT_OTHER- See Also:
-
SDL_GL_RED_SIZE
public static final int SDL_GL_RED_SIZE- See Also:
-
SDL_GL_GREEN_SIZE
public static final int SDL_GL_GREEN_SIZE- See Also:
-
SDL_GL_BLUE_SIZE
public static final int SDL_GL_BLUE_SIZE- See Also:
-
SDL_GL_ALPHA_SIZE
public static final int SDL_GL_ALPHA_SIZE- See Also:
-
SDL_GL_BUFFER_SIZE
public static final int SDL_GL_BUFFER_SIZE- See Also:
-
SDL_GL_DOUBLEBUFFER
public static final int SDL_GL_DOUBLEBUFFER- See Also:
-
SDL_GL_DEPTH_SIZE
public static final int SDL_GL_DEPTH_SIZE- See Also:
-
SDL_GL_STENCIL_SIZE
public static final int SDL_GL_STENCIL_SIZE- See Also:
-
SDL_GL_CONTEXT_MAJOR_VERSION
public static final int SDL_GL_CONTEXT_MAJOR_VERSION- See Also:
-
SDL_GL_CONTEXT_MINOR_VERSION
public static final int SDL_GL_CONTEXT_MINOR_VERSION- See Also:
-
SDL_GL_MULTISAMPLEBUFFERS
public static final int SDL_GL_MULTISAMPLEBUFFERS- See Also:
-
SDL_GL_MULTISAMPLESAMPLES
public static final int SDL_GL_MULTISAMPLESAMPLES- See Also:
-
SDL_GL_CONTEXT_PROFILE_CORE
public static final int SDL_GL_CONTEXT_PROFILE_CORE- See Also:
-
SDL_GL_CONTEXT_PROFILE_MASK
public static final int SDL_GL_CONTEXT_PROFILE_MASK- See Also:
-
SDL_GL_CONTEXT_FLAGS
public static final int SDL_GL_CONTEXT_FLAGS- See Also:
-
-
Constructor Details
-
SDL
public SDL()
-
-
Method Details
-
SDL_Init
public static int SDL_Init(int flags) -
SDL_InitSubSystem
public static int SDL_InitSubSystem(int flags) -
SDL_QuitSubSystem
public static void SDL_QuitSubSystem(int flags) -
SDL_WasInit
public static int SDL_WasInit(int flags) -
SDL_Quit
public static void SDL_Quit() -
SDL_SetHint
-
SDL_GetCompiledVersion
public static void SDL_GetCompiledVersion(int[] values) -
SDL_GetVersion
public static void SDL_GetVersion(int[] values) -
SDL_GetError
-
SDL_SetClipboardText
-
SDL_GetClipboardText
-
SDL_CreateWindow
-
SDL_DestroyWindow
public static void SDL_DestroyWindow(long handle) -
SDL_SetWindowIcon
public static void SDL_SetWindowIcon(long handle, long surface) -
SDL_RestoreWindow
public static void SDL_RestoreWindow(long handle) -
SDL_MaximizeWindow
public static void SDL_MaximizeWindow(long handle) -
SDL_MinimizeWindow
public static void SDL_MinimizeWindow(long handle) -
SDL_SetWindowFullscreen
public static int SDL_SetWindowFullscreen(long handle, int flags) -
SDL_SetWindowBordered
public static void SDL_SetWindowBordered(long handle, boolean bordered) -
SDL_SetWindowSize
public static void SDL_SetWindowSize(long handle, int w, int h) -
SDL_SetWindowPosition
public static void SDL_SetWindowPosition(long handle, int x, int y) -
SDL_GetWindowDisplayIndex
public static int SDL_GetWindowDisplayIndex(long handle) -
SDL_GetDisplayUsableBounds
public static int SDL_GetDisplayUsableBounds(int display, int[] xywh) -
SDL_GetDisplayBounds
public static int SDL_GetDisplayBounds(int display, int[] xywh) -
SDL_GetNumVideoDisplays
public static int SDL_GetNumVideoDisplays() -
SDL_GetWindowFlags
public static int SDL_GetWindowFlags(long handle) -
SDL_SetWindowTitle
-
SDL_CreateRGBSurfaceFrom
-
SDL_CreateColorCursor
public static long SDL_CreateColorCursor(long surface, int hotx, int hoty) -
SDL_CreateSystemCursor
public static long SDL_CreateSystemCursor(int type) -
SDL_SetCursor
public static void SDL_SetCursor(long handle) -
SDL_FreeCursor
public static void SDL_FreeCursor(long handle) -
SDL_FreeSurface
public static void SDL_FreeSurface(long handle) -
SDL_ShowSimpleMessageBox
-
SDL_StartTextInput
public static void SDL_StartTextInput() -
SDL_StopTextInput
public static void SDL_StopTextInput() -
SDL_SetTextInputRect
public static void SDL_SetTextInputRect(int x, int y, int w, int h) -
SDL_PollEvent
public static boolean SDL_PollEvent(int[] data) Since passing in or returning a class here would be a pain, I have to resort to an int array.- Returns:
- whether the event was processed. If true is returned, the input data array is filled with the event data.
-
SDL_GL_SetAttribute
public static int SDL_GL_SetAttribute(int attribute, int value) -
SDL_GL_ExtensionSupported
-
SDL_GL_CreateContext
public static long SDL_GL_CreateContext(long window) -
SDL_GL_SetSwapInterval
public static int SDL_GL_SetSwapInterval(int on) -
SDL_GL_SwapWindow
public static void SDL_GL_SwapWindow(long window) -
SDL_GL_GetDrawableSize
public static void SDL_GL_GetDrawableSize(long window, int[] values)
-