dart_sdl 0.4.0 dart_sdl: ^0.4.0 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
- SDL_GetWindowFromID
2D Accelerated Rendering #
Pixel Formats and Conversion Routines #
Rectangle Functions #
Surface Creation and Simple Drawing #
Platform-specific Window Management #
Clipboard Handling #
Functions
Sdl
class
Vulkan Support #
Event Handling #
Classes
Classes have been created to reflect every member of the SDL_EventType enumeration.
Functions
Sdl
class
Keyboard Support #
Enumerations
Functions
Sdl
class
Window
class
Mouse Support #
Functions
Sdl
class
- SDL_CaptureMouse
- SDL_GetMouseFocus
- SDL_GetRelativeMouseMode
- SDL_SetRelativeMouseMode
- SDL_ShowCursor
- SDL_WarpMouseGlobal
Window
class
Joystick Support #
Classes
Functions
Sdl
class
Joystick
class
- SDL_JoystickClose
- SDL_JoystickCurrentPowerLevel
- SDL_JoystickGetAttached
- SDL_JoystickGetAxis
- SDL_JoystickGetBall
- SDL_JoystickGetButton
- SDL_JoystickGetHat
- SDL_JoystickName
- SDL_JoystickNumAxes
- SDL_JoystickNumBalls
- SDL_JoystickNumButtons
- SDL_JoystickNumHats
- SDL_JoystickInstanceID
- SDL_GameControllerFromInstanceID
Game Controller Support #
Enumerations #
Functions
Sdl
class
- SDL_GameControllerNameForIndex
- SDL_GameControllerOpen
- SDL_IsGameController
- SDL_GameControllerEventState
SdlGameControllerAxisValues
extension
SdlGameControllerButtonValues
extension
SdlStringValues
extension
GameController
class
- SDL_GameControllerClose
- SDL_GameControllerGetAttached
- SDL_GameControllerGetAxis
- SDL_GameControllerGetButton
- SDL_GameControllerGetJoystick
- SDL_GameControllerName
Sensors #
Functions
Sdl
class
Force Feedback Support #
Classes
Enums
Functions
Sdl
class
Haptic
class
- SDL_HapticClose
- SDL_HapticDestroyEffect
- SDL_HapticGetEffectStatus
- SDL_HapticEffectSupported
- SDL_HapticIndex
- SDL_HapticName
- SDL_HapticNewEffect
- SDL_HapticNumAxes
- SDL_HapticNumEffects
- SDL_HapticNumEffectsPlaying
- SDL_HapticPause
- SDL_HapticQuery
- SDL_HapticRumbleInit
- SDL_HapticRumblePlay
- SDL_HapticRumbleStop
- SDL_HapticRumbleSupported
- SDL_HapticRunEffect
- SDL_HapticSetAutocenter
- SDL_HapticSetGain
- SDL_HapticStopAll
- SDL_HapticStopEffect
- SDL_HapticUnpause
- SDL_HapticUpdateEffect
Joystick
class
Audio Device Management, Playing and Recording #
Classes
AudioDriver
AudioDevice
OpenAudioDevice
- SDL_AudioSpec
WaveFile
Enumerations
Functions
Sdl
class
- SDL_GetNumAudioDrivers
- SDL_GetCurrentAudioDriver
- SDL_GetNumAudioDevices
outputAudioDevices
inputAudioDevices
- SDL_OpenAudioDevice
AudioDriver
class
AudioDevice
class
OpenAudioDevice
class
- SDL_ClearQueuedAudio
- SDL_CloseAudioDevice
- SDL_GetAudioDeviceStatus
- SDL_GetQueuedAudioSize
- SDL_LockAudioDevice
- SDL_UnlockAudioDevice
- SDL_PauseAudioDevice
- SDL_QueueAudio