dart_sdl 0.0.4 dart_sdl: ^0.0.4 copied to clipboard
Dart bindings for SDL.
dart_sdl #
This package wraps the SDL package.
I have been implementing functions as I needed them. As such, this library is not complete. I of course welcome issues.
Reading this document #
Since most names in Dart are camelCase translations from their SDL equivalents, only links to SDL functions are included.
For each section of the API, a link to the category is provided, followed by a few sections:
Classes #
In some cases it is necessary to create Dart-side classes to replace SDL structs. Links to the SDL originals should be listed in this section.
Enumerations #
Where an SDL enum has been translated to dart, a link to the original enum should be placed in this section.
Functions #
This section should contain subsections for each Dart class that methods are attached to.
Each section heading should be a link to the Dart class the method is attached to, and each entry in the function list should be a link to the original SDL function.
Progress #
Initialization and Shutdown #
Functions
Sdl
class
Configuration Variables #
Enumerations
Functions
Sdl
class
Error Handling #
Functions
Sdl
class
Log Handling #
Enumerations
Functions
Sdl
class
- SDL_Log
- SDL_LogCritical
- SDL_LogDebug
- SDL_LogError
- SDL_LogGetPriority
- SDL_LogInfo
- SDL_LogMessage
- SDL_LogResetPriorities
- SDL_LogSetAllPriority
- SDL_LogSetPriority
- SDL_LogVerbose
- SDL_LogWarn
Assertions #
Not implemented.
Querying SDL Version #
Classes
Functions
Sdl
class
Display and Window Management #
Classes
Enumerations
- SDL_BlendMode as
BlendMode
. - SDL_MessageBoxButtonFlags
- SDL_MessageBoxFlags
Functions
Sdl
class
- SDL_CreateWindow
- SDL_DestroyWindow
- SDL_GetNumVideoDisplays
- SDL_GetNumVideoDrivers
- SDL_GetVideoDriver
- SDL_GL_GetCurrentWindow
- SDL_ShowMessageBox
- SDL_ShowSimpleMessageBox
- SDL_IsScreenSaverEnabled
- SDL_DisableScreenSaver
- SDL_EnableScreenSaver
Display
class
- SDL_GetDisplayName
- SDL_GetDisplayBounds
- SDL_GetDisplayUsableBounds
- SDL_GetDesktopDisplayMode
- SDL_GetDisplayMode
Window
class
- SDL_GetWindowBordersSize
- SDL_GetWindowDisplayIndex
- SDL_GetWindowDisplayMode
- SDL_GetWindowFlags
- SDL_GetWindowGrab
- SDL_GetWindowID
- SDL_GetWindowMaximumSize
- SDL_GetWindowMinimumSize
- SDL_GetWindowOpacity
- SDL_GetWindowPosition
- SDL_GetWindowSize
- SDL_MaximizeWindow
- SDL_MinimizeWindow
- SDL_RaiseWindow
- SDL_RestoreWindow
- SDL_SetWindowBordered
- SDL_SetWindowBrightness
- SDL_SetWindowDisplayMode
- SDL_SetWindowFullscreen
- SDL_SetWindowGrab
- SDL_SetWindowInputFocus
- SDL_SetWindowMaximumSize
- SDL_SetWindowMinimumSize
- SDL_SetWindowModalFor
- SDL_SetWindowOpacity
- SDL_SetWindowPosition
- SDL_SetWindowResizable
- SDL_SetWindowSize
- SDL_SetWindowTitle
- SDL_ShowWindow