Class SDL

java.lang.Object
arc.backend.sdl.jni.SDL

public class SDL extends Object
  • Field Details

  • 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

      public static boolean SDL_SetHint(String name, String value)
    • SDL_GetCompiledVersion

      public static void SDL_GetCompiledVersion(int[] values)
    • SDL_GetVersion

      public static void SDL_GetVersion(int[] values)
    • SDL_GetError

      public static String SDL_GetError()
    • SDL_SetClipboardText

      public static int SDL_SetClipboardText(String text)
    • SDL_GetClipboardText

      public static String SDL_GetClipboardText()
    • SDL_CreateWindow

      public static long SDL_CreateWindow(String title, int w, int h, int flags)
    • 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

      public static void SDL_SetWindowTitle(long handle, String title)
    • SDL_CreateRGBSurfaceFrom

      public static long SDL_CreateRGBSurfaceFrom(ByteBuffer bytes, int width, int height)
    • 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

      public static int SDL_ShowSimpleMessageBox(int flags, String title, String message)
    • 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

      public static boolean SDL_GL_ExtensionSupported(String exte)
    • 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)