Skip to content

Instantly share code, notes, and snippets.

@keynmol
Created March 16, 2022 12:52
Show Gist options
  • Save keynmol/f38d8eadfa961a92d16ddf6d6b0c25d2 to your computer and use it in GitHub Desktop.
Save keynmol/f38d8eadfa961a92d16ddf6d6b0c25d2 to your computer and use it in GitHub Desktop.
SDL bindings automatically generated
#include <string.h>
void __sn_wrap_libsdl_SDL_GameControllerGetBindForAxis(SDL_GameController * gamecontroller, SDL_GameControllerAxis axis, SDL_GameControllerButtonBind *____return) {
SDL_GameControllerButtonBind ____ret = SDL_GameControllerGetBindForAxis(gamecontroller, axis);
memcpy(____return, &____ret, sizeof(SDL_GameControllerButtonBind));
}
void __sn_wrap_libsdl_SDL_GameControllerGetBindForButton(SDL_GameController * gamecontroller, SDL_GameControllerButton button, SDL_GameControllerButtonBind *____return) {
SDL_GameControllerButtonBind ____ret = SDL_GameControllerGetBindForButton(gamecontroller, button);
memcpy(____return, &____ret, sizeof(SDL_GameControllerButtonBind));
}
char * __sn_wrap_libsdl_SDL_GameControllerMappingForGUID(SDL_JoystickGUID *guid) {
return SDL_GameControllerMappingForGUID(*guid);
};
void __sn_wrap_libsdl_SDL_JoystickGetDeviceGUID(int device_index, SDL_JoystickGUID *____return) {
SDL_JoystickGUID ____ret = SDL_JoystickGetDeviceGUID(device_index);
memcpy(____return, &____ret, sizeof(SDL_JoystickGUID));
}
void __sn_wrap_libsdl_SDL_JoystickGetGUID(SDL_Joystick * joystick, SDL_JoystickGUID *____return) {
SDL_JoystickGUID ____ret = SDL_JoystickGetGUID(joystick);
memcpy(____return, &____ret, sizeof(SDL_JoystickGUID));
}
void __sn_wrap_libsdl_SDL_JoystickGetGUIDFromString(const char * pchGUID, SDL_JoystickGUID *____return) {
SDL_JoystickGUID ____ret = SDL_JoystickGetGUIDFromString(pchGUID);
memcpy(____return, &____ret, sizeof(SDL_JoystickGUID));
}
void __sn_wrap_libsdl_SDL_JoystickGetGUIDString(SDL_JoystickGUID *guid, char * pszGUID, int cbGUID) {
SDL_JoystickGetGUIDString(*guid, pszGUID, cbGUID);
};
package libsdl
import scala.scalanative.unsafe.*
import scala.scalanative.unsigned.*
import scalanative.libc.*
object predef:
trait CEnum[T](using eq: T =:= Int):
given Tag[T] = Tag.Int.asInstanceOf[Tag[T]]
extension (t: T) def int: CInt = eq.apply(t)
trait CEnumU[T](using eq: T =:= UInt):
given Tag[T] = Tag.UInt.asInstanceOf[Tag[T]]
extension (t: T)
def int: CInt = eq.apply(t).toInt
def uint: CUnsignedInt = eq.apply(t)
object types:
import predef.*
opaque type SDL_ArrayOrder = CUnsignedInt
object SDL_ArrayOrder extends CEnumU[SDL_ArrayOrder]:
given _tag: Tag[SDL_ArrayOrder] = Tag.UInt
inline def define(inline a: Long): SDL_ArrayOrder = a.toUInt
val SDL_ARRAYORDER_NONE = define(0)
val SDL_ARRAYORDER_RGB = define(1)
val SDL_ARRAYORDER_RGBA = define(2)
val SDL_ARRAYORDER_ARGB = define(3)
val SDL_ARRAYORDER_BGR = define(4)
val SDL_ARRAYORDER_BGRA = define(5)
val SDL_ARRAYORDER_ABGR = define(6)
extension (a: SDL_ArrayOrder)
inline def &(b: SDL_ArrayOrder): SDL_ArrayOrder = a & b
inline def |(b: SDL_ArrayOrder): SDL_ArrayOrder = a | b
inline def is(b: SDL_ArrayOrder): Boolean = (a & b) == b
opaque type SDL_AssertState = CUnsignedInt
object SDL_AssertState extends CEnumU[SDL_AssertState]:
given _tag: Tag[SDL_AssertState] = Tag.UInt
inline def define(inline a: Long): SDL_AssertState = a.toUInt
val SDL_ASSERTION_RETRY = define(0)
val SDL_ASSERTION_BREAK = define(1)
val SDL_ASSERTION_ABORT = define(2)
val SDL_ASSERTION_IGNORE = define(3)
val SDL_ASSERTION_ALWAYS_IGNORE = define(4)
extension (a: SDL_AssertState)
inline def &(b: SDL_AssertState): SDL_AssertState = a & b
inline def |(b: SDL_AssertState): SDL_AssertState = a | b
inline def is(b: SDL_AssertState): Boolean = (a & b) == b
opaque type SDL_AudioStatus = CUnsignedInt
object SDL_AudioStatus extends CEnumU[SDL_AudioStatus]:
given _tag: Tag[SDL_AudioStatus] = Tag.UInt
inline def define(inline a: Long): SDL_AudioStatus = a.toUInt
val SDL_AUDIO_STOPPED = define(0)
val SDL_AUDIO_PLAYING = define(1)
val SDL_AUDIO_PAUSED = define(2)
extension (a: SDL_AudioStatus)
inline def &(b: SDL_AudioStatus): SDL_AudioStatus = a & b
inline def |(b: SDL_AudioStatus): SDL_AudioStatus = a | b
inline def is(b: SDL_AudioStatus): Boolean = (a & b) == b
opaque type SDL_BitmapOrder = CUnsignedInt
object SDL_BitmapOrder extends CEnumU[SDL_BitmapOrder]:
given _tag: Tag[SDL_BitmapOrder] = Tag.UInt
inline def define(inline a: Long): SDL_BitmapOrder = a.toUInt
val SDL_BITMAPORDER_NONE = define(0)
val SDL_BITMAPORDER_4321 = define(1)
val SDL_BITMAPORDER_1234 = define(2)
extension (a: SDL_BitmapOrder)
inline def &(b: SDL_BitmapOrder): SDL_BitmapOrder = a & b
inline def |(b: SDL_BitmapOrder): SDL_BitmapOrder = a | b
inline def is(b: SDL_BitmapOrder): Boolean = (a & b) == b
opaque type SDL_BlendFactor = CUnsignedInt
object SDL_BlendFactor extends CEnumU[SDL_BlendFactor]:
given _tag: Tag[SDL_BlendFactor] = Tag.UInt
inline def define(inline a: Long): SDL_BlendFactor = a.toUInt
val SDL_BLENDFACTOR_ZERO = define(1)
val SDL_BLENDFACTOR_ONE = define(2)
val SDL_BLENDFACTOR_SRC_COLOR = define(3)
val SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR = define(4)
val SDL_BLENDFACTOR_SRC_ALPHA = define(5)
val SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA = define(6)
val SDL_BLENDFACTOR_DST_COLOR = define(7)
val SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR = define(8)
val SDL_BLENDFACTOR_DST_ALPHA = define(9)
val SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA = define(10)
extension (a: SDL_BlendFactor)
inline def &(b: SDL_BlendFactor): SDL_BlendFactor = a & b
inline def |(b: SDL_BlendFactor): SDL_BlendFactor = a | b
inline def is(b: SDL_BlendFactor): Boolean = (a & b) == b
opaque type SDL_BlendMode = CUnsignedInt
object SDL_BlendMode extends CEnumU[SDL_BlendMode]:
given _tag: Tag[SDL_BlendMode] = Tag.UInt
inline def define(inline a: Long): SDL_BlendMode = a.toUInt
val SDL_BLENDMODE_NONE = define(0)
val SDL_BLENDMODE_BLEND = define(1)
val SDL_BLENDMODE_ADD = define(2)
val SDL_BLENDMODE_MOD = define(4)
val SDL_BLENDMODE_MUL = define(8)
val SDL_BLENDMODE_INVALID = define(2147483647)
extension (a: SDL_BlendMode)
inline def &(b: SDL_BlendMode): SDL_BlendMode = a & b
inline def |(b: SDL_BlendMode): SDL_BlendMode = a | b
inline def is(b: SDL_BlendMode): Boolean = (a & b) == b
opaque type SDL_BlendOperation = CUnsignedInt
object SDL_BlendOperation extends CEnumU[SDL_BlendOperation]:
given _tag: Tag[SDL_BlendOperation] = Tag.UInt
inline def define(inline a: Long): SDL_BlendOperation = a.toUInt
val SDL_BLENDOPERATION_ADD = define(1)
val SDL_BLENDOPERATION_SUBTRACT = define(2)
val SDL_BLENDOPERATION_REV_SUBTRACT = define(3)
val SDL_BLENDOPERATION_MINIMUM = define(4)
val SDL_BLENDOPERATION_MAXIMUM = define(5)
extension (a: SDL_BlendOperation)
inline def &(b: SDL_BlendOperation): SDL_BlendOperation = a & b
inline def |(b: SDL_BlendOperation): SDL_BlendOperation = a | b
inline def is(b: SDL_BlendOperation): Boolean = (a & b) == b
opaque type SDL_DUMMY_ENUM = CUnsignedInt
object SDL_DUMMY_ENUM extends CEnumU[SDL_DUMMY_ENUM]:
given _tag: Tag[SDL_DUMMY_ENUM] = Tag.UInt
inline def define(inline a: Long): SDL_DUMMY_ENUM = a.toUInt
val DUMMY_ENUM_VALUE = define(0)
extension (a: SDL_DUMMY_ENUM)
inline def &(b: SDL_DUMMY_ENUM): SDL_DUMMY_ENUM = a & b
inline def |(b: SDL_DUMMY_ENUM): SDL_DUMMY_ENUM = a | b
inline def is(b: SDL_DUMMY_ENUM): Boolean = (a & b) == b
opaque type SDL_DisplayEventID = CUnsignedInt
object SDL_DisplayEventID extends CEnumU[SDL_DisplayEventID]:
given _tag: Tag[SDL_DisplayEventID] = Tag.UInt
inline def define(inline a: Long): SDL_DisplayEventID = a.toUInt
val SDL_DISPLAYEVENT_NONE = define(0)
val SDL_DISPLAYEVENT_ORIENTATION = define(1)
val SDL_DISPLAYEVENT_CONNECTED = define(2)
val SDL_DISPLAYEVENT_DISCONNECTED = define(3)
extension (a: SDL_DisplayEventID)
inline def &(b: SDL_DisplayEventID): SDL_DisplayEventID = a & b
inline def |(b: SDL_DisplayEventID): SDL_DisplayEventID = a | b
inline def is(b: SDL_DisplayEventID): Boolean = (a & b) == b
opaque type SDL_DisplayOrientation = CUnsignedInt
object SDL_DisplayOrientation extends CEnumU[SDL_DisplayOrientation]:
given _tag: Tag[SDL_DisplayOrientation] = Tag.UInt
inline def define(inline a: Long): SDL_DisplayOrientation = a.toUInt
val SDL_ORIENTATION_UNKNOWN = define(0)
val SDL_ORIENTATION_LANDSCAPE = define(1)
val SDL_ORIENTATION_LANDSCAPE_FLIPPED = define(2)
val SDL_ORIENTATION_PORTRAIT = define(3)
val SDL_ORIENTATION_PORTRAIT_FLIPPED = define(4)
extension (a: SDL_DisplayOrientation)
inline def &(b: SDL_DisplayOrientation): SDL_DisplayOrientation = a & b
inline def |(b: SDL_DisplayOrientation): SDL_DisplayOrientation = a | b
inline def is(b: SDL_DisplayOrientation): Boolean = (a & b) == b
opaque type SDL_EventType = CUnsignedInt
object SDL_EventType extends CEnumU[SDL_EventType]:
given _tag: Tag[SDL_EventType] = Tag.UInt
inline def define(inline a: Long): SDL_EventType = a.toUInt
val SDL_FIRSTEVENT = define(0)
val SDL_QUIT = define(256)
val SDL_APP_TERMINATING = define(257)
val SDL_APP_LOWMEMORY = define(258)
val SDL_APP_WILLENTERBACKGROUND = define(259)
val SDL_APP_DIDENTERBACKGROUND = define(260)
val SDL_APP_WILLENTERFOREGROUND = define(261)
val SDL_APP_DIDENTERFOREGROUND = define(262)
val SDL_LOCALECHANGED = define(263)
val SDL_DISPLAYEVENT = define(336)
val SDL_WINDOWEVENT = define(512)
val SDL_SYSWMEVENT = define(513)
val SDL_KEYDOWN = define(768)
val SDL_KEYUP = define(769)
val SDL_TEXTEDITING = define(770)
val SDL_TEXTINPUT = define(771)
val SDL_KEYMAPCHANGED = define(772)
val SDL_TEXTEDITING_EXT = define(773)
val SDL_MOUSEMOTION = define(1024)
val SDL_MOUSEBUTTONDOWN = define(1025)
val SDL_MOUSEBUTTONUP = define(1026)
val SDL_MOUSEWHEEL = define(1027)
val SDL_JOYAXISMOTION = define(1536)
val SDL_JOYBALLMOTION = define(1537)
val SDL_JOYHATMOTION = define(1538)
val SDL_JOYBUTTONDOWN = define(1539)
val SDL_JOYBUTTONUP = define(1540)
val SDL_JOYDEVICEADDED = define(1541)
val SDL_JOYDEVICEREMOVED = define(1542)
val SDL_CONTROLLERAXISMOTION = define(1616)
val SDL_CONTROLLERBUTTONDOWN = define(1617)
val SDL_CONTROLLERBUTTONUP = define(1618)
val SDL_CONTROLLERDEVICEADDED = define(1619)
val SDL_CONTROLLERDEVICEREMOVED = define(1620)
val SDL_CONTROLLERDEVICEREMAPPED = define(1621)
val SDL_CONTROLLERTOUCHPADDOWN = define(1622)
val SDL_CONTROLLERTOUCHPADMOTION = define(1623)
val SDL_CONTROLLERTOUCHPADUP = define(1624)
val SDL_CONTROLLERSENSORUPDATE = define(1625)
val SDL_FINGERDOWN = define(1792)
val SDL_FINGERUP = define(1793)
val SDL_FINGERMOTION = define(1794)
val SDL_DOLLARGESTURE = define(2048)
val SDL_DOLLARRECORD = define(2049)
val SDL_MULTIGESTURE = define(2050)
val SDL_CLIPBOARDUPDATE = define(2304)
val SDL_DROPFILE = define(4096)
val SDL_DROPTEXT = define(4097)
val SDL_DROPBEGIN = define(4098)
val SDL_DROPCOMPLETE = define(4099)
val SDL_AUDIODEVICEADDED = define(4352)
val SDL_AUDIODEVICEREMOVED = define(4353)
val SDL_SENSORUPDATE = define(4608)
val SDL_RENDER_TARGETS_RESET = define(8192)
val SDL_RENDER_DEVICE_RESET = define(8193)
val SDL_POLLSENTINEL = define(32512)
val SDL_USEREVENT = define(32768)
val SDL_LASTEVENT = define(65535)
extension (a: SDL_EventType)
inline def &(b: SDL_EventType): SDL_EventType = a & b
inline def |(b: SDL_EventType): SDL_EventType = a | b
inline def is(b: SDL_EventType): Boolean = (a & b) == b
opaque type SDL_FlashOperation = CUnsignedInt
object SDL_FlashOperation extends CEnumU[SDL_FlashOperation]:
given _tag: Tag[SDL_FlashOperation] = Tag.UInt
inline def define(inline a: Long): SDL_FlashOperation = a.toUInt
val SDL_FLASH_CANCEL = define(0)
val SDL_FLASH_BRIEFLY = define(1)
val SDL_FLASH_UNTIL_FOCUSED = define(2)
extension (a: SDL_FlashOperation)
inline def &(b: SDL_FlashOperation): SDL_FlashOperation = a & b
inline def |(b: SDL_FlashOperation): SDL_FlashOperation = a | b
inline def is(b: SDL_FlashOperation): Boolean = (a & b) == b
opaque type SDL_GLContextResetNotification = CUnsignedInt
object SDL_GLContextResetNotification extends CEnumU[SDL_GLContextResetNotification]:
given _tag: Tag[SDL_GLContextResetNotification] = Tag.UInt
inline def define(inline a: Long): SDL_GLContextResetNotification = a.toUInt
val SDL_GL_CONTEXT_RESET_NO_NOTIFICATION = define(0)
val SDL_GL_CONTEXT_RESET_LOSE_CONTEXT = define(1)
extension (a: SDL_GLContextResetNotification)
inline def &(b: SDL_GLContextResetNotification): SDL_GLContextResetNotification = a & b
inline def |(b: SDL_GLContextResetNotification): SDL_GLContextResetNotification = a | b
inline def is(b: SDL_GLContextResetNotification): Boolean = (a & b) == b
opaque type SDL_GLattr = CUnsignedInt
object SDL_GLattr extends CEnumU[SDL_GLattr]:
given _tag: Tag[SDL_GLattr] = Tag.UInt
inline def define(inline a: Long): SDL_GLattr = a.toUInt
val SDL_GL_RED_SIZE = define(0)
val SDL_GL_GREEN_SIZE = define(1)
val SDL_GL_BLUE_SIZE = define(2)
val SDL_GL_ALPHA_SIZE = define(3)
val SDL_GL_BUFFER_SIZE = define(4)
val SDL_GL_DOUBLEBUFFER = define(5)
val SDL_GL_DEPTH_SIZE = define(6)
val SDL_GL_STENCIL_SIZE = define(7)
val SDL_GL_ACCUM_RED_SIZE = define(8)
val SDL_GL_ACCUM_GREEN_SIZE = define(9)
val SDL_GL_ACCUM_BLUE_SIZE = define(10)
val SDL_GL_ACCUM_ALPHA_SIZE = define(11)
val SDL_GL_STEREO = define(12)
val SDL_GL_MULTISAMPLEBUFFERS = define(13)
val SDL_GL_MULTISAMPLESAMPLES = define(14)
val SDL_GL_ACCELERATED_VISUAL = define(15)
val SDL_GL_RETAINED_BACKING = define(16)
val SDL_GL_CONTEXT_MAJOR_VERSION = define(17)
val SDL_GL_CONTEXT_MINOR_VERSION = define(18)
val SDL_GL_CONTEXT_EGL = define(19)
val SDL_GL_CONTEXT_FLAGS = define(20)
val SDL_GL_CONTEXT_PROFILE_MASK = define(21)
val SDL_GL_SHARE_WITH_CURRENT_CONTEXT = define(22)
val SDL_GL_FRAMEBUFFER_SRGB_CAPABLE = define(23)
val SDL_GL_CONTEXT_RELEASE_BEHAVIOR = define(24)
val SDL_GL_CONTEXT_RESET_NOTIFICATION = define(25)
val SDL_GL_CONTEXT_NO_ERROR = define(26)
extension (a: SDL_GLattr)
inline def &(b: SDL_GLattr): SDL_GLattr = a & b
inline def |(b: SDL_GLattr): SDL_GLattr = a | b
inline def is(b: SDL_GLattr): Boolean = (a & b) == b
opaque type SDL_GLcontextFlag = CUnsignedInt
object SDL_GLcontextFlag extends CEnumU[SDL_GLcontextFlag]:
given _tag: Tag[SDL_GLcontextFlag] = Tag.UInt
inline def define(inline a: Long): SDL_GLcontextFlag = a.toUInt
val SDL_GL_CONTEXT_DEBUG_FLAG = define(1)
val SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG = define(2)
val SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG = define(4)
val SDL_GL_CONTEXT_RESET_ISOLATION_FLAG = define(8)
extension (a: SDL_GLcontextFlag)
inline def &(b: SDL_GLcontextFlag): SDL_GLcontextFlag = a & b
inline def |(b: SDL_GLcontextFlag): SDL_GLcontextFlag = a | b
inline def is(b: SDL_GLcontextFlag): Boolean = (a & b) == b
opaque type SDL_GLcontextReleaseFlag = CUnsignedInt
object SDL_GLcontextReleaseFlag extends CEnumU[SDL_GLcontextReleaseFlag]:
given _tag: Tag[SDL_GLcontextReleaseFlag] = Tag.UInt
inline def define(inline a: Long): SDL_GLcontextReleaseFlag = a.toUInt
val SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE = define(0)
val SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH = define(1)
extension (a: SDL_GLcontextReleaseFlag)
inline def &(b: SDL_GLcontextReleaseFlag): SDL_GLcontextReleaseFlag = a & b
inline def |(b: SDL_GLcontextReleaseFlag): SDL_GLcontextReleaseFlag = a | b
inline def is(b: SDL_GLcontextReleaseFlag): Boolean = (a & b) == b
opaque type SDL_GLprofile = CUnsignedInt
object SDL_GLprofile extends CEnumU[SDL_GLprofile]:
given _tag: Tag[SDL_GLprofile] = Tag.UInt
inline def define(inline a: Long): SDL_GLprofile = a.toUInt
val SDL_GL_CONTEXT_PROFILE_CORE = define(1)
val SDL_GL_CONTEXT_PROFILE_COMPATIBILITY = define(2)
val SDL_GL_CONTEXT_PROFILE_ES = define(4)
extension (a: SDL_GLprofile)
inline def &(b: SDL_GLprofile): SDL_GLprofile = a & b
inline def |(b: SDL_GLprofile): SDL_GLprofile = a | b
inline def is(b: SDL_GLprofile): Boolean = (a & b) == b
opaque type SDL_GameControllerAxis = CInt
object SDL_GameControllerAxis extends CEnum[SDL_GameControllerAxis]:
given _tag: Tag[SDL_GameControllerAxis] = Tag.Int
inline def define(inline a: CInt): SDL_GameControllerAxis = a
val SDL_CONTROLLER_AXIS_INVALID = define(-1)
val SDL_CONTROLLER_AXIS_LEFTX = define(0)
val SDL_CONTROLLER_AXIS_LEFTY = define(1)
val SDL_CONTROLLER_AXIS_RIGHTX = define(2)
val SDL_CONTROLLER_AXIS_RIGHTY = define(3)
val SDL_CONTROLLER_AXIS_TRIGGERLEFT = define(4)
val SDL_CONTROLLER_AXIS_TRIGGERRIGHT = define(5)
val SDL_CONTROLLER_AXIS_MAX = define(6)
extension (a: SDL_GameControllerAxis)
inline def &(b: SDL_GameControllerAxis): SDL_GameControllerAxis = a & b
inline def |(b: SDL_GameControllerAxis): SDL_GameControllerAxis = a | b
inline def is(b: SDL_GameControllerAxis): Boolean = (a & b) == b
opaque type SDL_GameControllerBindType = CUnsignedInt
object SDL_GameControllerBindType extends CEnumU[SDL_GameControllerBindType]:
given _tag: Tag[SDL_GameControllerBindType] = Tag.UInt
inline def define(inline a: Long): SDL_GameControllerBindType = a.toUInt
val SDL_CONTROLLER_BINDTYPE_NONE = define(0)
val SDL_CONTROLLER_BINDTYPE_BUTTON = define(1)
val SDL_CONTROLLER_BINDTYPE_AXIS = define(2)
val SDL_CONTROLLER_BINDTYPE_HAT = define(3)
extension (a: SDL_GameControllerBindType)
inline def &(b: SDL_GameControllerBindType): SDL_GameControllerBindType = a & b
inline def |(b: SDL_GameControllerBindType): SDL_GameControllerBindType = a | b
inline def is(b: SDL_GameControllerBindType): Boolean = (a & b) == b
opaque type SDL_GameControllerButton = CInt
object SDL_GameControllerButton extends CEnum[SDL_GameControllerButton]:
given _tag: Tag[SDL_GameControllerButton] = Tag.Int
inline def define(inline a: CInt): SDL_GameControllerButton = a
val SDL_CONTROLLER_BUTTON_INVALID = define(-1)
val SDL_CONTROLLER_BUTTON_A = define(0)
val SDL_CONTROLLER_BUTTON_B = define(1)
val SDL_CONTROLLER_BUTTON_X = define(2)
val SDL_CONTROLLER_BUTTON_Y = define(3)
val SDL_CONTROLLER_BUTTON_BACK = define(4)
val SDL_CONTROLLER_BUTTON_GUIDE = define(5)
val SDL_CONTROLLER_BUTTON_START = define(6)
val SDL_CONTROLLER_BUTTON_LEFTSTICK = define(7)
val SDL_CONTROLLER_BUTTON_RIGHTSTICK = define(8)
val SDL_CONTROLLER_BUTTON_LEFTSHOULDER = define(9)
val SDL_CONTROLLER_BUTTON_RIGHTSHOULDER = define(10)
val SDL_CONTROLLER_BUTTON_DPAD_UP = define(11)
val SDL_CONTROLLER_BUTTON_DPAD_DOWN = define(12)
val SDL_CONTROLLER_BUTTON_DPAD_LEFT = define(13)
val SDL_CONTROLLER_BUTTON_DPAD_RIGHT = define(14)
val SDL_CONTROLLER_BUTTON_MISC1 = define(15)
val SDL_CONTROLLER_BUTTON_PADDLE1 = define(16)
val SDL_CONTROLLER_BUTTON_PADDLE2 = define(17)
val SDL_CONTROLLER_BUTTON_PADDLE3 = define(18)
val SDL_CONTROLLER_BUTTON_PADDLE4 = define(19)
val SDL_CONTROLLER_BUTTON_TOUCHPAD = define(20)
val SDL_CONTROLLER_BUTTON_MAX = define(21)
extension (a: SDL_GameControllerButton)
inline def &(b: SDL_GameControllerButton): SDL_GameControllerButton = a & b
inline def |(b: SDL_GameControllerButton): SDL_GameControllerButton = a | b
inline def is(b: SDL_GameControllerButton): Boolean = (a & b) == b
opaque type SDL_GameControllerType = CUnsignedInt
object SDL_GameControllerType extends CEnumU[SDL_GameControllerType]:
given _tag: Tag[SDL_GameControllerType] = Tag.UInt
inline def define(inline a: Long): SDL_GameControllerType = a.toUInt
val SDL_CONTROLLER_TYPE_UNKNOWN = define(0)
val SDL_CONTROLLER_TYPE_XBOX360 = define(1)
val SDL_CONTROLLER_TYPE_XBOXONE = define(2)
val SDL_CONTROLLER_TYPE_PS3 = define(3)
val SDL_CONTROLLER_TYPE_PS4 = define(4)
val SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO = define(5)
val SDL_CONTROLLER_TYPE_VIRTUAL = define(6)
val SDL_CONTROLLER_TYPE_PS5 = define(7)
val SDL_CONTROLLER_TYPE_AMAZON_LUNA = define(8)
val SDL_CONTROLLER_TYPE_GOOGLE_STADIA = define(9)
extension (a: SDL_GameControllerType)
inline def &(b: SDL_GameControllerType): SDL_GameControllerType = a & b
inline def |(b: SDL_GameControllerType): SDL_GameControllerType = a | b
inline def is(b: SDL_GameControllerType): Boolean = (a & b) == b
opaque type SDL_HintPriority = CUnsignedInt
object SDL_HintPriority extends CEnumU[SDL_HintPriority]:
given _tag: Tag[SDL_HintPriority] = Tag.UInt
inline def define(inline a: Long): SDL_HintPriority = a.toUInt
val SDL_HINT_DEFAULT = define(0)
val SDL_HINT_NORMAL = define(1)
val SDL_HINT_OVERRIDE = define(2)
extension (a: SDL_HintPriority)
inline def &(b: SDL_HintPriority): SDL_HintPriority = a & b
inline def |(b: SDL_HintPriority): SDL_HintPriority = a | b
inline def is(b: SDL_HintPriority): Boolean = (a & b) == b
opaque type SDL_HitTestResult = CUnsignedInt
object SDL_HitTestResult extends CEnumU[SDL_HitTestResult]:
given _tag: Tag[SDL_HitTestResult] = Tag.UInt
inline def define(inline a: Long): SDL_HitTestResult = a.toUInt
val SDL_HITTEST_NORMAL = define(0)
val SDL_HITTEST_DRAGGABLE = define(1)
val SDL_HITTEST_RESIZE_TOPLEFT = define(2)
val SDL_HITTEST_RESIZE_TOP = define(3)
val SDL_HITTEST_RESIZE_TOPRIGHT = define(4)
val SDL_HITTEST_RESIZE_RIGHT = define(5)
val SDL_HITTEST_RESIZE_BOTTOMRIGHT = define(6)
val SDL_HITTEST_RESIZE_BOTTOM = define(7)
val SDL_HITTEST_RESIZE_BOTTOMLEFT = define(8)
val SDL_HITTEST_RESIZE_LEFT = define(9)
extension (a: SDL_HitTestResult)
inline def &(b: SDL_HitTestResult): SDL_HitTestResult = a & b
inline def |(b: SDL_HitTestResult): SDL_HitTestResult = a | b
inline def is(b: SDL_HitTestResult): Boolean = (a & b) == b
opaque type SDL_JoystickPowerLevel = CInt
object SDL_JoystickPowerLevel extends CEnum[SDL_JoystickPowerLevel]:
given _tag: Tag[SDL_JoystickPowerLevel] = Tag.Int
inline def define(inline a: CInt): SDL_JoystickPowerLevel = a
val SDL_JOYSTICK_POWER_UNKNOWN = define(-1)
val SDL_JOYSTICK_POWER_EMPTY = define(0)
val SDL_JOYSTICK_POWER_LOW = define(1)
val SDL_JOYSTICK_POWER_MEDIUM = define(2)
val SDL_JOYSTICK_POWER_FULL = define(3)
val SDL_JOYSTICK_POWER_WIRED = define(4)
val SDL_JOYSTICK_POWER_MAX = define(5)
extension (a: SDL_JoystickPowerLevel)
inline def &(b: SDL_JoystickPowerLevel): SDL_JoystickPowerLevel = a & b
inline def |(b: SDL_JoystickPowerLevel): SDL_JoystickPowerLevel = a | b
inline def is(b: SDL_JoystickPowerLevel): Boolean = (a & b) == b
opaque type SDL_JoystickType = CUnsignedInt
object SDL_JoystickType extends CEnumU[SDL_JoystickType]:
given _tag: Tag[SDL_JoystickType] = Tag.UInt
inline def define(inline a: Long): SDL_JoystickType = a.toUInt
val SDL_JOYSTICK_TYPE_UNKNOWN = define(0)
val SDL_JOYSTICK_TYPE_GAMECONTROLLER = define(1)
val SDL_JOYSTICK_TYPE_WHEEL = define(2)
val SDL_JOYSTICK_TYPE_ARCADE_STICK = define(3)
val SDL_JOYSTICK_TYPE_FLIGHT_STICK = define(4)
val SDL_JOYSTICK_TYPE_DANCE_PAD = define(5)
val SDL_JOYSTICK_TYPE_GUITAR = define(6)
val SDL_JOYSTICK_TYPE_DRUM_KIT = define(7)
val SDL_JOYSTICK_TYPE_ARCADE_PAD = define(8)
val SDL_JOYSTICK_TYPE_THROTTLE = define(9)
extension (a: SDL_JoystickType)
inline def &(b: SDL_JoystickType): SDL_JoystickType = a & b
inline def |(b: SDL_JoystickType): SDL_JoystickType = a | b
inline def is(b: SDL_JoystickType): Boolean = (a & b) == b
opaque type SDL_KeyCode = CUnsignedInt
object SDL_KeyCode extends CEnumU[SDL_KeyCode]:
given _tag: Tag[SDL_KeyCode] = Tag.UInt
inline def define(inline a: Long): SDL_KeyCode = a.toUInt
val SDLK_UNKNOWN = define(0)
val SDLK_RETURN = define(13)
val SDLK_ESCAPE = define(27)
val SDLK_BACKSPACE = define(8)
val SDLK_TAB = define(9)
val SDLK_SPACE = define(32)
val SDLK_EXCLAIM = define(33)
val SDLK_QUOTEDBL = define(34)
val SDLK_HASH = define(35)
val SDLK_PERCENT = define(37)
val SDLK_DOLLAR = define(36)
val SDLK_AMPERSAND = define(38)
val SDLK_QUOTE = define(39)
val SDLK_LEFTPAREN = define(40)
val SDLK_RIGHTPAREN = define(41)
val SDLK_ASTERISK = define(42)
val SDLK_PLUS = define(43)
val SDLK_COMMA = define(44)
val SDLK_MINUS = define(45)
val SDLK_PERIOD = define(46)
val SDLK_SLASH = define(47)
val SDLK_0 = define(48)
val SDLK_1 = define(49)
val SDLK_2 = define(50)
val SDLK_3 = define(51)
val SDLK_4 = define(52)
val SDLK_5 = define(53)
val SDLK_6 = define(54)
val SDLK_7 = define(55)
val SDLK_8 = define(56)
val SDLK_9 = define(57)
val SDLK_COLON = define(58)
val SDLK_SEMICOLON = define(59)
val SDLK_LESS = define(60)
val SDLK_EQUALS = define(61)
val SDLK_GREATER = define(62)
val SDLK_QUESTION = define(63)
val SDLK_AT = define(64)
val SDLK_LEFTBRACKET = define(91)
val SDLK_BACKSLASH = define(92)
val SDLK_RIGHTBRACKET = define(93)
val SDLK_CARET = define(94)
val SDLK_UNDERSCORE = define(95)
val SDLK_BACKQUOTE = define(96)
val SDLK_a = define(97)
val SDLK_b = define(98)
val SDLK_c = define(99)
val SDLK_d = define(100)
val SDLK_e = define(101)
val SDLK_f = define(102)
val SDLK_g = define(103)
val SDLK_h = define(104)
val SDLK_i = define(105)
val SDLK_j = define(106)
val SDLK_k = define(107)
val SDLK_l = define(108)
val SDLK_m = define(109)
val SDLK_n = define(110)
val SDLK_o = define(111)
val SDLK_p = define(112)
val SDLK_q = define(113)
val SDLK_r = define(114)
val SDLK_s = define(115)
val SDLK_t = define(116)
val SDLK_u = define(117)
val SDLK_v = define(118)
val SDLK_w = define(119)
val SDLK_x = define(120)
val SDLK_y = define(121)
val SDLK_z = define(122)
val SDLK_CAPSLOCK = define(1073741881)
val SDLK_F1 = define(1073741882)
val SDLK_F2 = define(1073741883)
val SDLK_F3 = define(1073741884)
val SDLK_F4 = define(1073741885)
val SDLK_F5 = define(1073741886)
val SDLK_F6 = define(1073741887)
val SDLK_F7 = define(1073741888)
val SDLK_F8 = define(1073741889)
val SDLK_F9 = define(1073741890)
val SDLK_F10 = define(1073741891)
val SDLK_F11 = define(1073741892)
val SDLK_F12 = define(1073741893)
val SDLK_PRINTSCREEN = define(1073741894)
val SDLK_SCROLLLOCK = define(1073741895)
val SDLK_PAUSE = define(1073741896)
val SDLK_INSERT = define(1073741897)
val SDLK_HOME = define(1073741898)
val SDLK_PAGEUP = define(1073741899)
val SDLK_DELETE = define(127)
val SDLK_END = define(1073741901)
val SDLK_PAGEDOWN = define(1073741902)
val SDLK_RIGHT = define(1073741903)
val SDLK_LEFT = define(1073741904)
val SDLK_DOWN = define(1073741905)
val SDLK_UP = define(1073741906)
val SDLK_NUMLOCKCLEAR = define(1073741907)
val SDLK_KP_DIVIDE = define(1073741908)
val SDLK_KP_MULTIPLY = define(1073741909)
val SDLK_KP_MINUS = define(1073741910)
val SDLK_KP_PLUS = define(1073741911)
val SDLK_KP_ENTER = define(1073741912)
val SDLK_KP_1 = define(1073741913)
val SDLK_KP_2 = define(1073741914)
val SDLK_KP_3 = define(1073741915)
val SDLK_KP_4 = define(1073741916)
val SDLK_KP_5 = define(1073741917)
val SDLK_KP_6 = define(1073741918)
val SDLK_KP_7 = define(1073741919)
val SDLK_KP_8 = define(1073741920)
val SDLK_KP_9 = define(1073741921)
val SDLK_KP_0 = define(1073741922)
val SDLK_KP_PERIOD = define(1073741923)
val SDLK_APPLICATION = define(1073741925)
val SDLK_POWER = define(1073741926)
val SDLK_KP_EQUALS = define(1073741927)
val SDLK_F13 = define(1073741928)
val SDLK_F14 = define(1073741929)
val SDLK_F15 = define(1073741930)
val SDLK_F16 = define(1073741931)
val SDLK_F17 = define(1073741932)
val SDLK_F18 = define(1073741933)
val SDLK_F19 = define(1073741934)
val SDLK_F20 = define(1073741935)
val SDLK_F21 = define(1073741936)
val SDLK_F22 = define(1073741937)
val SDLK_F23 = define(1073741938)
val SDLK_F24 = define(1073741939)
val SDLK_EXECUTE = define(1073741940)
val SDLK_HELP = define(1073741941)
val SDLK_MENU = define(1073741942)
val SDLK_SELECT = define(1073741943)
val SDLK_STOP = define(1073741944)
val SDLK_AGAIN = define(1073741945)
val SDLK_UNDO = define(1073741946)
val SDLK_CUT = define(1073741947)
val SDLK_COPY = define(1073741948)
val SDLK_PASTE = define(1073741949)
val SDLK_FIND = define(1073741950)
val SDLK_MUTE = define(1073741951)
val SDLK_VOLUMEUP = define(1073741952)
val SDLK_VOLUMEDOWN = define(1073741953)
val SDLK_KP_COMMA = define(1073741957)
val SDLK_KP_EQUALSAS400 = define(1073741958)
val SDLK_ALTERASE = define(1073741977)
val SDLK_SYSREQ = define(1073741978)
val SDLK_CANCEL = define(1073741979)
val SDLK_CLEAR = define(1073741980)
val SDLK_PRIOR = define(1073741981)
val SDLK_RETURN2 = define(1073741982)
val SDLK_SEPARATOR = define(1073741983)
val SDLK_OUT = define(1073741984)
val SDLK_OPER = define(1073741985)
val SDLK_CLEARAGAIN = define(1073741986)
val SDLK_CRSEL = define(1073741987)
val SDLK_EXSEL = define(1073741988)
val SDLK_KP_00 = define(1073742000)
val SDLK_KP_000 = define(1073742001)
val SDLK_THOUSANDSSEPARATOR = define(1073742002)
val SDLK_DECIMALSEPARATOR = define(1073742003)
val SDLK_CURRENCYUNIT = define(1073742004)
val SDLK_CURRENCYSUBUNIT = define(1073742005)
val SDLK_KP_LEFTPAREN = define(1073742006)
val SDLK_KP_RIGHTPAREN = define(1073742007)
val SDLK_KP_LEFTBRACE = define(1073742008)
val SDLK_KP_RIGHTBRACE = define(1073742009)
val SDLK_KP_TAB = define(1073742010)
val SDLK_KP_BACKSPACE = define(1073742011)
val SDLK_KP_A = define(1073742012)
val SDLK_KP_B = define(1073742013)
val SDLK_KP_C = define(1073742014)
val SDLK_KP_D = define(1073742015)
val SDLK_KP_E = define(1073742016)
val SDLK_KP_F = define(1073742017)
val SDLK_KP_XOR = define(1073742018)
val SDLK_KP_POWER = define(1073742019)
val SDLK_KP_PERCENT = define(1073742020)
val SDLK_KP_LESS = define(1073742021)
val SDLK_KP_GREATER = define(1073742022)
val SDLK_KP_AMPERSAND = define(1073742023)
val SDLK_KP_DBLAMPERSAND = define(1073742024)
val SDLK_KP_VERTICALBAR = define(1073742025)
val SDLK_KP_DBLVERTICALBAR = define(1073742026)
val SDLK_KP_COLON = define(1073742027)
val SDLK_KP_HASH = define(1073742028)
val SDLK_KP_SPACE = define(1073742029)
val SDLK_KP_AT = define(1073742030)
val SDLK_KP_EXCLAM = define(1073742031)
val SDLK_KP_MEMSTORE = define(1073742032)
val SDLK_KP_MEMRECALL = define(1073742033)
val SDLK_KP_MEMCLEAR = define(1073742034)
val SDLK_KP_MEMADD = define(1073742035)
val SDLK_KP_MEMSUBTRACT = define(1073742036)
val SDLK_KP_MEMMULTIPLY = define(1073742037)
val SDLK_KP_MEMDIVIDE = define(1073742038)
val SDLK_KP_PLUSMINUS = define(1073742039)
val SDLK_KP_CLEAR = define(1073742040)
val SDLK_KP_CLEARENTRY = define(1073742041)
val SDLK_KP_BINARY = define(1073742042)
val SDLK_KP_OCTAL = define(1073742043)
val SDLK_KP_DECIMAL = define(1073742044)
val SDLK_KP_HEXADECIMAL = define(1073742045)
val SDLK_LCTRL = define(1073742048)
val SDLK_LSHIFT = define(1073742049)
val SDLK_LALT = define(1073742050)
val SDLK_LGUI = define(1073742051)
val SDLK_RCTRL = define(1073742052)
val SDLK_RSHIFT = define(1073742053)
val SDLK_RALT = define(1073742054)
val SDLK_RGUI = define(1073742055)
val SDLK_MODE = define(1073742081)
val SDLK_AUDIONEXT = define(1073742082)
val SDLK_AUDIOPREV = define(1073742083)
val SDLK_AUDIOSTOP = define(1073742084)
val SDLK_AUDIOPLAY = define(1073742085)
val SDLK_AUDIOMUTE = define(1073742086)
val SDLK_MEDIASELECT = define(1073742087)
val SDLK_WWW = define(1073742088)
val SDLK_MAIL = define(1073742089)
val SDLK_CALCULATOR = define(1073742090)
val SDLK_COMPUTER = define(1073742091)
val SDLK_AC_SEARCH = define(1073742092)
val SDLK_AC_HOME = define(1073742093)
val SDLK_AC_BACK = define(1073742094)
val SDLK_AC_FORWARD = define(1073742095)
val SDLK_AC_STOP = define(1073742096)
val SDLK_AC_REFRESH = define(1073742097)
val SDLK_AC_BOOKMARKS = define(1073742098)
val SDLK_BRIGHTNESSDOWN = define(1073742099)
val SDLK_BRIGHTNESSUP = define(1073742100)
val SDLK_DISPLAYSWITCH = define(1073742101)
val SDLK_KBDILLUMTOGGLE = define(1073742102)
val SDLK_KBDILLUMDOWN = define(1073742103)
val SDLK_KBDILLUMUP = define(1073742104)
val SDLK_EJECT = define(1073742105)
val SDLK_SLEEP = define(1073742106)
val SDLK_APP1 = define(1073742107)
val SDLK_APP2 = define(1073742108)
val SDLK_AUDIOREWIND = define(1073742109)
val SDLK_AUDIOFASTFORWARD = define(1073742110)
extension (a: SDL_KeyCode)
inline def &(b: SDL_KeyCode): SDL_KeyCode = a & b
inline def |(b: SDL_KeyCode): SDL_KeyCode = a | b
inline def is(b: SDL_KeyCode): Boolean = (a & b) == b
opaque type SDL_Keymod = CUnsignedInt
object SDL_Keymod extends CEnumU[SDL_Keymod]:
given _tag: Tag[SDL_Keymod] = Tag.UInt
inline def define(inline a: Long): SDL_Keymod = a.toUInt
val KMOD_NONE = define(0)
val KMOD_LSHIFT = define(1)
val KMOD_RSHIFT = define(2)
val KMOD_LCTRL = define(64)
val KMOD_RCTRL = define(128)
val KMOD_LALT = define(256)
val KMOD_RALT = define(512)
val KMOD_LGUI = define(1024)
val KMOD_RGUI = define(2048)
val KMOD_NUM = define(4096)
val KMOD_CAPS = define(8192)
val KMOD_MODE = define(16384)
val KMOD_SCROLL = define(32768)
val KMOD_CTRL = define(192)
val KMOD_SHIFT = define(3)
val KMOD_ALT = define(768)
val KMOD_GUI = define(3072)
val KMOD_RESERVED = define(32768)
extension (a: SDL_Keymod)
inline def &(b: SDL_Keymod): SDL_Keymod = a & b
inline def |(b: SDL_Keymod): SDL_Keymod = a | b
inline def is(b: SDL_Keymod): Boolean = (a & b) == b
opaque type SDL_LogCategory = CUnsignedInt
object SDL_LogCategory extends CEnumU[SDL_LogCategory]:
given _tag: Tag[SDL_LogCategory] = Tag.UInt
inline def define(inline a: Long): SDL_LogCategory = a.toUInt
val SDL_LOG_CATEGORY_APPLICATION = define(0)
val SDL_LOG_CATEGORY_ERROR = define(1)
val SDL_LOG_CATEGORY_ASSERT = define(2)
val SDL_LOG_CATEGORY_SYSTEM = define(3)
val SDL_LOG_CATEGORY_AUDIO = define(4)
val SDL_LOG_CATEGORY_VIDEO = define(5)
val SDL_LOG_CATEGORY_RENDER = define(6)
val SDL_LOG_CATEGORY_INPUT = define(7)
val SDL_LOG_CATEGORY_TEST = define(8)
val SDL_LOG_CATEGORY_RESERVED1 = define(9)
val SDL_LOG_CATEGORY_RESERVED2 = define(10)
val SDL_LOG_CATEGORY_RESERVED3 = define(11)
val SDL_LOG_CATEGORY_RESERVED4 = define(12)
val SDL_LOG_CATEGORY_RESERVED5 = define(13)
val SDL_LOG_CATEGORY_RESERVED6 = define(14)
val SDL_LOG_CATEGORY_RESERVED7 = define(15)
val SDL_LOG_CATEGORY_RESERVED8 = define(16)
val SDL_LOG_CATEGORY_RESERVED9 = define(17)
val SDL_LOG_CATEGORY_RESERVED10 = define(18)
val SDL_LOG_CATEGORY_CUSTOM = define(19)
extension (a: SDL_LogCategory)
inline def &(b: SDL_LogCategory): SDL_LogCategory = a & b
inline def |(b: SDL_LogCategory): SDL_LogCategory = a | b
inline def is(b: SDL_LogCategory): Boolean = (a & b) == b
opaque type SDL_LogPriority = CUnsignedInt
object SDL_LogPriority extends CEnumU[SDL_LogPriority]:
given _tag: Tag[SDL_LogPriority] = Tag.UInt
inline def define(inline a: Long): SDL_LogPriority = a.toUInt
val SDL_LOG_PRIORITY_VERBOSE = define(1)
val SDL_LOG_PRIORITY_DEBUG = define(2)
val SDL_LOG_PRIORITY_INFO = define(3)
val SDL_LOG_PRIORITY_WARN = define(4)
val SDL_LOG_PRIORITY_ERROR = define(5)
val SDL_LOG_PRIORITY_CRITICAL = define(6)
val SDL_NUM_LOG_PRIORITIES = define(7)
extension (a: SDL_LogPriority)
inline def &(b: SDL_LogPriority): SDL_LogPriority = a & b
inline def |(b: SDL_LogPriority): SDL_LogPriority = a | b
inline def is(b: SDL_LogPriority): Boolean = (a & b) == b
opaque type SDL_MessageBoxButtonFlags = CUnsignedInt
object SDL_MessageBoxButtonFlags extends CEnumU[SDL_MessageBoxButtonFlags]:
given _tag: Tag[SDL_MessageBoxButtonFlags] = Tag.UInt
inline def define(inline a: Long): SDL_MessageBoxButtonFlags = a.toUInt
val SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT = define(1)
val SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT = define(2)
extension (a: SDL_MessageBoxButtonFlags)
inline def &(b: SDL_MessageBoxButtonFlags): SDL_MessageBoxButtonFlags = a & b
inline def |(b: SDL_MessageBoxButtonFlags): SDL_MessageBoxButtonFlags = a | b
inline def is(b: SDL_MessageBoxButtonFlags): Boolean = (a & b) == b
opaque type SDL_MessageBoxColorType = CUnsignedInt
object SDL_MessageBoxColorType extends CEnumU[SDL_MessageBoxColorType]:
given _tag: Tag[SDL_MessageBoxColorType] = Tag.UInt
inline def define(inline a: Long): SDL_MessageBoxColorType = a.toUInt
val SDL_MESSAGEBOX_COLOR_BACKGROUND = define(0)
val SDL_MESSAGEBOX_COLOR_TEXT = define(1)
val SDL_MESSAGEBOX_COLOR_BUTTON_BORDER = define(2)
val SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND = define(3)
val SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED = define(4)
val SDL_MESSAGEBOX_COLOR_MAX = define(5)
extension (a: SDL_MessageBoxColorType)
inline def &(b: SDL_MessageBoxColorType): SDL_MessageBoxColorType = a & b
inline def |(b: SDL_MessageBoxColorType): SDL_MessageBoxColorType = a | b
inline def is(b: SDL_MessageBoxColorType): Boolean = (a & b) == b
opaque type SDL_MessageBoxFlags = CUnsignedInt
object SDL_MessageBoxFlags extends CEnumU[SDL_MessageBoxFlags]:
given _tag: Tag[SDL_MessageBoxFlags] = Tag.UInt
inline def define(inline a: Long): SDL_MessageBoxFlags = a.toUInt
val SDL_MESSAGEBOX_ERROR = define(16)
val SDL_MESSAGEBOX_WARNING = define(32)
val SDL_MESSAGEBOX_INFORMATION = define(64)
val SDL_MESSAGEBOX_BUTTONS_LEFT_TO_RIGHT = define(128)
val SDL_MESSAGEBOX_BUTTONS_RIGHT_TO_LEFT = define(256)
extension (a: SDL_MessageBoxFlags)
inline def &(b: SDL_MessageBoxFlags): SDL_MessageBoxFlags = a & b
inline def |(b: SDL_MessageBoxFlags): SDL_MessageBoxFlags = a | b
inline def is(b: SDL_MessageBoxFlags): Boolean = (a & b) == b
opaque type SDL_MouseWheelDirection = CUnsignedInt
object SDL_MouseWheelDirection extends CEnumU[SDL_MouseWheelDirection]:
given _tag: Tag[SDL_MouseWheelDirection] = Tag.UInt
inline def define(inline a: Long): SDL_MouseWheelDirection = a.toUInt
val SDL_MOUSEWHEEL_NORMAL = define(0)
val SDL_MOUSEWHEEL_FLIPPED = define(1)
extension (a: SDL_MouseWheelDirection)
inline def &(b: SDL_MouseWheelDirection): SDL_MouseWheelDirection = a & b
inline def |(b: SDL_MouseWheelDirection): SDL_MouseWheelDirection = a | b
inline def is(b: SDL_MouseWheelDirection): Boolean = (a & b) == b
opaque type SDL_PackedLayout = CUnsignedInt
object SDL_PackedLayout extends CEnumU[SDL_PackedLayout]:
given _tag: Tag[SDL_PackedLayout] = Tag.UInt
inline def define(inline a: Long): SDL_PackedLayout = a.toUInt
val SDL_PACKEDLAYOUT_NONE = define(0)
val SDL_PACKEDLAYOUT_332 = define(1)
val SDL_PACKEDLAYOUT_4444 = define(2)
val SDL_PACKEDLAYOUT_1555 = define(3)
val SDL_PACKEDLAYOUT_5551 = define(4)
val SDL_PACKEDLAYOUT_565 = define(5)
val SDL_PACKEDLAYOUT_8888 = define(6)
val SDL_PACKEDLAYOUT_2101010 = define(7)
val SDL_PACKEDLAYOUT_1010102 = define(8)
extension (a: SDL_PackedLayout)
inline def &(b: SDL_PackedLayout): SDL_PackedLayout = a & b
inline def |(b: SDL_PackedLayout): SDL_PackedLayout = a | b
inline def is(b: SDL_PackedLayout): Boolean = (a & b) == b
opaque type SDL_PackedOrder = CUnsignedInt
object SDL_PackedOrder extends CEnumU[SDL_PackedOrder]:
given _tag: Tag[SDL_PackedOrder] = Tag.UInt
inline def define(inline a: Long): SDL_PackedOrder = a.toUInt
val SDL_PACKEDORDER_NONE = define(0)
val SDL_PACKEDORDER_XRGB = define(1)
val SDL_PACKEDORDER_RGBX = define(2)
val SDL_PACKEDORDER_ARGB = define(3)
val SDL_PACKEDORDER_RGBA = define(4)
val SDL_PACKEDORDER_XBGR = define(5)
val SDL_PACKEDORDER_BGRX = define(6)
val SDL_PACKEDORDER_ABGR = define(7)
val SDL_PACKEDORDER_BGRA = define(8)
extension (a: SDL_PackedOrder)
inline def &(b: SDL_PackedOrder): SDL_PackedOrder = a & b
inline def |(b: SDL_PackedOrder): SDL_PackedOrder = a | b
inline def is(b: SDL_PackedOrder): Boolean = (a & b) == b
opaque type SDL_PixelFormatEnum = CUnsignedInt
object SDL_PixelFormatEnum extends CEnumU[SDL_PixelFormatEnum]:
given _tag: Tag[SDL_PixelFormatEnum] = Tag.UInt
inline def define(inline a: Long): SDL_PixelFormatEnum = a.toUInt
val SDL_PIXELFORMAT_UNKNOWN = define(0)
val SDL_PIXELFORMAT_INDEX1LSB = define(286261504)
val SDL_PIXELFORMAT_INDEX1MSB = define(287310080)
val SDL_PIXELFORMAT_INDEX4LSB = define(303039488)
val SDL_PIXELFORMAT_INDEX4MSB = define(304088064)
val SDL_PIXELFORMAT_INDEX8 = define(318769153)
val SDL_PIXELFORMAT_RGB332 = define(336660481)
val SDL_PIXELFORMAT_XRGB4444 = define(353504258)
val SDL_PIXELFORMAT_RGB444 = define(353504258)
val SDL_PIXELFORMAT_XBGR4444 = define(357698562)
val SDL_PIXELFORMAT_BGR444 = define(357698562)
val SDL_PIXELFORMAT_XRGB1555 = define(353570562)
val SDL_PIXELFORMAT_RGB555 = define(353570562)
val SDL_PIXELFORMAT_XBGR1555 = define(357764866)
val SDL_PIXELFORMAT_BGR555 = define(357764866)
val SDL_PIXELFORMAT_ARGB4444 = define(355602434)
val SDL_PIXELFORMAT_RGBA4444 = define(356651010)
val SDL_PIXELFORMAT_ABGR4444 = define(359796738)
val SDL_PIXELFORMAT_BGRA4444 = define(360845314)
val SDL_PIXELFORMAT_ARGB1555 = define(355667970)
val SDL_PIXELFORMAT_RGBA5551 = define(356782082)
val SDL_PIXELFORMAT_ABGR1555 = define(359862274)
val SDL_PIXELFORMAT_BGRA5551 = define(360976386)
val SDL_PIXELFORMAT_RGB565 = define(353701890)
val SDL_PIXELFORMAT_BGR565 = define(357896194)
val SDL_PIXELFORMAT_RGB24 = define(386930691)
val SDL_PIXELFORMAT_BGR24 = define(390076419)
val SDL_PIXELFORMAT_XRGB8888 = define(370546692)
val SDL_PIXELFORMAT_RGB888 = define(370546692)
val SDL_PIXELFORMAT_RGBX8888 = define(371595268)
val SDL_PIXELFORMAT_XBGR8888 = define(374740996)
val SDL_PIXELFORMAT_BGR888 = define(374740996)
val SDL_PIXELFORMAT_BGRX8888 = define(375789572)
val SDL_PIXELFORMAT_ARGB8888 = define(372645892)
val SDL_PIXELFORMAT_RGBA8888 = define(373694468)
val SDL_PIXELFORMAT_ABGR8888 = define(376840196)
val SDL_PIXELFORMAT_BGRA8888 = define(377888772)
val SDL_PIXELFORMAT_ARGB2101010 = define(372711428)
val SDL_PIXELFORMAT_RGBA32 = define(376840196)
val SDL_PIXELFORMAT_ARGB32 = define(377888772)
val SDL_PIXELFORMAT_BGRA32 = define(372645892)
val SDL_PIXELFORMAT_ABGR32 = define(373694468)
val SDL_PIXELFORMAT_YV12 = define(842094169)
val SDL_PIXELFORMAT_IYUV = define(1448433993)
val SDL_PIXELFORMAT_YUY2 = define(844715353)
val SDL_PIXELFORMAT_UYVY = define(1498831189)
val SDL_PIXELFORMAT_YVYU = define(1431918169)
val SDL_PIXELFORMAT_NV12 = define(842094158)
val SDL_PIXELFORMAT_NV21 = define(825382478)
val SDL_PIXELFORMAT_EXTERNAL_OES = define(542328143)
extension (a: SDL_PixelFormatEnum)
inline def &(b: SDL_PixelFormatEnum): SDL_PixelFormatEnum = a & b
inline def |(b: SDL_PixelFormatEnum): SDL_PixelFormatEnum = a | b
inline def is(b: SDL_PixelFormatEnum): Boolean = (a & b) == b
opaque type SDL_PixelType = CUnsignedInt
object SDL_PixelType extends CEnumU[SDL_PixelType]:
given _tag: Tag[SDL_PixelType] = Tag.UInt
inline def define(inline a: Long): SDL_PixelType = a.toUInt
val SDL_PIXELTYPE_UNKNOWN = define(0)
val SDL_PIXELTYPE_INDEX1 = define(1)
val SDL_PIXELTYPE_INDEX4 = define(2)
val SDL_PIXELTYPE_INDEX8 = define(3)
val SDL_PIXELTYPE_PACKED8 = define(4)
val SDL_PIXELTYPE_PACKED16 = define(5)
val SDL_PIXELTYPE_PACKED32 = define(6)
val SDL_PIXELTYPE_ARRAYU8 = define(7)
val SDL_PIXELTYPE_ARRAYU16 = define(8)
val SDL_PIXELTYPE_ARRAYU32 = define(9)
val SDL_PIXELTYPE_ARRAYF16 = define(10)
val SDL_PIXELTYPE_ARRAYF32 = define(11)
extension (a: SDL_PixelType)
inline def &(b: SDL_PixelType): SDL_PixelType = a & b
inline def |(b: SDL_PixelType): SDL_PixelType = a | b
inline def is(b: SDL_PixelType): Boolean = (a & b) == b
opaque type SDL_PowerState = CUnsignedInt
object SDL_PowerState extends CEnumU[SDL_PowerState]:
given _tag: Tag[SDL_PowerState] = Tag.UInt
inline def define(inline a: Long): SDL_PowerState = a.toUInt
val SDL_POWERSTATE_UNKNOWN = define(0)
val SDL_POWERSTATE_ON_BATTERY = define(1)
val SDL_POWERSTATE_NO_BATTERY = define(2)
val SDL_POWERSTATE_CHARGING = define(3)
val SDL_POWERSTATE_CHARGED = define(4)
extension (a: SDL_PowerState)
inline def &(b: SDL_PowerState): SDL_PowerState = a & b
inline def |(b: SDL_PowerState): SDL_PowerState = a | b
inline def is(b: SDL_PowerState): Boolean = (a & b) == b
opaque type SDL_RendererFlags = CUnsignedInt
object SDL_RendererFlags extends CEnumU[SDL_RendererFlags]:
given _tag: Tag[SDL_RendererFlags] = Tag.UInt
inline def define(inline a: Long): SDL_RendererFlags = a.toUInt
val SDL_RENDERER_SOFTWARE = define(1)
val SDL_RENDERER_ACCELERATED = define(2)
val SDL_RENDERER_PRESENTVSYNC = define(4)
val SDL_RENDERER_TARGETTEXTURE = define(8)
extension (a: SDL_RendererFlags)
inline def &(b: SDL_RendererFlags): SDL_RendererFlags = a & b
inline def |(b: SDL_RendererFlags): SDL_RendererFlags = a | b
inline def is(b: SDL_RendererFlags): Boolean = (a & b) == b
opaque type SDL_RendererFlip = CUnsignedInt
object SDL_RendererFlip extends CEnumU[SDL_RendererFlip]:
given _tag: Tag[SDL_RendererFlip] = Tag.UInt
inline def define(inline a: Long): SDL_RendererFlip = a.toUInt
val SDL_FLIP_NONE = define(0)
val SDL_FLIP_HORIZONTAL = define(1)
val SDL_FLIP_VERTICAL = define(2)
extension (a: SDL_RendererFlip)
inline def &(b: SDL_RendererFlip): SDL_RendererFlip = a & b
inline def |(b: SDL_RendererFlip): SDL_RendererFlip = a | b
inline def is(b: SDL_RendererFlip): Boolean = (a & b) == b
opaque type SDL_ScaleMode = CUnsignedInt
object SDL_ScaleMode extends CEnumU[SDL_ScaleMode]:
given _tag: Tag[SDL_ScaleMode] = Tag.UInt
inline def define(inline a: Long): SDL_ScaleMode = a.toUInt
val SDL_ScaleModeNearest = define(0)
val SDL_ScaleModeLinear = define(1)
val SDL_ScaleModeBest = define(2)
extension (a: SDL_ScaleMode)
inline def &(b: SDL_ScaleMode): SDL_ScaleMode = a & b
inline def |(b: SDL_ScaleMode): SDL_ScaleMode = a | b
inline def is(b: SDL_ScaleMode): Boolean = (a & b) == b
opaque type SDL_Scancode = CUnsignedInt
object SDL_Scancode extends CEnumU[SDL_Scancode]:
given _tag: Tag[SDL_Scancode] = Tag.UInt
inline def define(inline a: Long): SDL_Scancode = a.toUInt
val SDL_SCANCODE_UNKNOWN = define(0)
val SDL_SCANCODE_A = define(4)
val SDL_SCANCODE_B = define(5)
val SDL_SCANCODE_C = define(6)
val SDL_SCANCODE_D = define(7)
val SDL_SCANCODE_E = define(8)
val SDL_SCANCODE_F = define(9)
val SDL_SCANCODE_G = define(10)
val SDL_SCANCODE_H = define(11)
val SDL_SCANCODE_I = define(12)
val SDL_SCANCODE_J = define(13)
val SDL_SCANCODE_K = define(14)
val SDL_SCANCODE_L = define(15)
val SDL_SCANCODE_M = define(16)
val SDL_SCANCODE_N = define(17)
val SDL_SCANCODE_O = define(18)
val SDL_SCANCODE_P = define(19)
val SDL_SCANCODE_Q = define(20)
val SDL_SCANCODE_R = define(21)
val SDL_SCANCODE_S = define(22)
val SDL_SCANCODE_T = define(23)
val SDL_SCANCODE_U = define(24)
val SDL_SCANCODE_V = define(25)
val SDL_SCANCODE_W = define(26)
val SDL_SCANCODE_X = define(27)
val SDL_SCANCODE_Y = define(28)
val SDL_SCANCODE_Z = define(29)
val SDL_SCANCODE_1 = define(30)
val SDL_SCANCODE_2 = define(31)
val SDL_SCANCODE_3 = define(32)
val SDL_SCANCODE_4 = define(33)
val SDL_SCANCODE_5 = define(34)
val SDL_SCANCODE_6 = define(35)
val SDL_SCANCODE_7 = define(36)
val SDL_SCANCODE_8 = define(37)
val SDL_SCANCODE_9 = define(38)
val SDL_SCANCODE_0 = define(39)
val SDL_SCANCODE_RETURN = define(40)
val SDL_SCANCODE_ESCAPE = define(41)
val SDL_SCANCODE_BACKSPACE = define(42)
val SDL_SCANCODE_TAB = define(43)
val SDL_SCANCODE_SPACE = define(44)
val SDL_SCANCODE_MINUS = define(45)
val SDL_SCANCODE_EQUALS = define(46)
val SDL_SCANCODE_LEFTBRACKET = define(47)
val SDL_SCANCODE_RIGHTBRACKET = define(48)
val SDL_SCANCODE_BACKSLASH = define(49)
val SDL_SCANCODE_NONUSHASH = define(50)
val SDL_SCANCODE_SEMICOLON = define(51)
val SDL_SCANCODE_APOSTROPHE = define(52)
val SDL_SCANCODE_GRAVE = define(53)
val SDL_SCANCODE_COMMA = define(54)
val SDL_SCANCODE_PERIOD = define(55)
val SDL_SCANCODE_SLASH = define(56)
val SDL_SCANCODE_CAPSLOCK = define(57)
val SDL_SCANCODE_F1 = define(58)
val SDL_SCANCODE_F2 = define(59)
val SDL_SCANCODE_F3 = define(60)
val SDL_SCANCODE_F4 = define(61)
val SDL_SCANCODE_F5 = define(62)
val SDL_SCANCODE_F6 = define(63)
val SDL_SCANCODE_F7 = define(64)
val SDL_SCANCODE_F8 = define(65)
val SDL_SCANCODE_F9 = define(66)
val SDL_SCANCODE_F10 = define(67)
val SDL_SCANCODE_F11 = define(68)
val SDL_SCANCODE_F12 = define(69)
val SDL_SCANCODE_PRINTSCREEN = define(70)
val SDL_SCANCODE_SCROLLLOCK = define(71)
val SDL_SCANCODE_PAUSE = define(72)
val SDL_SCANCODE_INSERT = define(73)
val SDL_SCANCODE_HOME = define(74)
val SDL_SCANCODE_PAGEUP = define(75)
val SDL_SCANCODE_DELETE = define(76)
val SDL_SCANCODE_END = define(77)
val SDL_SCANCODE_PAGEDOWN = define(78)
val SDL_SCANCODE_RIGHT = define(79)
val SDL_SCANCODE_LEFT = define(80)
val SDL_SCANCODE_DOWN = define(81)
val SDL_SCANCODE_UP = define(82)
val SDL_SCANCODE_NUMLOCKCLEAR = define(83)
val SDL_SCANCODE_KP_DIVIDE = define(84)
val SDL_SCANCODE_KP_MULTIPLY = define(85)
val SDL_SCANCODE_KP_MINUS = define(86)
val SDL_SCANCODE_KP_PLUS = define(87)
val SDL_SCANCODE_KP_ENTER = define(88)
val SDL_SCANCODE_KP_1 = define(89)
val SDL_SCANCODE_KP_2 = define(90)
val SDL_SCANCODE_KP_3 = define(91)
val SDL_SCANCODE_KP_4 = define(92)
val SDL_SCANCODE_KP_5 = define(93)
val SDL_SCANCODE_KP_6 = define(94)
val SDL_SCANCODE_KP_7 = define(95)
val SDL_SCANCODE_KP_8 = define(96)
val SDL_SCANCODE_KP_9 = define(97)
val SDL_SCANCODE_KP_0 = define(98)
val SDL_SCANCODE_KP_PERIOD = define(99)
val SDL_SCANCODE_NONUSBACKSLASH = define(100)
val SDL_SCANCODE_APPLICATION = define(101)
val SDL_SCANCODE_POWER = define(102)
val SDL_SCANCODE_KP_EQUALS = define(103)
val SDL_SCANCODE_F13 = define(104)
val SDL_SCANCODE_F14 = define(105)
val SDL_SCANCODE_F15 = define(106)
val SDL_SCANCODE_F16 = define(107)
val SDL_SCANCODE_F17 = define(108)
val SDL_SCANCODE_F18 = define(109)
val SDL_SCANCODE_F19 = define(110)
val SDL_SCANCODE_F20 = define(111)
val SDL_SCANCODE_F21 = define(112)
val SDL_SCANCODE_F22 = define(113)
val SDL_SCANCODE_F23 = define(114)
val SDL_SCANCODE_F24 = define(115)
val SDL_SCANCODE_EXECUTE = define(116)
val SDL_SCANCODE_HELP = define(117)
val SDL_SCANCODE_MENU = define(118)
val SDL_SCANCODE_SELECT = define(119)
val SDL_SCANCODE_STOP = define(120)
val SDL_SCANCODE_AGAIN = define(121)
val SDL_SCANCODE_UNDO = define(122)
val SDL_SCANCODE_CUT = define(123)
val SDL_SCANCODE_COPY = define(124)
val SDL_SCANCODE_PASTE = define(125)
val SDL_SCANCODE_FIND = define(126)
val SDL_SCANCODE_MUTE = define(127)
val SDL_SCANCODE_VOLUMEUP = define(128)
val SDL_SCANCODE_VOLUMEDOWN = define(129)
val SDL_SCANCODE_KP_COMMA = define(133)
val SDL_SCANCODE_KP_EQUALSAS400 = define(134)
val SDL_SCANCODE_INTERNATIONAL1 = define(135)
val SDL_SCANCODE_INTERNATIONAL2 = define(136)
val SDL_SCANCODE_INTERNATIONAL3 = define(137)
val SDL_SCANCODE_INTERNATIONAL4 = define(138)
val SDL_SCANCODE_INTERNATIONAL5 = define(139)
val SDL_SCANCODE_INTERNATIONAL6 = define(140)
val SDL_SCANCODE_INTERNATIONAL7 = define(141)
val SDL_SCANCODE_INTERNATIONAL8 = define(142)
val SDL_SCANCODE_INTERNATIONAL9 = define(143)
val SDL_SCANCODE_LANG1 = define(144)
val SDL_SCANCODE_LANG2 = define(145)
val SDL_SCANCODE_LANG3 = define(146)
val SDL_SCANCODE_LANG4 = define(147)
val SDL_SCANCODE_LANG5 = define(148)
val SDL_SCANCODE_LANG6 = define(149)
val SDL_SCANCODE_LANG7 = define(150)
val SDL_SCANCODE_LANG8 = define(151)
val SDL_SCANCODE_LANG9 = define(152)
val SDL_SCANCODE_ALTERASE = define(153)
val SDL_SCANCODE_SYSREQ = define(154)
val SDL_SCANCODE_CANCEL = define(155)
val SDL_SCANCODE_CLEAR = define(156)
val SDL_SCANCODE_PRIOR = define(157)
val SDL_SCANCODE_RETURN2 = define(158)
val SDL_SCANCODE_SEPARATOR = define(159)
val SDL_SCANCODE_OUT = define(160)
val SDL_SCANCODE_OPER = define(161)
val SDL_SCANCODE_CLEARAGAIN = define(162)
val SDL_SCANCODE_CRSEL = define(163)
val SDL_SCANCODE_EXSEL = define(164)
val SDL_SCANCODE_KP_00 = define(176)
val SDL_SCANCODE_KP_000 = define(177)
val SDL_SCANCODE_THOUSANDSSEPARATOR = define(178)
val SDL_SCANCODE_DECIMALSEPARATOR = define(179)
val SDL_SCANCODE_CURRENCYUNIT = define(180)
val SDL_SCANCODE_CURRENCYSUBUNIT = define(181)
val SDL_SCANCODE_KP_LEFTPAREN = define(182)
val SDL_SCANCODE_KP_RIGHTPAREN = define(183)
val SDL_SCANCODE_KP_LEFTBRACE = define(184)
val SDL_SCANCODE_KP_RIGHTBRACE = define(185)
val SDL_SCANCODE_KP_TAB = define(186)
val SDL_SCANCODE_KP_BACKSPACE = define(187)
val SDL_SCANCODE_KP_A = define(188)
val SDL_SCANCODE_KP_B = define(189)
val SDL_SCANCODE_KP_C = define(190)
val SDL_SCANCODE_KP_D = define(191)
val SDL_SCANCODE_KP_E = define(192)
val SDL_SCANCODE_KP_F = define(193)
val SDL_SCANCODE_KP_XOR = define(194)
val SDL_SCANCODE_KP_POWER = define(195)
val SDL_SCANCODE_KP_PERCENT = define(196)
val SDL_SCANCODE_KP_LESS = define(197)
val SDL_SCANCODE_KP_GREATER = define(198)
val SDL_SCANCODE_KP_AMPERSAND = define(199)
val SDL_SCANCODE_KP_DBLAMPERSAND = define(200)
val SDL_SCANCODE_KP_VERTICALBAR = define(201)
val SDL_SCANCODE_KP_DBLVERTICALBAR = define(202)
val SDL_SCANCODE_KP_COLON = define(203)
val SDL_SCANCODE_KP_HASH = define(204)
val SDL_SCANCODE_KP_SPACE = define(205)
val SDL_SCANCODE_KP_AT = define(206)
val SDL_SCANCODE_KP_EXCLAM = define(207)
val SDL_SCANCODE_KP_MEMSTORE = define(208)
val SDL_SCANCODE_KP_MEMRECALL = define(209)
val SDL_SCANCODE_KP_MEMCLEAR = define(210)
val SDL_SCANCODE_KP_MEMADD = define(211)
val SDL_SCANCODE_KP_MEMSUBTRACT = define(212)
val SDL_SCANCODE_KP_MEMMULTIPLY = define(213)
val SDL_SCANCODE_KP_MEMDIVIDE = define(214)
val SDL_SCANCODE_KP_PLUSMINUS = define(215)
val SDL_SCANCODE_KP_CLEAR = define(216)
val SDL_SCANCODE_KP_CLEARENTRY = define(217)
val SDL_SCANCODE_KP_BINARY = define(218)
val SDL_SCANCODE_KP_OCTAL = define(219)
val SDL_SCANCODE_KP_DECIMAL = define(220)
val SDL_SCANCODE_KP_HEXADECIMAL = define(221)
val SDL_SCANCODE_LCTRL = define(224)
val SDL_SCANCODE_LSHIFT = define(225)
val SDL_SCANCODE_LALT = define(226)
val SDL_SCANCODE_LGUI = define(227)
val SDL_SCANCODE_RCTRL = define(228)
val SDL_SCANCODE_RSHIFT = define(229)
val SDL_SCANCODE_RALT = define(230)
val SDL_SCANCODE_RGUI = define(231)
val SDL_SCANCODE_MODE = define(257)
val SDL_SCANCODE_AUDIONEXT = define(258)
val SDL_SCANCODE_AUDIOPREV = define(259)
val SDL_SCANCODE_AUDIOSTOP = define(260)
val SDL_SCANCODE_AUDIOPLAY = define(261)
val SDL_SCANCODE_AUDIOMUTE = define(262)
val SDL_SCANCODE_MEDIASELECT = define(263)
val SDL_SCANCODE_WWW = define(264)
val SDL_SCANCODE_MAIL = define(265)
val SDL_SCANCODE_CALCULATOR = define(266)
val SDL_SCANCODE_COMPUTER = define(267)
val SDL_SCANCODE_AC_SEARCH = define(268)
val SDL_SCANCODE_AC_HOME = define(269)
val SDL_SCANCODE_AC_BACK = define(270)
val SDL_SCANCODE_AC_FORWARD = define(271)
val SDL_SCANCODE_AC_STOP = define(272)
val SDL_SCANCODE_AC_REFRESH = define(273)
val SDL_SCANCODE_AC_BOOKMARKS = define(274)
val SDL_SCANCODE_BRIGHTNESSDOWN = define(275)
val SDL_SCANCODE_BRIGHTNESSUP = define(276)
val SDL_SCANCODE_DISPLAYSWITCH = define(277)
val SDL_SCANCODE_KBDILLUMTOGGLE = define(278)
val SDL_SCANCODE_KBDILLUMDOWN = define(279)
val SDL_SCANCODE_KBDILLUMUP = define(280)
val SDL_SCANCODE_EJECT = define(281)
val SDL_SCANCODE_SLEEP = define(282)
val SDL_SCANCODE_APP1 = define(283)
val SDL_SCANCODE_APP2 = define(284)
val SDL_SCANCODE_AUDIOREWIND = define(285)
val SDL_SCANCODE_AUDIOFASTFORWARD = define(286)
val SDL_NUM_SCANCODES = define(512)
extension (a: SDL_Scancode)
inline def &(b: SDL_Scancode): SDL_Scancode = a & b
inline def |(b: SDL_Scancode): SDL_Scancode = a | b
inline def is(b: SDL_Scancode): Boolean = (a & b) == b
opaque type SDL_SensorType = CInt
object SDL_SensorType extends CEnum[SDL_SensorType]:
given _tag: Tag[SDL_SensorType] = Tag.Int
inline def define(inline a: CInt): SDL_SensorType = a
val SDL_SENSOR_INVALID = define(-1)
val SDL_SENSOR_UNKNOWN = define(0)
val SDL_SENSOR_ACCEL = define(1)
val SDL_SENSOR_GYRO = define(2)
extension (a: SDL_SensorType)
inline def &(b: SDL_SensorType): SDL_SensorType = a & b
inline def |(b: SDL_SensorType): SDL_SensorType = a | b
inline def is(b: SDL_SensorType): Boolean = (a & b) == b
opaque type SDL_SystemCursor = CUnsignedInt
object SDL_SystemCursor extends CEnumU[SDL_SystemCursor]:
given _tag: Tag[SDL_SystemCursor] = Tag.UInt
inline def define(inline a: Long): SDL_SystemCursor = a.toUInt
val SDL_SYSTEM_CURSOR_ARROW = define(0)
val SDL_SYSTEM_CURSOR_IBEAM = define(1)
val SDL_SYSTEM_CURSOR_WAIT = define(2)
val SDL_SYSTEM_CURSOR_CROSSHAIR = define(3)
val SDL_SYSTEM_CURSOR_WAITARROW = define(4)
val SDL_SYSTEM_CURSOR_SIZENWSE = define(5)
val SDL_SYSTEM_CURSOR_SIZENESW = define(6)
val SDL_SYSTEM_CURSOR_SIZEWE = define(7)
val SDL_SYSTEM_CURSOR_SIZENS = define(8)
val SDL_SYSTEM_CURSOR_SIZEALL = define(9)
val SDL_SYSTEM_CURSOR_NO = define(10)
val SDL_SYSTEM_CURSOR_HAND = define(11)
val SDL_NUM_SYSTEM_CURSORS = define(12)
extension (a: SDL_SystemCursor)
inline def &(b: SDL_SystemCursor): SDL_SystemCursor = a & b
inline def |(b: SDL_SystemCursor): SDL_SystemCursor = a | b
inline def is(b: SDL_SystemCursor): Boolean = (a & b) == b
opaque type SDL_TextureAccess = CUnsignedInt
object SDL_TextureAccess extends CEnumU[SDL_TextureAccess]:
given _tag: Tag[SDL_TextureAccess] = Tag.UInt
inline def define(inline a: Long): SDL_TextureAccess = a.toUInt
val SDL_TEXTUREACCESS_STATIC = define(0)
val SDL_TEXTUREACCESS_STREAMING = define(1)
val SDL_TEXTUREACCESS_TARGET = define(2)
extension (a: SDL_TextureAccess)
inline def &(b: SDL_TextureAccess): SDL_TextureAccess = a & b
inline def |(b: SDL_TextureAccess): SDL_TextureAccess = a | b
inline def is(b: SDL_TextureAccess): Boolean = (a & b) == b
opaque type SDL_TextureModulate = CUnsignedInt
object SDL_TextureModulate extends CEnumU[SDL_TextureModulate]:
given _tag: Tag[SDL_TextureModulate] = Tag.UInt
inline def define(inline a: Long): SDL_TextureModulate = a.toUInt
val SDL_TEXTUREMODULATE_NONE = define(0)
val SDL_TEXTUREMODULATE_COLOR = define(1)
val SDL_TEXTUREMODULATE_ALPHA = define(2)
extension (a: SDL_TextureModulate)
inline def &(b: SDL_TextureModulate): SDL_TextureModulate = a & b
inline def |(b: SDL_TextureModulate): SDL_TextureModulate = a | b
inline def is(b: SDL_TextureModulate): Boolean = (a & b) == b
opaque type SDL_ThreadPriority = CUnsignedInt
object SDL_ThreadPriority extends CEnumU[SDL_ThreadPriority]:
given _tag: Tag[SDL_ThreadPriority] = Tag.UInt
inline def define(inline a: Long): SDL_ThreadPriority = a.toUInt
val SDL_THREAD_PRIORITY_LOW = define(0)
val SDL_THREAD_PRIORITY_NORMAL = define(1)
val SDL_THREAD_PRIORITY_HIGH = define(2)
val SDL_THREAD_PRIORITY_TIME_CRITICAL = define(3)
extension (a: SDL_ThreadPriority)
inline def &(b: SDL_ThreadPriority): SDL_ThreadPriority = a & b
inline def |(b: SDL_ThreadPriority): SDL_ThreadPriority = a | b
inline def is(b: SDL_ThreadPriority): Boolean = (a & b) == b
opaque type SDL_TouchDeviceType = CInt
object SDL_TouchDeviceType extends CEnum[SDL_TouchDeviceType]:
given _tag: Tag[SDL_TouchDeviceType] = Tag.Int
inline def define(inline a: CInt): SDL_TouchDeviceType = a
val SDL_TOUCH_DEVICE_INVALID = define(-1)
val SDL_TOUCH_DEVICE_DIRECT = define(0)
val SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE = define(1)
val SDL_TOUCH_DEVICE_INDIRECT_RELATIVE = define(2)
extension (a: SDL_TouchDeviceType)
inline def &(b: SDL_TouchDeviceType): SDL_TouchDeviceType = a & b
inline def |(b: SDL_TouchDeviceType): SDL_TouchDeviceType = a | b
inline def is(b: SDL_TouchDeviceType): Boolean = (a & b) == b
opaque type SDL_WindowEventID = CUnsignedInt
object SDL_WindowEventID extends CEnumU[SDL_WindowEventID]:
given _tag: Tag[SDL_WindowEventID] = Tag.UInt
inline def define(inline a: Long): SDL_WindowEventID = a.toUInt
val SDL_WINDOWEVENT_NONE = define(0)
val SDL_WINDOWEVENT_SHOWN = define(1)
val SDL_WINDOWEVENT_HIDDEN = define(2)
val SDL_WINDOWEVENT_EXPOSED = define(3)
val SDL_WINDOWEVENT_MOVED = define(4)
val SDL_WINDOWEVENT_RESIZED = define(5)
val SDL_WINDOWEVENT_SIZE_CHANGED = define(6)
val SDL_WINDOWEVENT_MINIMIZED = define(7)
val SDL_WINDOWEVENT_MAXIMIZED = define(8)
val SDL_WINDOWEVENT_RESTORED = define(9)
val SDL_WINDOWEVENT_ENTER = define(10)
val SDL_WINDOWEVENT_LEAVE = define(11)
val SDL_WINDOWEVENT_FOCUS_GAINED = define(12)
val SDL_WINDOWEVENT_FOCUS_LOST = define(13)
val SDL_WINDOWEVENT_CLOSE = define(14)
val SDL_WINDOWEVENT_TAKE_FOCUS = define(15)
val SDL_WINDOWEVENT_HIT_TEST = define(16)
val SDL_WINDOWEVENT_ICCPROF_CHANGED = define(17)
val SDL_WINDOWEVENT_DISPLAY_CHANGED = define(18)
extension (a: SDL_WindowEventID)
inline def &(b: SDL_WindowEventID): SDL_WindowEventID = a & b
inline def |(b: SDL_WindowEventID): SDL_WindowEventID = a | b
inline def is(b: SDL_WindowEventID): Boolean = (a & b) == b
opaque type SDL_WindowFlags = CUnsignedInt
object SDL_WindowFlags extends CEnumU[SDL_WindowFlags]:
given _tag: Tag[SDL_WindowFlags] = Tag.UInt
inline def define(inline a: Long): SDL_WindowFlags = a.toUInt
val SDL_WINDOW_FULLSCREEN = define(1)
val SDL_WINDOW_OPENGL = define(2)
val SDL_WINDOW_SHOWN = define(4)
val SDL_WINDOW_HIDDEN = define(8)
val SDL_WINDOW_BORDERLESS = define(16)
val SDL_WINDOW_RESIZABLE = define(32)
val SDL_WINDOW_MINIMIZED = define(64)
val SDL_WINDOW_MAXIMIZED = define(128)
val SDL_WINDOW_MOUSE_GRABBED = define(256)
val SDL_WINDOW_INPUT_FOCUS = define(512)
val SDL_WINDOW_MOUSE_FOCUS = define(1024)
val SDL_WINDOW_FULLSCREEN_DESKTOP = define(4097)
val SDL_WINDOW_FOREIGN = define(2048)
val SDL_WINDOW_ALLOW_HIGHDPI = define(8192)
val SDL_WINDOW_MOUSE_CAPTURE = define(16384)
val SDL_WINDOW_ALWAYS_ON_TOP = define(32768)
val SDL_WINDOW_SKIP_TASKBAR = define(65536)
val SDL_WINDOW_UTILITY = define(131072)
val SDL_WINDOW_TOOLTIP = define(262144)
val SDL_WINDOW_POPUP_MENU = define(524288)
val SDL_WINDOW_KEYBOARD_GRABBED = define(1048576)
val SDL_WINDOW_VULKAN = define(268435456)
val SDL_WINDOW_METAL = define(536870912)
val SDL_WINDOW_INPUT_GRABBED = define(256)
extension (a: SDL_WindowFlags)
inline def &(b: SDL_WindowFlags): SDL_WindowFlags = a & b
inline def |(b: SDL_WindowFlags): SDL_WindowFlags = a | b
inline def is(b: SDL_WindowFlags): Boolean = (a & b) == b
opaque type SDL_YUV_CONVERSION_MODE = CUnsignedInt
object SDL_YUV_CONVERSION_MODE extends CEnumU[SDL_YUV_CONVERSION_MODE]:
given _tag: Tag[SDL_YUV_CONVERSION_MODE] = Tag.UInt
inline def define(inline a: Long): SDL_YUV_CONVERSION_MODE = a.toUInt
val SDL_YUV_CONVERSION_JPEG = define(0)
val SDL_YUV_CONVERSION_BT601 = define(1)
val SDL_YUV_CONVERSION_BT709 = define(2)
val SDL_YUV_CONVERSION_AUTOMATIC = define(3)
extension (a: SDL_YUV_CONVERSION_MODE)
inline def &(b: SDL_YUV_CONVERSION_MODE): SDL_YUV_CONVERSION_MODE = a & b
inline def |(b: SDL_YUV_CONVERSION_MODE): SDL_YUV_CONVERSION_MODE = a | b
inline def is(b: SDL_YUV_CONVERSION_MODE): Boolean = (a & b) == b
opaque type SDL_bool = CUnsignedInt
object SDL_bool extends CEnumU[SDL_bool]:
given _tag: Tag[SDL_bool] = Tag.UInt
inline def define(inline a: Long): SDL_bool = a.toUInt
val SDL_FALSE = define(0)
val SDL_TRUE = define(1)
extension (a: SDL_bool)
inline def &(b: SDL_bool): SDL_bool = a & b
inline def |(b: SDL_bool): SDL_bool = a | b
inline def is(b: SDL_bool): Boolean = (a & b) == b
opaque type SDL_errorcode = CUnsignedInt
object SDL_errorcode extends CEnumU[SDL_errorcode]:
given _tag: Tag[SDL_errorcode] = Tag.UInt
inline def define(inline a: Long): SDL_errorcode = a.toUInt
val SDL_ENOMEM = define(0)
val SDL_EFREAD = define(1)
val SDL_EFWRITE = define(2)
val SDL_EFSEEK = define(3)
val SDL_UNSUPPORTED = define(4)
val SDL_LASTERROR = define(5)
extension (a: SDL_errorcode)
inline def &(b: SDL_errorcode): SDL_errorcode = a & b
inline def |(b: SDL_errorcode): SDL_errorcode = a | b
inline def is(b: SDL_errorcode): Boolean = (a & b) == b
opaque type SDL_eventaction = CUnsignedInt
object SDL_eventaction extends CEnumU[SDL_eventaction]:
given _tag: Tag[SDL_eventaction] = Tag.UInt
inline def define(inline a: Long): SDL_eventaction = a.toUInt
val SDL_ADDEVENT = define(0)
val SDL_PEEKEVENT = define(1)
val SDL_GETEVENT = define(2)
extension (a: SDL_eventaction)
inline def &(b: SDL_eventaction): SDL_eventaction = a & b
inline def |(b: SDL_eventaction): SDL_eventaction = a | b
inline def is(b: SDL_eventaction): Boolean = (a & b) == b
opaque type WindowShapeMode = CUnsignedInt
object WindowShapeMode extends CEnumU[WindowShapeMode]:
given _tag: Tag[WindowShapeMode] = Tag.UInt
inline def define(inline a: Long): WindowShapeMode = a.toUInt
val ShapeModeDefault = define(0)
val ShapeModeBinarizeAlpha = define(1)
val ShapeModeReverseBinarizeAlpha = define(2)
val ShapeModeColorKey = define(3)
extension (a: WindowShapeMode)
inline def &(b: WindowShapeMode): WindowShapeMode = a & b
inline def |(b: WindowShapeMode): WindowShapeMode = a | b
inline def is(b: WindowShapeMode): Boolean = (a & b) == b
opaque type SDL_AssertionHandler = CFuncPtr2[Ptr[SDL_AssertData], Ptr[Byte], SDL_AssertState]
object SDL_AssertionHandler:
given _tag: Tag[SDL_AssertionHandler] = Tag.materializeCFuncPtr2[Ptr[SDL_AssertData], Ptr[Byte], SDL_AssertState]
inline def apply(inline o: CFuncPtr2[Ptr[SDL_AssertData], Ptr[Byte], SDL_AssertState]): SDL_AssertionHandler = o
opaque type SDL_AudioCallback = CFuncPtr3[Ptr[Byte], Ptr[Uint8], CInt, Unit]
object SDL_AudioCallback:
given _tag: Tag[SDL_AudioCallback] = Tag.materializeCFuncPtr3[Ptr[Byte], Ptr[Uint8], CInt, Unit]
inline def apply(inline o: CFuncPtr3[Ptr[Byte], Ptr[Uint8], CInt, Unit]): SDL_AudioCallback = o
type SDL_AudioDeviceID = Uint32
object SDL_AudioDeviceID:
given _tag: Tag[SDL_AudioDeviceID] = Uint32._tag
opaque type SDL_AudioFilter = CFuncPtr2[Ptr[SDL_AudioCVT], SDL_AudioFormat, Unit]
object SDL_AudioFilter:
given _tag: Tag[SDL_AudioFilter] = Tag.materializeCFuncPtr2[Ptr[SDL_AudioCVT], SDL_AudioFormat, Unit]
inline def apply(inline o: CFuncPtr2[Ptr[SDL_AudioCVT], SDL_AudioFormat, Unit]): SDL_AudioFilter = o
type SDL_AudioFormat = Uint16
object SDL_AudioFormat:
given _tag: Tag[SDL_AudioFormat] = Uint16._tag
opaque type SDL_EventFilter = CFuncPtr2[Ptr[Byte], Ptr[SDL_Event], CInt]
object SDL_EventFilter:
given _tag: Tag[SDL_EventFilter] = Tag.materializeCFuncPtr2[Ptr[Byte], Ptr[SDL_Event], CInt]
inline def apply(inline o: CFuncPtr2[Ptr[Byte], Ptr[SDL_Event], CInt]): SDL_EventFilter = o
type SDL_FingerID = Sint64
object SDL_FingerID:
given _tag: Tag[SDL_FingerID] = Sint64._tag
opaque type SDL_GLContext = Ptr[Byte]
object SDL_GLContext:
given _tag: Tag[SDL_GLContext] = Tag.Ptr(Tag.Byte)
inline def apply(inline o: Ptr[Byte]): SDL_GLContext = o
type SDL_GestureID = Sint64
object SDL_GestureID:
given _tag: Tag[SDL_GestureID] = Sint64._tag
opaque type SDL_HintCallback = CFuncPtr4[Ptr[Byte], CString, CString, CString, Unit]
object SDL_HintCallback:
given _tag: Tag[SDL_HintCallback] = Tag.materializeCFuncPtr4[Ptr[Byte], CString, CString, CString, Unit]
inline def apply(inline o: CFuncPtr4[Ptr[Byte], CString, CString, CString, Unit]): SDL_HintCallback = o
opaque type SDL_HitTest = CFuncPtr3[Ptr[SDL_Window], Ptr[SDL_Point], Ptr[Byte], SDL_HitTestResult]
object SDL_HitTest:
given _tag: Tag[SDL_HitTest] = Tag.materializeCFuncPtr3[Ptr[SDL_Window], Ptr[SDL_Point], Ptr[Byte], SDL_HitTestResult]
inline def apply(inline o: CFuncPtr3[Ptr[SDL_Window], Ptr[SDL_Point], Ptr[Byte], SDL_HitTestResult]): SDL_HitTest = o
type SDL_JoystickID = Sint32
object SDL_JoystickID:
given _tag: Tag[SDL_JoystickID] = Sint32._tag
type SDL_Keycode = Sint32
object SDL_Keycode:
given _tag: Tag[SDL_Keycode] = Sint32._tag
opaque type SDL_LogOutputFunction = CFuncPtr4[Ptr[Byte], CInt, SDL_LogPriority, CString, Unit]
object SDL_LogOutputFunction:
given _tag: Tag[SDL_LogOutputFunction] = Tag.materializeCFuncPtr4[Ptr[Byte], CInt, SDL_LogPriority, CString, Unit]
inline def apply(inline o: CFuncPtr4[Ptr[Byte], CInt, SDL_LogPriority, CString, Unit]): SDL_LogOutputFunction = o
opaque type SDL_MetalView = Ptr[Byte]
object SDL_MetalView:
given _tag: Tag[SDL_MetalView] = Tag.Ptr(Tag.Byte)
inline def apply(inline o: Ptr[Byte]): SDL_MetalView = o
type SDL_SensorID = Sint32
object SDL_SensorID:
given _tag: Tag[SDL_SensorID] = Sint32._tag
opaque type SDL_SpinLock = CInt
object SDL_SpinLock:
given _tag: Tag[SDL_SpinLock] = Tag.Int
inline def apply(inline o: CInt): SDL_SpinLock = o
opaque type SDL_TLSID = CUnsignedInt
object SDL_TLSID:
given _tag: Tag[SDL_TLSID] = Tag.UInt
inline def apply(inline o: CUnsignedInt): SDL_TLSID = o
opaque type SDL_ThreadFunction = CFuncPtr1[Ptr[Byte], CInt]
object SDL_ThreadFunction:
given _tag: Tag[SDL_ThreadFunction] = Tag.materializeCFuncPtr1[Ptr[Byte], CInt]
inline def apply(inline o: CFuncPtr1[Ptr[Byte], CInt]): SDL_ThreadFunction = o
opaque type SDL_TimerCallback = CFuncPtr2[Uint32, Ptr[Byte], Uint32]
object SDL_TimerCallback:
given _tag: Tag[SDL_TimerCallback] = Tag.materializeCFuncPtr2[Uint32, Ptr[Byte], Uint32]
inline def apply(inline o: CFuncPtr2[Uint32, Ptr[Byte], Uint32]): SDL_TimerCallback = o
opaque type SDL_TimerID = CInt
object SDL_TimerID:
given _tag: Tag[SDL_TimerID] = Tag.Int
inline def apply(inline o: CInt): SDL_TimerID = o
type SDL_TouchID = Sint64
object SDL_TouchID:
given _tag: Tag[SDL_TouchID] = Sint64._tag
opaque type SDL_blit = CFuncPtr4[Ptr[SDL_Surface], Ptr[SDL_Rect], Ptr[SDL_Surface], Ptr[SDL_Rect], CInt]
object SDL_blit:
given _tag: Tag[SDL_blit] = Tag.materializeCFuncPtr4[Ptr[SDL_Surface], Ptr[SDL_Rect], Ptr[SDL_Surface], Ptr[SDL_Rect], CInt]
inline def apply(inline o: CFuncPtr4[Ptr[SDL_Surface], Ptr[SDL_Rect], Ptr[SDL_Surface], Ptr[SDL_Rect], CInt]): SDL_blit = o
opaque type SDL_calloc_func = CFuncPtr2[size_t, size_t, Ptr[Byte]]
object SDL_calloc_func:
given _tag: Tag[SDL_calloc_func] = Tag.materializeCFuncPtr2[size_t, size_t, Ptr[Byte]]
inline def apply(inline o: CFuncPtr2[size_t, size_t, Ptr[Byte]]): SDL_calloc_func = o
opaque type SDL_compile_time_assert_SDL_Event = CArray[CInt, Nat._1]
object SDL_compile_time_assert_SDL_Event:
given _tag: Tag[SDL_compile_time_assert_SDL_Event] = Tag.CArray[CInt, Nat._1](Tag.Int, Tag.Nat1)
inline def apply(inline o: CArray[CInt, Nat._1]): SDL_compile_time_assert_SDL_Event = o
opaque type SDL_compile_time_assert_enum = CArray[CInt, Nat._1]
object SDL_compile_time_assert_enum:
given _tag: Tag[SDL_compile_time_assert_enum] = Tag.CArray[CInt, Nat._1](Tag.Int, Tag.Nat1)
inline def apply(inline o: CArray[CInt, Nat._1]): SDL_compile_time_assert_enum = o
opaque type SDL_compile_time_assert_sint16 = CArray[CInt, Nat._1]
object SDL_compile_time_assert_sint16:
given _tag: Tag[SDL_compile_time_assert_sint16] = Tag.CArray[CInt, Nat._1](Tag.Int, Tag.Nat1)
inline def apply(inline o: CArray[CInt, Nat._1]): SDL_compile_time_assert_sint16 = o
opaque type SDL_compile_time_assert_sint32 = CArray[CInt, Nat._1]
object SDL_compile_time_assert_sint32:
given _tag: Tag[SDL_compile_time_assert_sint32] = Tag.CArray[CInt, Nat._1](Tag.Int, Tag.Nat1)
inline def apply(inline o: CArray[CInt, Nat._1]): SDL_compile_time_assert_sint32 = o
opaque type SDL_compile_time_assert_sint64 = CArray[CInt, Nat._1]
object SDL_compile_time_assert_sint64:
given _tag: Tag[SDL_compile_time_assert_sint64] = Tag.CArray[CInt, Nat._1](Tag.Int, Tag.Nat1)
inline def apply(inline o: CArray[CInt, Nat._1]): SDL_compile_time_assert_sint64 = o
opaque type SDL_compile_time_assert_sint8 = CArray[CInt, Nat._1]
object SDL_compile_time_assert_sint8:
given _tag: Tag[SDL_compile_time_assert_sint8] = Tag.CArray[CInt, Nat._1](Tag.Int, Tag.Nat1)
inline def apply(inline o: CArray[CInt, Nat._1]): SDL_compile_time_assert_sint8 = o
opaque type SDL_compile_time_assert_uint16 = CArray[CInt, Nat._1]
object SDL_compile_time_assert_uint16:
given _tag: Tag[SDL_compile_time_assert_uint16] = Tag.CArray[CInt, Nat._1](Tag.Int, Tag.Nat1)
inline def apply(inline o: CArray[CInt, Nat._1]): SDL_compile_time_assert_uint16 = o
opaque type SDL_compile_time_assert_uint32 = CArray[CInt, Nat._1]
object SDL_compile_time_assert_uint32:
given _tag: Tag[SDL_compile_time_assert_uint32] = Tag.CArray[CInt, Nat._1](Tag.Int, Tag.Nat1)
inline def apply(inline o: CArray[CInt, Nat._1]): SDL_compile_time_assert_uint32 = o
opaque type SDL_compile_time_assert_uint64 = CArray[CInt, Nat._1]
object SDL_compile_time_assert_uint64:
given _tag: Tag[SDL_compile_time_assert_uint64] = Tag.CArray[CInt, Nat._1](Tag.Int, Tag.Nat1)
inline def apply(inline o: CArray[CInt, Nat._1]): SDL_compile_time_assert_uint64 = o
opaque type SDL_compile_time_assert_uint8 = CArray[CInt, Nat._1]
object SDL_compile_time_assert_uint8:
given _tag: Tag[SDL_compile_time_assert_uint8] = Tag.CArray[CInt, Nat._1](Tag.Int, Tag.Nat1)
inline def apply(inline o: CArray[CInt, Nat._1]): SDL_compile_time_assert_uint8 = o
opaque type SDL_free_func = CFuncPtr1[Ptr[Byte], Unit]
object SDL_free_func:
given _tag: Tag[SDL_free_func] = Tag.materializeCFuncPtr1[Ptr[Byte], Unit]
inline def apply(inline o: CFuncPtr1[Ptr[Byte], Unit]): SDL_free_func = o
opaque type SDL_iconv_t = Ptr[_SDL_iconv_t]
object SDL_iconv_t:
given _tag: Tag[SDL_iconv_t] = Tag.Ptr[_SDL_iconv_t](_SDL_iconv_t._tag)
inline def apply(inline o: Ptr[_SDL_iconv_t]): SDL_iconv_t = o
opaque type SDL_main_func = CFuncPtr2[CInt, Unit, CInt]
object SDL_main_func:
given _tag: Tag[SDL_main_func] = Tag.materializeCFuncPtr2[CInt, Unit, CInt]
inline def apply(inline o: CFuncPtr2[CInt, Unit, CInt]): SDL_main_func = o
opaque type SDL_malloc_func = CFuncPtr1[size_t, Ptr[Byte]]
object SDL_malloc_func:
given _tag: Tag[SDL_malloc_func] = Tag.materializeCFuncPtr1[size_t, Ptr[Byte]]
inline def apply(inline o: CFuncPtr1[size_t, Ptr[Byte]]): SDL_malloc_func = o
opaque type SDL_realloc_func = CFuncPtr2[Ptr[Byte], size_t, Ptr[Byte]]
object SDL_realloc_func:
given _tag: Tag[SDL_realloc_func] = Tag.materializeCFuncPtr2[Ptr[Byte], size_t, Ptr[Byte]]
inline def apply(inline o: CFuncPtr2[Ptr[Byte], size_t, Ptr[Byte]]): SDL_realloc_func = o
opaque type SDL_threadID = CUnsignedLongInt
object SDL_threadID:
given _tag: Tag[SDL_threadID] = Tag.ULong
inline def apply(inline o: CUnsignedLongInt): SDL_threadID = o
type Sint16 = int16_t
object Sint16:
given _tag: Tag[Sint16] = int16_t._tag
type Sint32 = int32_t
object Sint32:
given _tag: Tag[Sint32] = int32_t._tag
type Sint64 = int64_t
object Sint64:
given _tag: Tag[Sint64] = int64_t._tag
type Sint8 = int8_t
object Sint8:
given _tag: Tag[Sint8] = int8_t._tag
type Uint16 = uint16_t
object Uint16:
given _tag: Tag[Uint16] = uint16_t._tag
type Uint32 = uint32_t
object Uint32:
given _tag: Tag[Uint32] = uint32_t._tag
type Uint64 = uint64_t
object Uint64:
given _tag: Tag[Uint64] = uint64_t._tag
type Uint8 = uint8_t
object Uint8:
given _tag: Tag[Uint8] = uint8_t._tag
opaque type __int64_t = CLongInt
object __int64_t:
given _tag: Tag[__int64_t] = Tag.Long
inline def apply(inline o: CLongInt): __int64_t = o
opaque type __uint64_t = CUnsignedLongInt
object __uint64_t:
given _tag: Tag[__uint64_t] = Tag.ULong
inline def apply(inline o: CUnsignedLongInt): __uint64_t = o
type int16_t = scala.Short
object int16_t:
val _tag: Tag[int16_t] = summon[Tag[scala.Short]]
type int32_t = scala.scalanative.unsafe.CInt
object int32_t:
val _tag: Tag[int32_t] = summon[Tag[scala.scalanative.unsafe.CInt]]
type int64_t = __int64_t
object int64_t:
given _tag: Tag[int64_t] = __int64_t._tag
type int8_t = scala.scalanative.unsafe.CChar
object int8_t:
val _tag: Tag[int8_t] = summon[Tag[scala.scalanative.unsafe.CChar]]
type size_t = scala.scalanative.unsafe.CSize
object size_t:
val _tag: Tag[size_t] = summon[Tag[scala.scalanative.unsafe.CSize]]
type uint16_t = scala.scalanative.unsigned.UShort
object uint16_t:
val _tag: Tag[uint16_t] = summon[Tag[scala.scalanative.unsigned.UShort]]
type uint32_t = scala.scalanative.unsigned.UInt
object uint32_t:
val _tag: Tag[uint32_t] = summon[Tag[scala.scalanative.unsigned.UInt]]
type uint64_t = __uint64_t
object uint64_t:
given _tag: Tag[uint64_t] = __uint64_t._tag
type uint8_t = scala.scalanative.unsigned.UByte
object uint8_t:
val _tag: Tag[uint8_t] = summon[Tag[scala.scalanative.unsigned.UByte]]
type va_list = scala.scalanative.unsafe.CVarArgList
object va_list:
val _tag: Tag[va_list] = summon[Tag[scala.scalanative.unsafe.CVarArgList]]
opaque type wchar_t = CInt
object wchar_t:
given _tag: Tag[wchar_t] = Tag.Int
inline def apply(inline o: CInt): wchar_t = o
opaque type SDL_AssertData = CStruct7[CInt, CUnsignedInt, CString, CString, CInt, CString, Ptr[Byte]]
object SDL_AssertData:
given _tag: Tag[SDL_AssertData] = Tag.materializeCStruct7Tag[CInt, CUnsignedInt, CString, CString, CInt, CString, Ptr[Byte]]
def apply()(using Zone): Ptr[SDL_AssertData] = scala.scalanative.unsafe.alloc[SDL_AssertData](1)
def apply(always_ignore: CInt, trigger_count: CUnsignedInt, condition: CString, filename: CString, linenum: CInt, function: CString, next: Ptr[SDL_AssertData])(using Zone): Ptr[SDL_AssertData] =
val ____ptr = apply()
(!____ptr).always_ignore = always_ignore
(!____ptr).trigger_count = trigger_count
(!____ptr).condition = condition
(!____ptr).filename = filename
(!____ptr).linenum = linenum
(!____ptr).function = function
(!____ptr).next = next
____ptr
extension (struct: SDL_AssertData)
def always_ignore: CInt = struct._1
def always_ignore_=(value: CInt): Unit = !struct.at1 = value
def trigger_count: CUnsignedInt = struct._2
def trigger_count_=(value: CUnsignedInt): Unit = !struct.at2 = value
def condition: CString = struct._3
def condition_=(value: CString): Unit = !struct.at3 = value
def filename: CString = struct._4
def filename_=(value: CString): Unit = !struct.at4 = value
def linenum: CInt = struct._5
def linenum_=(value: CInt): Unit = !struct.at5 = value
def function: CString = struct._6
def function_=(value: CString): Unit = !struct.at6 = value
def next: Ptr[SDL_AssertData] = struct._7.asInstanceOf[Ptr[SDL_AssertData]]
def next_=(value: Ptr[SDL_AssertData]): Unit = !struct.at7 = value.asInstanceOf[Ptr[Byte]]
opaque type SDL_AudioCVT = CStruct11[CInt, SDL_AudioFormat, SDL_AudioFormat, Double, Ptr[Uint8], CInt, CInt, CInt, Double, CArray[SDL_AudioFilter, Nat.Digit2[Nat._1, Nat._0]], CInt]
object SDL_AudioCVT:
given _tag: Tag[SDL_AudioCVT] = Tag.materializeCStruct11Tag[CInt, SDL_AudioFormat, SDL_AudioFormat, Double, Ptr[Uint8], CInt, CInt, CInt, Double, CArray[SDL_AudioFilter, Nat.Digit2[Nat._1, Nat._0]], CInt]
def apply()(using Zone): Ptr[SDL_AudioCVT] = scala.scalanative.unsafe.alloc[SDL_AudioCVT](1)
def apply(needed: CInt, src_format: SDL_AudioFormat, dst_format: SDL_AudioFormat, rate_incr: Double, buf: Ptr[Uint8], len: CInt, len_cvt: CInt, len_mult: CInt, len_ratio: Double, filters: CArray[SDL_AudioFilter, Nat.Digit2[Nat._1, Nat._0]], filter_index: CInt)(using Zone): Ptr[SDL_AudioCVT] =
val ____ptr = apply()
(!____ptr).needed = needed
(!____ptr).src_format = src_format
(!____ptr).dst_format = dst_format
(!____ptr).rate_incr = rate_incr
(!____ptr).buf = buf
(!____ptr).len = len
(!____ptr).len_cvt = len_cvt
(!____ptr).len_mult = len_mult
(!____ptr).len_ratio = len_ratio
(!____ptr).filters = filters
(!____ptr).filter_index = filter_index
____ptr
extension (struct: SDL_AudioCVT)
def needed: CInt = struct._1
def needed_=(value: CInt): Unit = !struct.at1 = value
def src_format: SDL_AudioFormat = struct._2
def src_format_=(value: SDL_AudioFormat): Unit = !struct.at2 = value
def dst_format: SDL_AudioFormat = struct._3
def dst_format_=(value: SDL_AudioFormat): Unit = !struct.at3 = value
def rate_incr: Double = struct._4
def rate_incr_=(value: Double): Unit = !struct.at4 = value
def buf: Ptr[Uint8] = struct._5
def buf_=(value: Ptr[Uint8]): Unit = !struct.at5 = value
def len: CInt = struct._6
def len_=(value: CInt): Unit = !struct.at6 = value
def len_cvt: CInt = struct._7
def len_cvt_=(value: CInt): Unit = !struct.at7 = value
def len_mult: CInt = struct._8
def len_mult_=(value: CInt): Unit = !struct.at8 = value
def len_ratio: Double = struct._9
def len_ratio_=(value: Double): Unit = !struct.at9 = value
def filters: CArray[SDL_AudioFilter, Nat.Digit2[Nat._1, Nat._0]] = struct._10
def filters_=(value: CArray[SDL_AudioFilter, Nat.Digit2[Nat._1, Nat._0]]): Unit = !struct.at10 = value
def filter_index: CInt = struct._11
def filter_index_=(value: CInt): Unit = !struct.at11 = value
opaque type SDL_AudioDeviceEvent = CStruct7[Uint32, Uint32, Uint32, Uint8, Uint8, Uint8, Uint8]
object SDL_AudioDeviceEvent:
given _tag: Tag[SDL_AudioDeviceEvent] = Tag.materializeCStruct7Tag[Uint32, Uint32, Uint32, Uint8, Uint8, Uint8, Uint8]
def apply()(using Zone): Ptr[SDL_AudioDeviceEvent] = scala.scalanative.unsafe.alloc[SDL_AudioDeviceEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, which: Uint32, iscapture: Uint8, padding1: Uint8, padding2: Uint8, padding3: Uint8)(using Zone): Ptr[SDL_AudioDeviceEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).which = which
(!____ptr).iscapture = iscapture
(!____ptr).padding1 = padding1
(!____ptr).padding2 = padding2
(!____ptr).padding3 = padding3
____ptr
extension (struct: SDL_AudioDeviceEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def which: Uint32 = struct._3
def which_=(value: Uint32): Unit = !struct.at3 = value
def iscapture: Uint8 = struct._4
def iscapture_=(value: Uint8): Unit = !struct.at4 = value
def padding1: Uint8 = struct._5
def padding1_=(value: Uint8): Unit = !struct.at5 = value
def padding2: Uint8 = struct._6
def padding2_=(value: Uint8): Unit = !struct.at6 = value
def padding3: Uint8 = struct._7
def padding3_=(value: Uint8): Unit = !struct.at7 = value
opaque type SDL_AudioSpec = CStruct9[CInt, SDL_AudioFormat, Uint8, Uint8, Uint16, Uint16, Uint32, SDL_AudioCallback, Ptr[Byte]]
object SDL_AudioSpec:
given _tag: Tag[SDL_AudioSpec] = Tag.materializeCStruct9Tag[CInt, SDL_AudioFormat, Uint8, Uint8, Uint16, Uint16, Uint32, SDL_AudioCallback, Ptr[Byte]]
def apply()(using Zone): Ptr[SDL_AudioSpec] = scala.scalanative.unsafe.alloc[SDL_AudioSpec](1)
def apply(freq: CInt, format: SDL_AudioFormat, channels: Uint8, silence: Uint8, samples: Uint16, padding: Uint16, size: Uint32, callback: SDL_AudioCallback, userdata: Ptr[Byte])(using Zone): Ptr[SDL_AudioSpec] =
val ____ptr = apply()
(!____ptr).freq = freq
(!____ptr).format = format
(!____ptr).channels = channels
(!____ptr).silence = silence
(!____ptr).samples = samples
(!____ptr).padding = padding
(!____ptr).size = size
(!____ptr).callback = callback
(!____ptr).userdata = userdata
____ptr
extension (struct: SDL_AudioSpec)
def freq: CInt = struct._1
def freq_=(value: CInt): Unit = !struct.at1 = value
def format: SDL_AudioFormat = struct._2
def format_=(value: SDL_AudioFormat): Unit = !struct.at2 = value
def channels: Uint8 = struct._3
def channels_=(value: Uint8): Unit = !struct.at3 = value
def silence: Uint8 = struct._4
def silence_=(value: Uint8): Unit = !struct.at4 = value
def samples: Uint16 = struct._5
def samples_=(value: Uint16): Unit = !struct.at5 = value
def padding: Uint16 = struct._6
def padding_=(value: Uint16): Unit = !struct.at6 = value
def size: Uint32 = struct._7
def size_=(value: Uint32): Unit = !struct.at7 = value
def callback: SDL_AudioCallback = struct._8
def callback_=(value: SDL_AudioCallback): Unit = !struct.at8 = value
def userdata: Ptr[Byte] = struct._9
def userdata_=(value: Ptr[Byte]): Unit = !struct.at9 = value
opaque type SDL_AudioStream = CStruct0
object SDL_AudioStream:
given _tag: Tag[SDL_AudioStream] = Tag.materializeCStruct0Tag
opaque type SDL_BlitMap = CStruct0
object SDL_BlitMap:
given _tag: Tag[SDL_BlitMap] = Tag.materializeCStruct0Tag
opaque type SDL_Color = CStruct4[Uint8, Uint8, Uint8, Uint8]
object SDL_Color:
given _tag: Tag[SDL_Color] = Tag.materializeCStruct4Tag[Uint8, Uint8, Uint8, Uint8]
def apply()(using Zone): Ptr[SDL_Color] = scala.scalanative.unsafe.alloc[SDL_Color](1)
def apply(r: Uint8, g: Uint8, b: Uint8, a: Uint8)(using Zone): Ptr[SDL_Color] =
val ____ptr = apply()
(!____ptr).r = r
(!____ptr).g = g
(!____ptr).b = b
(!____ptr).a = a
____ptr
extension (struct: SDL_Color)
def r: Uint8 = struct._1
def r_=(value: Uint8): Unit = !struct.at1 = value
def g: Uint8 = struct._2
def g_=(value: Uint8): Unit = !struct.at2 = value
def b: Uint8 = struct._3
def b_=(value: Uint8): Unit = !struct.at3 = value
def a: Uint8 = struct._4
def a_=(value: Uint8): Unit = !struct.at4 = value
opaque type SDL_CommonEvent = CStruct2[Uint32, Uint32]
object SDL_CommonEvent:
given _tag: Tag[SDL_CommonEvent] = Tag.materializeCStruct2Tag[Uint32, Uint32]
def apply()(using Zone): Ptr[SDL_CommonEvent] = scala.scalanative.unsafe.alloc[SDL_CommonEvent](1)
def apply(`type`: Uint32, timestamp: Uint32)(using Zone): Ptr[SDL_CommonEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
____ptr
extension (struct: SDL_CommonEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
opaque type SDL_ControllerAxisEvent = CStruct9[Uint32, Uint32, SDL_JoystickID, Uint8, Uint8, Uint8, Uint8, Sint16, Uint16]
object SDL_ControllerAxisEvent:
given _tag: Tag[SDL_ControllerAxisEvent] = Tag.materializeCStruct9Tag[Uint32, Uint32, SDL_JoystickID, Uint8, Uint8, Uint8, Uint8, Sint16, Uint16]
def apply()(using Zone): Ptr[SDL_ControllerAxisEvent] = scala.scalanative.unsafe.alloc[SDL_ControllerAxisEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, which: SDL_JoystickID, axis: Uint8, padding1: Uint8, padding2: Uint8, padding3: Uint8, value: Sint16, padding4: Uint16)(using Zone): Ptr[SDL_ControllerAxisEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).which = which
(!____ptr).axis = axis
(!____ptr).padding1 = padding1
(!____ptr).padding2 = padding2
(!____ptr).padding3 = padding3
(!____ptr).value = value
(!____ptr).padding4 = padding4
____ptr
extension (struct: SDL_ControllerAxisEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def which: SDL_JoystickID = struct._3
def which_=(value: SDL_JoystickID): Unit = !struct.at3 = value
def axis: Uint8 = struct._4
def axis_=(value: Uint8): Unit = !struct.at4 = value
def padding1: Uint8 = struct._5
def padding1_=(value: Uint8): Unit = !struct.at5 = value
def padding2: Uint8 = struct._6
def padding2_=(value: Uint8): Unit = !struct.at6 = value
def padding3: Uint8 = struct._7
def padding3_=(value: Uint8): Unit = !struct.at7 = value
def value: Sint16 = struct._8
def value_=(value: Sint16): Unit = !struct.at8 = value
def padding4: Uint16 = struct._9
def padding4_=(value: Uint16): Unit = !struct.at9 = value
opaque type SDL_ControllerButtonEvent = CStruct7[Uint32, Uint32, SDL_JoystickID, Uint8, Uint8, Uint8, Uint8]
object SDL_ControllerButtonEvent:
given _tag: Tag[SDL_ControllerButtonEvent] = Tag.materializeCStruct7Tag[Uint32, Uint32, SDL_JoystickID, Uint8, Uint8, Uint8, Uint8]
def apply()(using Zone): Ptr[SDL_ControllerButtonEvent] = scala.scalanative.unsafe.alloc[SDL_ControllerButtonEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, which: SDL_JoystickID, button: Uint8, state: Uint8, padding1: Uint8, padding2: Uint8)(using Zone): Ptr[SDL_ControllerButtonEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).which = which
(!____ptr).button = button
(!____ptr).state = state
(!____ptr).padding1 = padding1
(!____ptr).padding2 = padding2
____ptr
extension (struct: SDL_ControllerButtonEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def which: SDL_JoystickID = struct._3
def which_=(value: SDL_JoystickID): Unit = !struct.at3 = value
def button: Uint8 = struct._4
def button_=(value: Uint8): Unit = !struct.at4 = value
def state: Uint8 = struct._5
def state_=(value: Uint8): Unit = !struct.at5 = value
def padding1: Uint8 = struct._6
def padding1_=(value: Uint8): Unit = !struct.at6 = value
def padding2: Uint8 = struct._7
def padding2_=(value: Uint8): Unit = !struct.at7 = value
opaque type SDL_ControllerDeviceEvent = CStruct3[Uint32, Uint32, Sint32]
object SDL_ControllerDeviceEvent:
given _tag: Tag[SDL_ControllerDeviceEvent] = Tag.materializeCStruct3Tag[Uint32, Uint32, Sint32]
def apply()(using Zone): Ptr[SDL_ControllerDeviceEvent] = scala.scalanative.unsafe.alloc[SDL_ControllerDeviceEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, which: Sint32)(using Zone): Ptr[SDL_ControllerDeviceEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).which = which
____ptr
extension (struct: SDL_ControllerDeviceEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def which: Sint32 = struct._3
def which_=(value: Sint32): Unit = !struct.at3 = value
opaque type SDL_ControllerSensorEvent = CStruct5[Uint32, Uint32, SDL_JoystickID, Sint32, CArray[Float, Nat._3]]
object SDL_ControllerSensorEvent:
given _tag: Tag[SDL_ControllerSensorEvent] = Tag.materializeCStruct5Tag[Uint32, Uint32, SDL_JoystickID, Sint32, CArray[Float, Nat._3]]
def apply()(using Zone): Ptr[SDL_ControllerSensorEvent] = scala.scalanative.unsafe.alloc[SDL_ControllerSensorEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, which: SDL_JoystickID, sensor: Sint32, data: CArray[Float, Nat._3])(using Zone): Ptr[SDL_ControllerSensorEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).which = which
(!____ptr).sensor = sensor
(!____ptr).data = data
____ptr
extension (struct: SDL_ControllerSensorEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def which: SDL_JoystickID = struct._3
def which_=(value: SDL_JoystickID): Unit = !struct.at3 = value
def sensor: Sint32 = struct._4
def sensor_=(value: Sint32): Unit = !struct.at4 = value
def data: CArray[Float, Nat._3] = struct._5
def data_=(value: CArray[Float, Nat._3]): Unit = !struct.at5 = value
opaque type SDL_ControllerTouchpadEvent = CStruct8[Uint32, Uint32, SDL_JoystickID, Sint32, Sint32, Float, Float, Float]
object SDL_ControllerTouchpadEvent:
given _tag: Tag[SDL_ControllerTouchpadEvent] = Tag.materializeCStruct8Tag[Uint32, Uint32, SDL_JoystickID, Sint32, Sint32, Float, Float, Float]
def apply()(using Zone): Ptr[SDL_ControllerTouchpadEvent] = scala.scalanative.unsafe.alloc[SDL_ControllerTouchpadEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, which: SDL_JoystickID, touchpad: Sint32, finger: Sint32, x: Float, y: Float, pressure: Float)(using Zone): Ptr[SDL_ControllerTouchpadEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).which = which
(!____ptr).touchpad = touchpad
(!____ptr).finger = finger
(!____ptr).x = x
(!____ptr).y = y
(!____ptr).pressure = pressure
____ptr
extension (struct: SDL_ControllerTouchpadEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def which: SDL_JoystickID = struct._3
def which_=(value: SDL_JoystickID): Unit = !struct.at3 = value
def touchpad: Sint32 = struct._4
def touchpad_=(value: Sint32): Unit = !struct.at4 = value
def finger: Sint32 = struct._5
def finger_=(value: Sint32): Unit = !struct.at5 = value
def x: Float = struct._6
def x_=(value: Float): Unit = !struct.at6 = value
def y: Float = struct._7
def y_=(value: Float): Unit = !struct.at7 = value
def pressure: Float = struct._8
def pressure_=(value: Float): Unit = !struct.at8 = value
opaque type SDL_Cursor = CStruct0
object SDL_Cursor:
given _tag: Tag[SDL_Cursor] = Tag.materializeCStruct0Tag
opaque type SDL_DisplayEvent = CStruct8[Uint32, Uint32, Uint32, Uint8, Uint8, Uint8, Uint8, Sint32]
object SDL_DisplayEvent:
given _tag: Tag[SDL_DisplayEvent] = Tag.materializeCStruct8Tag[Uint32, Uint32, Uint32, Uint8, Uint8, Uint8, Uint8, Sint32]
def apply()(using Zone): Ptr[SDL_DisplayEvent] = scala.scalanative.unsafe.alloc[SDL_DisplayEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, display: Uint32, event: Uint8, padding1: Uint8, padding2: Uint8, padding3: Uint8, data1: Sint32)(using Zone): Ptr[SDL_DisplayEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).display = display
(!____ptr).event = event
(!____ptr).padding1 = padding1
(!____ptr).padding2 = padding2
(!____ptr).padding3 = padding3
(!____ptr).data1 = data1
____ptr
extension (struct: SDL_DisplayEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def display: Uint32 = struct._3
def display_=(value: Uint32): Unit = !struct.at3 = value
def event: Uint8 = struct._4
def event_=(value: Uint8): Unit = !struct.at4 = value
def padding1: Uint8 = struct._5
def padding1_=(value: Uint8): Unit = !struct.at5 = value
def padding2: Uint8 = struct._6
def padding2_=(value: Uint8): Unit = !struct.at6 = value
def padding3: Uint8 = struct._7
def padding3_=(value: Uint8): Unit = !struct.at7 = value
def data1: Sint32 = struct._8
def data1_=(value: Sint32): Unit = !struct.at8 = value
opaque type SDL_DisplayMode = CStruct5[Uint32, CInt, CInt, CInt, Ptr[Byte]]
object SDL_DisplayMode:
given _tag: Tag[SDL_DisplayMode] = Tag.materializeCStruct5Tag[Uint32, CInt, CInt, CInt, Ptr[Byte]]
def apply()(using Zone): Ptr[SDL_DisplayMode] = scala.scalanative.unsafe.alloc[SDL_DisplayMode](1)
def apply(format: Uint32, w: CInt, h: CInt, refresh_rate: CInt, driverdata: Ptr[Byte])(using Zone): Ptr[SDL_DisplayMode] =
val ____ptr = apply()
(!____ptr).format = format
(!____ptr).w = w
(!____ptr).h = h
(!____ptr).refresh_rate = refresh_rate
(!____ptr).driverdata = driverdata
____ptr
extension (struct: SDL_DisplayMode)
def format: Uint32 = struct._1
def format_=(value: Uint32): Unit = !struct.at1 = value
def w: CInt = struct._2
def w_=(value: CInt): Unit = !struct.at2 = value
def h: CInt = struct._3
def h_=(value: CInt): Unit = !struct.at3 = value
def refresh_rate: CInt = struct._4
def refresh_rate_=(value: CInt): Unit = !struct.at4 = value
def driverdata: Ptr[Byte] = struct._5
def driverdata_=(value: Ptr[Byte]): Unit = !struct.at5 = value
opaque type SDL_DollarGestureEvent = CStruct8[Uint32, Uint32, SDL_TouchID, SDL_GestureID, Uint32, Float, Float, Float]
object SDL_DollarGestureEvent:
given _tag: Tag[SDL_DollarGestureEvent] = Tag.materializeCStruct8Tag[Uint32, Uint32, SDL_TouchID, SDL_GestureID, Uint32, Float, Float, Float]
def apply()(using Zone): Ptr[SDL_DollarGestureEvent] = scala.scalanative.unsafe.alloc[SDL_DollarGestureEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, touchId: SDL_TouchID, gestureId: SDL_GestureID, numFingers: Uint32, error: Float, x: Float, y: Float)(using Zone): Ptr[SDL_DollarGestureEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).touchId = touchId
(!____ptr).gestureId = gestureId
(!____ptr).numFingers = numFingers
(!____ptr).error = error
(!____ptr).x = x
(!____ptr).y = y
____ptr
extension (struct: SDL_DollarGestureEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def touchId: SDL_TouchID = struct._3
def touchId_=(value: SDL_TouchID): Unit = !struct.at3 = value
def gestureId: SDL_GestureID = struct._4
def gestureId_=(value: SDL_GestureID): Unit = !struct.at4 = value
def numFingers: Uint32 = struct._5
def numFingers_=(value: Uint32): Unit = !struct.at5 = value
def error: Float = struct._6
def error_=(value: Float): Unit = !struct.at6 = value
def x: Float = struct._7
def x_=(value: Float): Unit = !struct.at7 = value
def y: Float = struct._8
def y_=(value: Float): Unit = !struct.at8 = value
opaque type SDL_DropEvent = CStruct4[Uint32, Uint32, CString, Uint32]
object SDL_DropEvent:
given _tag: Tag[SDL_DropEvent] = Tag.materializeCStruct4Tag[Uint32, Uint32, CString, Uint32]
def apply()(using Zone): Ptr[SDL_DropEvent] = scala.scalanative.unsafe.alloc[SDL_DropEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, file: CString, windowID: Uint32)(using Zone): Ptr[SDL_DropEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).file = file
(!____ptr).windowID = windowID
____ptr
extension (struct: SDL_DropEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def file: CString = struct._3
def file_=(value: CString): Unit = !struct.at3 = value
def windowID: Uint32 = struct._4
def windowID_=(value: Uint32): Unit = !struct.at4 = value
opaque type SDL_FPoint = CStruct2[Float, Float]
object SDL_FPoint:
given _tag: Tag[SDL_FPoint] = Tag.materializeCStruct2Tag[Float, Float]
def apply()(using Zone): Ptr[SDL_FPoint] = scala.scalanative.unsafe.alloc[SDL_FPoint](1)
def apply(x: Float, y: Float)(using Zone): Ptr[SDL_FPoint] =
val ____ptr = apply()
(!____ptr).x = x
(!____ptr).y = y
____ptr
extension (struct: SDL_FPoint)
def x: Float = struct._1
def x_=(value: Float): Unit = !struct.at1 = value
def y: Float = struct._2
def y_=(value: Float): Unit = !struct.at2 = value
opaque type SDL_FRect = CStruct4[Float, Float, Float, Float]
object SDL_FRect:
given _tag: Tag[SDL_FRect] = Tag.materializeCStruct4Tag[Float, Float, Float, Float]
def apply()(using Zone): Ptr[SDL_FRect] = scala.scalanative.unsafe.alloc[SDL_FRect](1)
def apply(x: Float, y: Float, w: Float, h: Float)(using Zone): Ptr[SDL_FRect] =
val ____ptr = apply()
(!____ptr).x = x
(!____ptr).y = y
(!____ptr).w = w
(!____ptr).h = h
____ptr
extension (struct: SDL_FRect)
def x: Float = struct._1
def x_=(value: Float): Unit = !struct.at1 = value
def y: Float = struct._2
def y_=(value: Float): Unit = !struct.at2 = value
def w: Float = struct._3
def w_=(value: Float): Unit = !struct.at3 = value
def h: Float = struct._4
def h_=(value: Float): Unit = !struct.at4 = value
opaque type SDL_Finger = CStruct4[SDL_FingerID, Float, Float, Float]
object SDL_Finger:
given _tag: Tag[SDL_Finger] = Tag.materializeCStruct4Tag[SDL_FingerID, Float, Float, Float]
def apply()(using Zone): Ptr[SDL_Finger] = scala.scalanative.unsafe.alloc[SDL_Finger](1)
def apply(id: SDL_FingerID, x: Float, y: Float, pressure: Float)(using Zone): Ptr[SDL_Finger] =
val ____ptr = apply()
(!____ptr).id = id
(!____ptr).x = x
(!____ptr).y = y
(!____ptr).pressure = pressure
____ptr
extension (struct: SDL_Finger)
def id: SDL_FingerID = struct._1
def id_=(value: SDL_FingerID): Unit = !struct.at1 = value
def x: Float = struct._2
def x_=(value: Float): Unit = !struct.at2 = value
def y: Float = struct._3
def y_=(value: Float): Unit = !struct.at3 = value
def pressure: Float = struct._4
def pressure_=(value: Float): Unit = !struct.at4 = value
opaque type SDL_GameController = CStruct0
object SDL_GameController:
given _tag: Tag[SDL_GameController] = Tag.materializeCStruct0Tag
opaque type SDL_GameControllerButtonBind = CStruct2[SDL_GameControllerBindType, SDL_GameControllerButtonBind.Union0]
object SDL_GameControllerButtonBind:
opaque type Union0 = CArray[Byte, Nat._8]
object Union0:
opaque type Struct0 = CStruct2[CInt, CInt]
object Struct0:
given _tag: Tag[Struct0] = Tag.materializeCStruct2Tag[CInt, CInt]
def apply()(using Zone): Ptr[Struct0] = scala.scalanative.unsafe.alloc[Struct0](1)
def apply(hat: CInt, hat_mask: CInt)(using Zone): Ptr[Struct0] =
val ____ptr = apply()
(!____ptr).hat = hat
(!____ptr).hat_mask = hat_mask
____ptr
extension (struct: Struct0)
def hat: CInt = struct._1
def hat_=(value: CInt): Unit = !struct.at1 = value
def hat_mask: CInt = struct._2
def hat_mask_=(value: CInt): Unit = !struct.at2 = value
given _tag: Tag[Union0] = Tag.CArray[CChar, Nat._8](Tag.Byte, Tag.Nat8)
def apply()(using Zone): Ptr[Union0] =
val ___ptr = alloc[Union0](1)
___ptr
@scala.annotation.targetName("apply_button")
def apply(button: CInt)(using Zone): Ptr[Union0] =
val ___ptr = alloc[Union0](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[CInt]].update(0, button)
___ptr
@scala.annotation.targetName("apply_axis")
def apply(axis: CInt)(using Zone): Ptr[Union0] =
val ___ptr = alloc[Union0](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[CInt]].update(0, axis)
___ptr
@scala.annotation.targetName("apply_hat")
def apply(hat: SDL_GameControllerButtonBind.Union0.Struct0)(using Zone): Ptr[Union0] =
val ___ptr = alloc[Union0](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_GameControllerButtonBind.Union0.Struct0]].update(0, hat)
___ptr
extension (struct: Union0)
def button: CInt = !struct.at(0).asInstanceOf[Ptr[CInt]]
def button_=(value: CInt): Unit = !struct.at(0).asInstanceOf[Ptr[CInt]] = value
def axis: CInt = !struct.at(0).asInstanceOf[Ptr[CInt]]
def axis_=(value: CInt): Unit = !struct.at(0).asInstanceOf[Ptr[CInt]] = value
def hat: SDL_GameControllerButtonBind.Union0.Struct0 = !struct.at(0).asInstanceOf[Ptr[SDL_GameControllerButtonBind.Union0.Struct0]]
def hat_=(value: SDL_GameControllerButtonBind.Union0.Struct0): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_GameControllerButtonBind.Union0.Struct0]] = value
given _tag: Tag[SDL_GameControllerButtonBind] = Tag.materializeCStruct2Tag[SDL_GameControllerBindType, SDL_GameControllerButtonBind.Union0]
def apply()(using Zone): Ptr[SDL_GameControllerButtonBind] = scala.scalanative.unsafe.alloc[SDL_GameControllerButtonBind](1)
def apply(bindType: SDL_GameControllerBindType, value: SDL_GameControllerButtonBind.Union0)(using Zone): Ptr[SDL_GameControllerButtonBind] =
val ____ptr = apply()
(!____ptr).bindType = bindType
(!____ptr).value = value
____ptr
extension (struct: SDL_GameControllerButtonBind)
def bindType: SDL_GameControllerBindType = struct._1
def bindType_=(value: SDL_GameControllerBindType): Unit = !struct.at1 = value
def value: SDL_GameControllerButtonBind.Union0 = struct._2
def value_=(value: SDL_GameControllerButtonBind.Union0): Unit = !struct.at2 = value
opaque type SDL_Haptic = CStruct0
object SDL_Haptic:
given _tag: Tag[SDL_Haptic] = Tag.materializeCStruct0Tag
opaque type SDL_HapticCondition = CStruct12[Uint16, SDL_HapticDirection, Uint32, Uint16, Uint16, Uint16, CArray[Uint16, Nat._3], CArray[Uint16, Nat._3], CArray[Sint16, Nat._3], CArray[Sint16, Nat._3], CArray[Uint16, Nat._3], CArray[Sint16, Nat._3]]
object SDL_HapticCondition:
given _tag: Tag[SDL_HapticCondition] = Tag.materializeCStruct12Tag[Uint16, SDL_HapticDirection, Uint32, Uint16, Uint16, Uint16, CArray[Uint16, Nat._3], CArray[Uint16, Nat._3], CArray[Sint16, Nat._3], CArray[Sint16, Nat._3], CArray[Uint16, Nat._3], CArray[Sint16, Nat._3]]
def apply()(using Zone): Ptr[SDL_HapticCondition] = scala.scalanative.unsafe.alloc[SDL_HapticCondition](1)
def apply(`type`: Uint16, direction: SDL_HapticDirection, length: Uint32, delay: Uint16, button: Uint16, interval: Uint16, right_sat: CArray[Uint16, Nat._3], left_sat: CArray[Uint16, Nat._3], right_coeff: CArray[Sint16, Nat._3], left_coeff: CArray[Sint16, Nat._3], deadband: CArray[Uint16, Nat._3], center: CArray[Sint16, Nat._3])(using Zone): Ptr[SDL_HapticCondition] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).direction = direction
(!____ptr).length = length
(!____ptr).delay = delay
(!____ptr).button = button
(!____ptr).interval = interval
(!____ptr).right_sat = right_sat
(!____ptr).left_sat = left_sat
(!____ptr).right_coeff = right_coeff
(!____ptr).left_coeff = left_coeff
(!____ptr).deadband = deadband
(!____ptr).center = center
____ptr
extension (struct: SDL_HapticCondition)
def `type`: Uint16 = struct._1
def type_=(value: Uint16): Unit = !struct.at1 = value
def direction: SDL_HapticDirection = struct._2
def direction_=(value: SDL_HapticDirection): Unit = !struct.at2 = value
def length: Uint32 = struct._3
def length_=(value: Uint32): Unit = !struct.at3 = value
def delay: Uint16 = struct._4
def delay_=(value: Uint16): Unit = !struct.at4 = value
def button: Uint16 = struct._5
def button_=(value: Uint16): Unit = !struct.at5 = value
def interval: Uint16 = struct._6
def interval_=(value: Uint16): Unit = !struct.at6 = value
def right_sat: CArray[Uint16, Nat._3] = struct._7
def right_sat_=(value: CArray[Uint16, Nat._3]): Unit = !struct.at7 = value
def left_sat: CArray[Uint16, Nat._3] = struct._8
def left_sat_=(value: CArray[Uint16, Nat._3]): Unit = !struct.at8 = value
def right_coeff: CArray[Sint16, Nat._3] = struct._9
def right_coeff_=(value: CArray[Sint16, Nat._3]): Unit = !struct.at9 = value
def left_coeff: CArray[Sint16, Nat._3] = struct._10
def left_coeff_=(value: CArray[Sint16, Nat._3]): Unit = !struct.at10 = value
def deadband: CArray[Uint16, Nat._3] = struct._11
def deadband_=(value: CArray[Uint16, Nat._3]): Unit = !struct.at11 = value
def center: CArray[Sint16, Nat._3] = struct._12
def center_=(value: CArray[Sint16, Nat._3]): Unit = !struct.at12 = value
opaque type SDL_HapticConstant = CStruct11[Uint16, SDL_HapticDirection, Uint32, Uint16, Uint16, Uint16, Sint16, Uint16, Uint16, Uint16, Uint16]
object SDL_HapticConstant:
given _tag: Tag[SDL_HapticConstant] = Tag.materializeCStruct11Tag[Uint16, SDL_HapticDirection, Uint32, Uint16, Uint16, Uint16, Sint16, Uint16, Uint16, Uint16, Uint16]
def apply()(using Zone): Ptr[SDL_HapticConstant] = scala.scalanative.unsafe.alloc[SDL_HapticConstant](1)
def apply(`type`: Uint16, direction: SDL_HapticDirection, length: Uint32, delay: Uint16, button: Uint16, interval: Uint16, level: Sint16, attack_length: Uint16, attack_level: Uint16, fade_length: Uint16, fade_level: Uint16)(using Zone): Ptr[SDL_HapticConstant] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).direction = direction
(!____ptr).length = length
(!____ptr).delay = delay
(!____ptr).button = button
(!____ptr).interval = interval
(!____ptr).level = level
(!____ptr).attack_length = attack_length
(!____ptr).attack_level = attack_level
(!____ptr).fade_length = fade_length
(!____ptr).fade_level = fade_level
____ptr
extension (struct: SDL_HapticConstant)
def `type`: Uint16 = struct._1
def type_=(value: Uint16): Unit = !struct.at1 = value
def direction: SDL_HapticDirection = struct._2
def direction_=(value: SDL_HapticDirection): Unit = !struct.at2 = value
def length: Uint32 = struct._3
def length_=(value: Uint32): Unit = !struct.at3 = value
def delay: Uint16 = struct._4
def delay_=(value: Uint16): Unit = !struct.at4 = value
def button: Uint16 = struct._5
def button_=(value: Uint16): Unit = !struct.at5 = value
def interval: Uint16 = struct._6
def interval_=(value: Uint16): Unit = !struct.at6 = value
def level: Sint16 = struct._7
def level_=(value: Sint16): Unit = !struct.at7 = value
def attack_length: Uint16 = struct._8
def attack_length_=(value: Uint16): Unit = !struct.at8 = value
def attack_level: Uint16 = struct._9
def attack_level_=(value: Uint16): Unit = !struct.at9 = value
def fade_length: Uint16 = struct._10
def fade_length_=(value: Uint16): Unit = !struct.at10 = value
def fade_level: Uint16 = struct._11
def fade_level_=(value: Uint16): Unit = !struct.at11 = value
opaque type SDL_HapticCustom = CStruct14[Uint16, SDL_HapticDirection, Uint32, Uint16, Uint16, Uint16, Uint8, Uint16, Uint16, Ptr[Uint16], Uint16, Uint16, Uint16, Uint16]
object SDL_HapticCustom:
given _tag: Tag[SDL_HapticCustom] = Tag.materializeCStruct14Tag[Uint16, SDL_HapticDirection, Uint32, Uint16, Uint16, Uint16, Uint8, Uint16, Uint16, Ptr[Uint16], Uint16, Uint16, Uint16, Uint16]
def apply()(using Zone): Ptr[SDL_HapticCustom] = scala.scalanative.unsafe.alloc[SDL_HapticCustom](1)
def apply(`type`: Uint16, direction: SDL_HapticDirection, length: Uint32, delay: Uint16, button: Uint16, interval: Uint16, channels: Uint8, period: Uint16, samples: Uint16, data: Ptr[Uint16], attack_length: Uint16, attack_level: Uint16, fade_length: Uint16, fade_level: Uint16)(using Zone): Ptr[SDL_HapticCustom] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).direction = direction
(!____ptr).length = length
(!____ptr).delay = delay
(!____ptr).button = button
(!____ptr).interval = interval
(!____ptr).channels = channels
(!____ptr).period = period
(!____ptr).samples = samples
(!____ptr).data = data
(!____ptr).attack_length = attack_length
(!____ptr).attack_level = attack_level
(!____ptr).fade_length = fade_length
(!____ptr).fade_level = fade_level
____ptr
extension (struct: SDL_HapticCustom)
def `type`: Uint16 = struct._1
def type_=(value: Uint16): Unit = !struct.at1 = value
def direction: SDL_HapticDirection = struct._2
def direction_=(value: SDL_HapticDirection): Unit = !struct.at2 = value
def length: Uint32 = struct._3
def length_=(value: Uint32): Unit = !struct.at3 = value
def delay: Uint16 = struct._4
def delay_=(value: Uint16): Unit = !struct.at4 = value
def button: Uint16 = struct._5
def button_=(value: Uint16): Unit = !struct.at5 = value
def interval: Uint16 = struct._6
def interval_=(value: Uint16): Unit = !struct.at6 = value
def channels: Uint8 = struct._7
def channels_=(value: Uint8): Unit = !struct.at7 = value
def period: Uint16 = struct._8
def period_=(value: Uint16): Unit = !struct.at8 = value
def samples: Uint16 = struct._9
def samples_=(value: Uint16): Unit = !struct.at9 = value
def data: Ptr[Uint16] = struct._10
def data_=(value: Ptr[Uint16]): Unit = !struct.at10 = value
def attack_length: Uint16 = struct._11
def attack_length_=(value: Uint16): Unit = !struct.at11 = value
def attack_level: Uint16 = struct._12
def attack_level_=(value: Uint16): Unit = !struct.at12 = value
def fade_length: Uint16 = struct._13
def fade_length_=(value: Uint16): Unit = !struct.at13 = value
def fade_level: Uint16 = struct._14
def fade_level_=(value: Uint16): Unit = !struct.at14 = value
opaque type SDL_HapticDirection = CStruct2[Uint8, CArray[Sint32, Nat._3]]
object SDL_HapticDirection:
given _tag: Tag[SDL_HapticDirection] = Tag.materializeCStruct2Tag[Uint8, CArray[Sint32, Nat._3]]
def apply()(using Zone): Ptr[SDL_HapticDirection] = scala.scalanative.unsafe.alloc[SDL_HapticDirection](1)
def apply(`type`: Uint8, dir: CArray[Sint32, Nat._3])(using Zone): Ptr[SDL_HapticDirection] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).dir = dir
____ptr
extension (struct: SDL_HapticDirection)
def `type`: Uint8 = struct._1
def type_=(value: Uint8): Unit = !struct.at1 = value
def dir: CArray[Sint32, Nat._3] = struct._2
def dir_=(value: CArray[Sint32, Nat._3]): Unit = !struct.at2 = value
opaque type SDL_HapticLeftRight = CStruct4[Uint16, Uint32, Uint16, Uint16]
object SDL_HapticLeftRight:
given _tag: Tag[SDL_HapticLeftRight] = Tag.materializeCStruct4Tag[Uint16, Uint32, Uint16, Uint16]
def apply()(using Zone): Ptr[SDL_HapticLeftRight] = scala.scalanative.unsafe.alloc[SDL_HapticLeftRight](1)
def apply(`type`: Uint16, length: Uint32, large_magnitude: Uint16, small_magnitude: Uint16)(using Zone): Ptr[SDL_HapticLeftRight] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).length = length
(!____ptr).large_magnitude = large_magnitude
(!____ptr).small_magnitude = small_magnitude
____ptr
extension (struct: SDL_HapticLeftRight)
def `type`: Uint16 = struct._1
def type_=(value: Uint16): Unit = !struct.at1 = value
def length: Uint32 = struct._2
def length_=(value: Uint32): Unit = !struct.at2 = value
def large_magnitude: Uint16 = struct._3
def large_magnitude_=(value: Uint16): Unit = !struct.at3 = value
def small_magnitude: Uint16 = struct._4
def small_magnitude_=(value: Uint16): Unit = !struct.at4 = value
opaque type SDL_HapticPeriodic = CStruct14[Uint16, SDL_HapticDirection, Uint32, Uint16, Uint16, Uint16, Uint16, Sint16, Sint16, Uint16, Uint16, Uint16, Uint16, Uint16]
object SDL_HapticPeriodic:
given _tag: Tag[SDL_HapticPeriodic] = Tag.materializeCStruct14Tag[Uint16, SDL_HapticDirection, Uint32, Uint16, Uint16, Uint16, Uint16, Sint16, Sint16, Uint16, Uint16, Uint16, Uint16, Uint16]
def apply()(using Zone): Ptr[SDL_HapticPeriodic] = scala.scalanative.unsafe.alloc[SDL_HapticPeriodic](1)
def apply(`type`: Uint16, direction: SDL_HapticDirection, length: Uint32, delay: Uint16, button: Uint16, interval: Uint16, period: Uint16, magnitude: Sint16, offset: Sint16, phase: Uint16, attack_length: Uint16, attack_level: Uint16, fade_length: Uint16, fade_level: Uint16)(using Zone): Ptr[SDL_HapticPeriodic] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).direction = direction
(!____ptr).length = length
(!____ptr).delay = delay
(!____ptr).button = button
(!____ptr).interval = interval
(!____ptr).period = period
(!____ptr).magnitude = magnitude
(!____ptr).offset = offset
(!____ptr).phase = phase
(!____ptr).attack_length = attack_length
(!____ptr).attack_level = attack_level
(!____ptr).fade_length = fade_length
(!____ptr).fade_level = fade_level
____ptr
extension (struct: SDL_HapticPeriodic)
def `type`: Uint16 = struct._1
def type_=(value: Uint16): Unit = !struct.at1 = value
def direction: SDL_HapticDirection = struct._2
def direction_=(value: SDL_HapticDirection): Unit = !struct.at2 = value
def length: Uint32 = struct._3
def length_=(value: Uint32): Unit = !struct.at3 = value
def delay: Uint16 = struct._4
def delay_=(value: Uint16): Unit = !struct.at4 = value
def button: Uint16 = struct._5
def button_=(value: Uint16): Unit = !struct.at5 = value
def interval: Uint16 = struct._6
def interval_=(value: Uint16): Unit = !struct.at6 = value
def period: Uint16 = struct._7
def period_=(value: Uint16): Unit = !struct.at7 = value
def magnitude: Sint16 = struct._8
def magnitude_=(value: Sint16): Unit = !struct.at8 = value
def offset: Sint16 = struct._9
def offset_=(value: Sint16): Unit = !struct.at9 = value
def phase: Uint16 = struct._10
def phase_=(value: Uint16): Unit = !struct.at10 = value
def attack_length: Uint16 = struct._11
def attack_length_=(value: Uint16): Unit = !struct.at11 = value
def attack_level: Uint16 = struct._12
def attack_level_=(value: Uint16): Unit = !struct.at12 = value
def fade_length: Uint16 = struct._13
def fade_length_=(value: Uint16): Unit = !struct.at13 = value
def fade_level: Uint16 = struct._14
def fade_level_=(value: Uint16): Unit = !struct.at14 = value
opaque type SDL_HapticRamp = CStruct12[Uint16, SDL_HapticDirection, Uint32, Uint16, Uint16, Uint16, Sint16, Sint16, Uint16, Uint16, Uint16, Uint16]
object SDL_HapticRamp:
given _tag: Tag[SDL_HapticRamp] = Tag.materializeCStruct12Tag[Uint16, SDL_HapticDirection, Uint32, Uint16, Uint16, Uint16, Sint16, Sint16, Uint16, Uint16, Uint16, Uint16]
def apply()(using Zone): Ptr[SDL_HapticRamp] = scala.scalanative.unsafe.alloc[SDL_HapticRamp](1)
def apply(`type`: Uint16, direction: SDL_HapticDirection, length: Uint32, delay: Uint16, button: Uint16, interval: Uint16, start: Sint16, end: Sint16, attack_length: Uint16, attack_level: Uint16, fade_length: Uint16, fade_level: Uint16)(using Zone): Ptr[SDL_HapticRamp] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).direction = direction
(!____ptr).length = length
(!____ptr).delay = delay
(!____ptr).button = button
(!____ptr).interval = interval
(!____ptr).start = start
(!____ptr).end = end
(!____ptr).attack_length = attack_length
(!____ptr).attack_level = attack_level
(!____ptr).fade_length = fade_length
(!____ptr).fade_level = fade_level
____ptr
extension (struct: SDL_HapticRamp)
def `type`: Uint16 = struct._1
def type_=(value: Uint16): Unit = !struct.at1 = value
def direction: SDL_HapticDirection = struct._2
def direction_=(value: SDL_HapticDirection): Unit = !struct.at2 = value
def length: Uint32 = struct._3
def length_=(value: Uint32): Unit = !struct.at3 = value
def delay: Uint16 = struct._4
def delay_=(value: Uint16): Unit = !struct.at4 = value
def button: Uint16 = struct._5
def button_=(value: Uint16): Unit = !struct.at5 = value
def interval: Uint16 = struct._6
def interval_=(value: Uint16): Unit = !struct.at6 = value
def start: Sint16 = struct._7
def start_=(value: Sint16): Unit = !struct.at7 = value
def end: Sint16 = struct._8
def end_=(value: Sint16): Unit = !struct.at8 = value
def attack_length: Uint16 = struct._9
def attack_length_=(value: Uint16): Unit = !struct.at9 = value
def attack_level: Uint16 = struct._10
def attack_level_=(value: Uint16): Unit = !struct.at10 = value
def fade_length: Uint16 = struct._11
def fade_length_=(value: Uint16): Unit = !struct.at11 = value
def fade_level: Uint16 = struct._12
def fade_level_=(value: Uint16): Unit = !struct.at12 = value
opaque type SDL_JoyAxisEvent = CStruct9[Uint32, Uint32, SDL_JoystickID, Uint8, Uint8, Uint8, Uint8, Sint16, Uint16]
object SDL_JoyAxisEvent:
given _tag: Tag[SDL_JoyAxisEvent] = Tag.materializeCStruct9Tag[Uint32, Uint32, SDL_JoystickID, Uint8, Uint8, Uint8, Uint8, Sint16, Uint16]
def apply()(using Zone): Ptr[SDL_JoyAxisEvent] = scala.scalanative.unsafe.alloc[SDL_JoyAxisEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, which: SDL_JoystickID, axis: Uint8, padding1: Uint8, padding2: Uint8, padding3: Uint8, value: Sint16, padding4: Uint16)(using Zone): Ptr[SDL_JoyAxisEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).which = which
(!____ptr).axis = axis
(!____ptr).padding1 = padding1
(!____ptr).padding2 = padding2
(!____ptr).padding3 = padding3
(!____ptr).value = value
(!____ptr).padding4 = padding4
____ptr
extension (struct: SDL_JoyAxisEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def which: SDL_JoystickID = struct._3
def which_=(value: SDL_JoystickID): Unit = !struct.at3 = value
def axis: Uint8 = struct._4
def axis_=(value: Uint8): Unit = !struct.at4 = value
def padding1: Uint8 = struct._5
def padding1_=(value: Uint8): Unit = !struct.at5 = value
def padding2: Uint8 = struct._6
def padding2_=(value: Uint8): Unit = !struct.at6 = value
def padding3: Uint8 = struct._7
def padding3_=(value: Uint8): Unit = !struct.at7 = value
def value: Sint16 = struct._8
def value_=(value: Sint16): Unit = !struct.at8 = value
def padding4: Uint16 = struct._9
def padding4_=(value: Uint16): Unit = !struct.at9 = value
opaque type SDL_JoyBallEvent = CStruct9[Uint32, Uint32, SDL_JoystickID, Uint8, Uint8, Uint8, Uint8, Sint16, Sint16]
object SDL_JoyBallEvent:
given _tag: Tag[SDL_JoyBallEvent] = Tag.materializeCStruct9Tag[Uint32, Uint32, SDL_JoystickID, Uint8, Uint8, Uint8, Uint8, Sint16, Sint16]
def apply()(using Zone): Ptr[SDL_JoyBallEvent] = scala.scalanative.unsafe.alloc[SDL_JoyBallEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, which: SDL_JoystickID, ball: Uint8, padding1: Uint8, padding2: Uint8, padding3: Uint8, xrel: Sint16, yrel: Sint16)(using Zone): Ptr[SDL_JoyBallEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).which = which
(!____ptr).ball = ball
(!____ptr).padding1 = padding1
(!____ptr).padding2 = padding2
(!____ptr).padding3 = padding3
(!____ptr).xrel = xrel
(!____ptr).yrel = yrel
____ptr
extension (struct: SDL_JoyBallEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def which: SDL_JoystickID = struct._3
def which_=(value: SDL_JoystickID): Unit = !struct.at3 = value
def ball: Uint8 = struct._4
def ball_=(value: Uint8): Unit = !struct.at4 = value
def padding1: Uint8 = struct._5
def padding1_=(value: Uint8): Unit = !struct.at5 = value
def padding2: Uint8 = struct._6
def padding2_=(value: Uint8): Unit = !struct.at6 = value
def padding3: Uint8 = struct._7
def padding3_=(value: Uint8): Unit = !struct.at7 = value
def xrel: Sint16 = struct._8
def xrel_=(value: Sint16): Unit = !struct.at8 = value
def yrel: Sint16 = struct._9
def yrel_=(value: Sint16): Unit = !struct.at9 = value
opaque type SDL_JoyButtonEvent = CStruct7[Uint32, Uint32, SDL_JoystickID, Uint8, Uint8, Uint8, Uint8]
object SDL_JoyButtonEvent:
given _tag: Tag[SDL_JoyButtonEvent] = Tag.materializeCStruct7Tag[Uint32, Uint32, SDL_JoystickID, Uint8, Uint8, Uint8, Uint8]
def apply()(using Zone): Ptr[SDL_JoyButtonEvent] = scala.scalanative.unsafe.alloc[SDL_JoyButtonEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, which: SDL_JoystickID, button: Uint8, state: Uint8, padding1: Uint8, padding2: Uint8)(using Zone): Ptr[SDL_JoyButtonEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).which = which
(!____ptr).button = button
(!____ptr).state = state
(!____ptr).padding1 = padding1
(!____ptr).padding2 = padding2
____ptr
extension (struct: SDL_JoyButtonEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def which: SDL_JoystickID = struct._3
def which_=(value: SDL_JoystickID): Unit = !struct.at3 = value
def button: Uint8 = struct._4
def button_=(value: Uint8): Unit = !struct.at4 = value
def state: Uint8 = struct._5
def state_=(value: Uint8): Unit = !struct.at5 = value
def padding1: Uint8 = struct._6
def padding1_=(value: Uint8): Unit = !struct.at6 = value
def padding2: Uint8 = struct._7
def padding2_=(value: Uint8): Unit = !struct.at7 = value
opaque type SDL_JoyDeviceEvent = CStruct3[Uint32, Uint32, Sint32]
object SDL_JoyDeviceEvent:
given _tag: Tag[SDL_JoyDeviceEvent] = Tag.materializeCStruct3Tag[Uint32, Uint32, Sint32]
def apply()(using Zone): Ptr[SDL_JoyDeviceEvent] = scala.scalanative.unsafe.alloc[SDL_JoyDeviceEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, which: Sint32)(using Zone): Ptr[SDL_JoyDeviceEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).which = which
____ptr
extension (struct: SDL_JoyDeviceEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def which: Sint32 = struct._3
def which_=(value: Sint32): Unit = !struct.at3 = value
opaque type SDL_JoyHatEvent = CStruct7[Uint32, Uint32, SDL_JoystickID, Uint8, Uint8, Uint8, Uint8]
object SDL_JoyHatEvent:
given _tag: Tag[SDL_JoyHatEvent] = Tag.materializeCStruct7Tag[Uint32, Uint32, SDL_JoystickID, Uint8, Uint8, Uint8, Uint8]
def apply()(using Zone): Ptr[SDL_JoyHatEvent] = scala.scalanative.unsafe.alloc[SDL_JoyHatEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, which: SDL_JoystickID, hat: Uint8, value: Uint8, padding1: Uint8, padding2: Uint8)(using Zone): Ptr[SDL_JoyHatEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).which = which
(!____ptr).hat = hat
(!____ptr).value = value
(!____ptr).padding1 = padding1
(!____ptr).padding2 = padding2
____ptr
extension (struct: SDL_JoyHatEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def which: SDL_JoystickID = struct._3
def which_=(value: SDL_JoystickID): Unit = !struct.at3 = value
def hat: Uint8 = struct._4
def hat_=(value: Uint8): Unit = !struct.at4 = value
def value: Uint8 = struct._5
def value_=(value: Uint8): Unit = !struct.at5 = value
def padding1: Uint8 = struct._6
def padding1_=(value: Uint8): Unit = !struct.at6 = value
def padding2: Uint8 = struct._7
def padding2_=(value: Uint8): Unit = !struct.at7 = value
opaque type SDL_Joystick = CStruct0
object SDL_Joystick:
given _tag: Tag[SDL_Joystick] = Tag.materializeCStruct0Tag
opaque type SDL_JoystickGUID = CStruct1[CArray[Uint8, Nat.Digit2[Nat._1, Nat._6]]]
object SDL_JoystickGUID:
given _tag: Tag[SDL_JoystickGUID] = Tag.materializeCStruct1Tag[CArray[Uint8, Nat.Digit2[Nat._1, Nat._6]]]
def apply()(using Zone): Ptr[SDL_JoystickGUID] = scala.scalanative.unsafe.alloc[SDL_JoystickGUID](1)
def apply(data: CArray[Uint8, Nat.Digit2[Nat._1, Nat._6]])(using Zone): Ptr[SDL_JoystickGUID] =
val ____ptr = apply()
(!____ptr).data = data
____ptr
extension (struct: SDL_JoystickGUID)
def data: CArray[Uint8, Nat.Digit2[Nat._1, Nat._6]] = struct._1
def data_=(value: CArray[Uint8, Nat.Digit2[Nat._1, Nat._6]]): Unit = !struct.at1 = value
opaque type SDL_KeyboardEvent = CStruct8[Uint32, Uint32, Uint32, Uint8, Uint8, Uint8, Uint8, SDL_Keysym]
object SDL_KeyboardEvent:
given _tag: Tag[SDL_KeyboardEvent] = Tag.materializeCStruct8Tag[Uint32, Uint32, Uint32, Uint8, Uint8, Uint8, Uint8, SDL_Keysym]
def apply()(using Zone): Ptr[SDL_KeyboardEvent] = scala.scalanative.unsafe.alloc[SDL_KeyboardEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, windowID: Uint32, state: Uint8, repeat: Uint8, padding2: Uint8, padding3: Uint8, keysym: SDL_Keysym)(using Zone): Ptr[SDL_KeyboardEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).windowID = windowID
(!____ptr).state = state
(!____ptr).repeat = repeat
(!____ptr).padding2 = padding2
(!____ptr).padding3 = padding3
(!____ptr).keysym = keysym
____ptr
extension (struct: SDL_KeyboardEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def windowID: Uint32 = struct._3
def windowID_=(value: Uint32): Unit = !struct.at3 = value
def state: Uint8 = struct._4
def state_=(value: Uint8): Unit = !struct.at4 = value
def repeat: Uint8 = struct._5
def repeat_=(value: Uint8): Unit = !struct.at5 = value
def padding2: Uint8 = struct._6
def padding2_=(value: Uint8): Unit = !struct.at6 = value
def padding3: Uint8 = struct._7
def padding3_=(value: Uint8): Unit = !struct.at7 = value
def keysym: SDL_Keysym = struct._8
def keysym_=(value: SDL_Keysym): Unit = !struct.at8 = value
opaque type SDL_Keysym = CStruct4[SDL_Scancode, SDL_Keycode, Uint16, Uint32]
object SDL_Keysym:
given _tag: Tag[SDL_Keysym] = Tag.materializeCStruct4Tag[SDL_Scancode, SDL_Keycode, Uint16, Uint32]
def apply()(using Zone): Ptr[SDL_Keysym] = scala.scalanative.unsafe.alloc[SDL_Keysym](1)
def apply(scancode: SDL_Scancode, sym: SDL_Keycode, mod: Uint16, unused: Uint32)(using Zone): Ptr[SDL_Keysym] =
val ____ptr = apply()
(!____ptr).scancode = scancode
(!____ptr).sym = sym
(!____ptr).mod = mod
(!____ptr).unused = unused
____ptr
extension (struct: SDL_Keysym)
def scancode: SDL_Scancode = struct._1
def scancode_=(value: SDL_Scancode): Unit = !struct.at1 = value
def sym: SDL_Keycode = struct._2
def sym_=(value: SDL_Keycode): Unit = !struct.at2 = value
def mod: Uint16 = struct._3
def mod_=(value: Uint16): Unit = !struct.at3 = value
def unused: Uint32 = struct._4
def unused_=(value: Uint32): Unit = !struct.at4 = value
opaque type SDL_Locale = CStruct2[CString, CString]
object SDL_Locale:
given _tag: Tag[SDL_Locale] = Tag.materializeCStruct2Tag[CString, CString]
def apply()(using Zone): Ptr[SDL_Locale] = scala.scalanative.unsafe.alloc[SDL_Locale](1)
def apply(language: CString, country: CString)(using Zone): Ptr[SDL_Locale] =
val ____ptr = apply()
(!____ptr).language = language
(!____ptr).country = country
____ptr
extension (struct: SDL_Locale)
def language: CString = struct._1
def language_=(value: CString): Unit = !struct.at1 = value
def country: CString = struct._2
def country_=(value: CString): Unit = !struct.at2 = value
opaque type SDL_MessageBoxButtonData = CStruct3[Uint32, CInt, CString]
object SDL_MessageBoxButtonData:
given _tag: Tag[SDL_MessageBoxButtonData] = Tag.materializeCStruct3Tag[Uint32, CInt, CString]
def apply()(using Zone): Ptr[SDL_MessageBoxButtonData] = scala.scalanative.unsafe.alloc[SDL_MessageBoxButtonData](1)
def apply(flags: Uint32, buttonid: CInt, text: CString)(using Zone): Ptr[SDL_MessageBoxButtonData] =
val ____ptr = apply()
(!____ptr).flags = flags
(!____ptr).buttonid = buttonid
(!____ptr).text = text
____ptr
extension (struct: SDL_MessageBoxButtonData)
def flags: Uint32 = struct._1
def flags_=(value: Uint32): Unit = !struct.at1 = value
def buttonid: CInt = struct._2
def buttonid_=(value: CInt): Unit = !struct.at2 = value
def text: CString = struct._3
def text_=(value: CString): Unit = !struct.at3 = value
opaque type SDL_MessageBoxColor = CStruct3[Uint8, Uint8, Uint8]
object SDL_MessageBoxColor:
given _tag: Tag[SDL_MessageBoxColor] = Tag.materializeCStruct3Tag[Uint8, Uint8, Uint8]
def apply()(using Zone): Ptr[SDL_MessageBoxColor] = scala.scalanative.unsafe.alloc[SDL_MessageBoxColor](1)
def apply(r: Uint8, g: Uint8, b: Uint8)(using Zone): Ptr[SDL_MessageBoxColor] =
val ____ptr = apply()
(!____ptr).r = r
(!____ptr).g = g
(!____ptr).b = b
____ptr
extension (struct: SDL_MessageBoxColor)
def r: Uint8 = struct._1
def r_=(value: Uint8): Unit = !struct.at1 = value
def g: Uint8 = struct._2
def g_=(value: Uint8): Unit = !struct.at2 = value
def b: Uint8 = struct._3
def b_=(value: Uint8): Unit = !struct.at3 = value
opaque type SDL_MessageBoxColorScheme = CStruct1[CArray[SDL_MessageBoxColor, Nat._5]]
object SDL_MessageBoxColorScheme:
given _tag: Tag[SDL_MessageBoxColorScheme] = Tag.materializeCStruct1Tag[CArray[SDL_MessageBoxColor, Nat._5]]
def apply()(using Zone): Ptr[SDL_MessageBoxColorScheme] = scala.scalanative.unsafe.alloc[SDL_MessageBoxColorScheme](1)
def apply(colors: CArray[SDL_MessageBoxColor, Nat._5])(using Zone): Ptr[SDL_MessageBoxColorScheme] =
val ____ptr = apply()
(!____ptr).colors = colors
____ptr
extension (struct: SDL_MessageBoxColorScheme)
def colors: CArray[SDL_MessageBoxColor, Nat._5] = struct._1
def colors_=(value: CArray[SDL_MessageBoxColor, Nat._5]): Unit = !struct.at1 = value
opaque type SDL_MessageBoxData = CStruct7[Uint32, Ptr[SDL_Window], CString, CString, CInt, Ptr[SDL_MessageBoxButtonData], Ptr[SDL_MessageBoxColorScheme]]
object SDL_MessageBoxData:
given _tag: Tag[SDL_MessageBoxData] = Tag.materializeCStruct7Tag[Uint32, Ptr[SDL_Window], CString, CString, CInt, Ptr[SDL_MessageBoxButtonData], Ptr[SDL_MessageBoxColorScheme]]
def apply()(using Zone): Ptr[SDL_MessageBoxData] = scala.scalanative.unsafe.alloc[SDL_MessageBoxData](1)
def apply(flags: Uint32, window: Ptr[SDL_Window], title: CString, message: CString, numbuttons: CInt, buttons: Ptr[SDL_MessageBoxButtonData], colorScheme: Ptr[SDL_MessageBoxColorScheme])(using Zone): Ptr[SDL_MessageBoxData] =
val ____ptr = apply()
(!____ptr).flags = flags
(!____ptr).window = window
(!____ptr).title = title
(!____ptr).message = message
(!____ptr).numbuttons = numbuttons
(!____ptr).buttons = buttons
(!____ptr).colorScheme = colorScheme
____ptr
extension (struct: SDL_MessageBoxData)
def flags: Uint32 = struct._1
def flags_=(value: Uint32): Unit = !struct.at1 = value
def window: Ptr[SDL_Window] = struct._2
def window_=(value: Ptr[SDL_Window]): Unit = !struct.at2 = value
def title: CString = struct._3
def title_=(value: CString): Unit = !struct.at3 = value
def message: CString = struct._4
def message_=(value: CString): Unit = !struct.at4 = value
def numbuttons: CInt = struct._5
def numbuttons_=(value: CInt): Unit = !struct.at5 = value
def buttons: Ptr[SDL_MessageBoxButtonData] = struct._6
def buttons_=(value: Ptr[SDL_MessageBoxButtonData]): Unit = !struct.at6 = value
def colorScheme: Ptr[SDL_MessageBoxColorScheme] = struct._7
def colorScheme_=(value: Ptr[SDL_MessageBoxColorScheme]): Unit = !struct.at7 = value
opaque type SDL_MouseButtonEvent = CStruct10[Uint32, Uint32, Uint32, Uint32, Uint8, Uint8, Uint8, Uint8, Sint32, Sint32]
object SDL_MouseButtonEvent:
given _tag: Tag[SDL_MouseButtonEvent] = Tag.materializeCStruct10Tag[Uint32, Uint32, Uint32, Uint32, Uint8, Uint8, Uint8, Uint8, Sint32, Sint32]
def apply()(using Zone): Ptr[SDL_MouseButtonEvent] = scala.scalanative.unsafe.alloc[SDL_MouseButtonEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, windowID: Uint32, which: Uint32, button: Uint8, state: Uint8, clicks: Uint8, padding1: Uint8, x: Sint32, y: Sint32)(using Zone): Ptr[SDL_MouseButtonEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).windowID = windowID
(!____ptr).which = which
(!____ptr).button = button
(!____ptr).state = state
(!____ptr).clicks = clicks
(!____ptr).padding1 = padding1
(!____ptr).x = x
(!____ptr).y = y
____ptr
extension (struct: SDL_MouseButtonEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def windowID: Uint32 = struct._3
def windowID_=(value: Uint32): Unit = !struct.at3 = value
def which: Uint32 = struct._4
def which_=(value: Uint32): Unit = !struct.at4 = value
def button: Uint8 = struct._5
def button_=(value: Uint8): Unit = !struct.at5 = value
def state: Uint8 = struct._6
def state_=(value: Uint8): Unit = !struct.at6 = value
def clicks: Uint8 = struct._7
def clicks_=(value: Uint8): Unit = !struct.at7 = value
def padding1: Uint8 = struct._8
def padding1_=(value: Uint8): Unit = !struct.at8 = value
def x: Sint32 = struct._9
def x_=(value: Sint32): Unit = !struct.at9 = value
def y: Sint32 = struct._10
def y_=(value: Sint32): Unit = !struct.at10 = value
opaque type SDL_MouseMotionEvent = CStruct9[Uint32, Uint32, Uint32, Uint32, Uint32, Sint32, Sint32, Sint32, Sint32]
object SDL_MouseMotionEvent:
given _tag: Tag[SDL_MouseMotionEvent] = Tag.materializeCStruct9Tag[Uint32, Uint32, Uint32, Uint32, Uint32, Sint32, Sint32, Sint32, Sint32]
def apply()(using Zone): Ptr[SDL_MouseMotionEvent] = scala.scalanative.unsafe.alloc[SDL_MouseMotionEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, windowID: Uint32, which: Uint32, state: Uint32, x: Sint32, y: Sint32, xrel: Sint32, yrel: Sint32)(using Zone): Ptr[SDL_MouseMotionEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).windowID = windowID
(!____ptr).which = which
(!____ptr).state = state
(!____ptr).x = x
(!____ptr).y = y
(!____ptr).xrel = xrel
(!____ptr).yrel = yrel
____ptr
extension (struct: SDL_MouseMotionEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def windowID: Uint32 = struct._3
def windowID_=(value: Uint32): Unit = !struct.at3 = value
def which: Uint32 = struct._4
def which_=(value: Uint32): Unit = !struct.at4 = value
def state: Uint32 = struct._5
def state_=(value: Uint32): Unit = !struct.at5 = value
def x: Sint32 = struct._6
def x_=(value: Sint32): Unit = !struct.at6 = value
def y: Sint32 = struct._7
def y_=(value: Sint32): Unit = !struct.at7 = value
def xrel: Sint32 = struct._8
def xrel_=(value: Sint32): Unit = !struct.at8 = value
def yrel: Sint32 = struct._9
def yrel_=(value: Sint32): Unit = !struct.at9 = value
opaque type SDL_MouseWheelEvent = CStruct9[Uint32, Uint32, Uint32, Uint32, Sint32, Sint32, Uint32, Float, Float]
object SDL_MouseWheelEvent:
given _tag: Tag[SDL_MouseWheelEvent] = Tag.materializeCStruct9Tag[Uint32, Uint32, Uint32, Uint32, Sint32, Sint32, Uint32, Float, Float]
def apply()(using Zone): Ptr[SDL_MouseWheelEvent] = scala.scalanative.unsafe.alloc[SDL_MouseWheelEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, windowID: Uint32, which: Uint32, x: Sint32, y: Sint32, direction: Uint32, preciseX: Float, preciseY: Float)(using Zone): Ptr[SDL_MouseWheelEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).windowID = windowID
(!____ptr).which = which
(!____ptr).x = x
(!____ptr).y = y
(!____ptr).direction = direction
(!____ptr).preciseX = preciseX
(!____ptr).preciseY = preciseY
____ptr
extension (struct: SDL_MouseWheelEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def windowID: Uint32 = struct._3
def windowID_=(value: Uint32): Unit = !struct.at3 = value
def which: Uint32 = struct._4
def which_=(value: Uint32): Unit = !struct.at4 = value
def x: Sint32 = struct._5
def x_=(value: Sint32): Unit = !struct.at5 = value
def y: Sint32 = struct._6
def y_=(value: Sint32): Unit = !struct.at6 = value
def direction: Uint32 = struct._7
def direction_=(value: Uint32): Unit = !struct.at7 = value
def preciseX: Float = struct._8
def preciseX_=(value: Float): Unit = !struct.at8 = value
def preciseY: Float = struct._9
def preciseY_=(value: Float): Unit = !struct.at9 = value
opaque type SDL_MultiGestureEvent = CStruct9[Uint32, Uint32, SDL_TouchID, Float, Float, Float, Float, Uint16, Uint16]
object SDL_MultiGestureEvent:
given _tag: Tag[SDL_MultiGestureEvent] = Tag.materializeCStruct9Tag[Uint32, Uint32, SDL_TouchID, Float, Float, Float, Float, Uint16, Uint16]
def apply()(using Zone): Ptr[SDL_MultiGestureEvent] = scala.scalanative.unsafe.alloc[SDL_MultiGestureEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, touchId: SDL_TouchID, dTheta: Float, dDist: Float, x: Float, y: Float, numFingers: Uint16, padding: Uint16)(using Zone): Ptr[SDL_MultiGestureEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).touchId = touchId
(!____ptr).dTheta = dTheta
(!____ptr).dDist = dDist
(!____ptr).x = x
(!____ptr).y = y
(!____ptr).numFingers = numFingers
(!____ptr).padding = padding
____ptr
extension (struct: SDL_MultiGestureEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def touchId: SDL_TouchID = struct._3
def touchId_=(value: SDL_TouchID): Unit = !struct.at3 = value
def dTheta: Float = struct._4
def dTheta_=(value: Float): Unit = !struct.at4 = value
def dDist: Float = struct._5
def dDist_=(value: Float): Unit = !struct.at5 = value
def x: Float = struct._6
def x_=(value: Float): Unit = !struct.at6 = value
def y: Float = struct._7
def y_=(value: Float): Unit = !struct.at7 = value
def numFingers: Uint16 = struct._8
def numFingers_=(value: Uint16): Unit = !struct.at8 = value
def padding: Uint16 = struct._9
def padding_=(value: Uint16): Unit = !struct.at9 = value
opaque type SDL_OSEvent = CStruct2[Uint32, Uint32]
object SDL_OSEvent:
given _tag: Tag[SDL_OSEvent] = Tag.materializeCStruct2Tag[Uint32, Uint32]
def apply()(using Zone): Ptr[SDL_OSEvent] = scala.scalanative.unsafe.alloc[SDL_OSEvent](1)
def apply(`type`: Uint32, timestamp: Uint32)(using Zone): Ptr[SDL_OSEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
____ptr
extension (struct: SDL_OSEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
opaque type SDL_Palette = CStruct4[CInt, Ptr[SDL_Color], Uint32, CInt]
object SDL_Palette:
given _tag: Tag[SDL_Palette] = Tag.materializeCStruct4Tag[CInt, Ptr[SDL_Color], Uint32, CInt]
def apply()(using Zone): Ptr[SDL_Palette] = scala.scalanative.unsafe.alloc[SDL_Palette](1)
def apply(ncolors: CInt, colors: Ptr[SDL_Color], version: Uint32, refcount: CInt)(using Zone): Ptr[SDL_Palette] =
val ____ptr = apply()
(!____ptr).ncolors = ncolors
(!____ptr).colors = colors
(!____ptr).version = version
(!____ptr).refcount = refcount
____ptr
extension (struct: SDL_Palette)
def ncolors: CInt = struct._1
def ncolors_=(value: CInt): Unit = !struct.at1 = value
def colors: Ptr[SDL_Color] = struct._2
def colors_=(value: Ptr[SDL_Color]): Unit = !struct.at2 = value
def version: Uint32 = struct._3
def version_=(value: Uint32): Unit = !struct.at3 = value
def refcount: CInt = struct._4
def refcount_=(value: CInt): Unit = !struct.at4 = value
opaque type SDL_PixelFormat = CStruct19[Uint32, Ptr[SDL_Palette], Uint8, Uint8, CArray[Uint8, Nat._2], Uint32, Uint32, Uint32, Uint32, Uint8, Uint8, Uint8, Uint8, Uint8, Uint8, Uint8, Uint8, CInt, Ptr[Byte]]
object SDL_PixelFormat:
given _tag: Tag[SDL_PixelFormat] = Tag.materializeCStruct19Tag[Uint32, Ptr[SDL_Palette], Uint8, Uint8, CArray[Uint8, Nat._2], Uint32, Uint32, Uint32, Uint32, Uint8, Uint8, Uint8, Uint8, Uint8, Uint8, Uint8, Uint8, CInt, Ptr[Byte]]
def apply()(using Zone): Ptr[SDL_PixelFormat] = scala.scalanative.unsafe.alloc[SDL_PixelFormat](1)
def apply(format: Uint32, palette: Ptr[SDL_Palette], BitsPerPixel: Uint8, BytesPerPixel: Uint8, padding: CArray[Uint8, Nat._2], Rmask: Uint32, Gmask: Uint32, Bmask: Uint32, Amask: Uint32, Rloss: Uint8, Gloss: Uint8, Bloss: Uint8, Aloss: Uint8, Rshift: Uint8, Gshift: Uint8, Bshift: Uint8, Ashift: Uint8, refcount: CInt, next: Ptr[SDL_PixelFormat])(using Zone): Ptr[SDL_PixelFormat] =
val ____ptr = apply()
(!____ptr).format = format
(!____ptr).palette = palette
(!____ptr).BitsPerPixel = BitsPerPixel
(!____ptr).BytesPerPixel = BytesPerPixel
(!____ptr).padding = padding
(!____ptr).Rmask = Rmask
(!____ptr).Gmask = Gmask
(!____ptr).Bmask = Bmask
(!____ptr).Amask = Amask
(!____ptr).Rloss = Rloss
(!____ptr).Gloss = Gloss
(!____ptr).Bloss = Bloss
(!____ptr).Aloss = Aloss
(!____ptr).Rshift = Rshift
(!____ptr).Gshift = Gshift
(!____ptr).Bshift = Bshift
(!____ptr).Ashift = Ashift
(!____ptr).refcount = refcount
(!____ptr).next = next
____ptr
extension (struct: SDL_PixelFormat)
def format: Uint32 = struct._1
def format_=(value: Uint32): Unit = !struct.at1 = value
def palette: Ptr[SDL_Palette] = struct._2
def palette_=(value: Ptr[SDL_Palette]): Unit = !struct.at2 = value
def BitsPerPixel: Uint8 = struct._3
def BitsPerPixel_=(value: Uint8): Unit = !struct.at3 = value
def BytesPerPixel: Uint8 = struct._4
def BytesPerPixel_=(value: Uint8): Unit = !struct.at4 = value
def padding: CArray[Uint8, Nat._2] = struct._5
def padding_=(value: CArray[Uint8, Nat._2]): Unit = !struct.at5 = value
def Rmask: Uint32 = struct._6
def Rmask_=(value: Uint32): Unit = !struct.at6 = value
def Gmask: Uint32 = struct._7
def Gmask_=(value: Uint32): Unit = !struct.at7 = value
def Bmask: Uint32 = struct._8
def Bmask_=(value: Uint32): Unit = !struct.at8 = value
def Amask: Uint32 = struct._9
def Amask_=(value: Uint32): Unit = !struct.at9 = value
def Rloss: Uint8 = struct._10
def Rloss_=(value: Uint8): Unit = !struct.at10 = value
def Gloss: Uint8 = struct._11
def Gloss_=(value: Uint8): Unit = !struct.at11 = value
def Bloss: Uint8 = struct._12
def Bloss_=(value: Uint8): Unit = !struct.at12 = value
def Aloss: Uint8 = struct._13
def Aloss_=(value: Uint8): Unit = !struct.at13 = value
def Rshift: Uint8 = struct._14
def Rshift_=(value: Uint8): Unit = !struct.at14 = value
def Gshift: Uint8 = struct._15
def Gshift_=(value: Uint8): Unit = !struct.at15 = value
def Bshift: Uint8 = struct._16
def Bshift_=(value: Uint8): Unit = !struct.at16 = value
def Ashift: Uint8 = struct._17
def Ashift_=(value: Uint8): Unit = !struct.at17 = value
def refcount: CInt = struct._18
def refcount_=(value: CInt): Unit = !struct.at18 = value
def next: Ptr[SDL_PixelFormat] = struct._19.asInstanceOf[Ptr[SDL_PixelFormat]]
def next_=(value: Ptr[SDL_PixelFormat]): Unit = !struct.at19 = value.asInstanceOf[Ptr[Byte]]
opaque type SDL_Point = CStruct2[CInt, CInt]
object SDL_Point:
given _tag: Tag[SDL_Point] = Tag.materializeCStruct2Tag[CInt, CInt]
def apply()(using Zone): Ptr[SDL_Point] = scala.scalanative.unsafe.alloc[SDL_Point](1)
def apply(x: CInt, y: CInt)(using Zone): Ptr[SDL_Point] =
val ____ptr = apply()
(!____ptr).x = x
(!____ptr).y = y
____ptr
extension (struct: SDL_Point)
def x: CInt = struct._1
def x_=(value: CInt): Unit = !struct.at1 = value
def y: CInt = struct._2
def y_=(value: CInt): Unit = !struct.at2 = value
opaque type SDL_QuitEvent = CStruct2[Uint32, Uint32]
object SDL_QuitEvent:
given _tag: Tag[SDL_QuitEvent] = Tag.materializeCStruct2Tag[Uint32, Uint32]
def apply()(using Zone): Ptr[SDL_QuitEvent] = scala.scalanative.unsafe.alloc[SDL_QuitEvent](1)
def apply(`type`: Uint32, timestamp: Uint32)(using Zone): Ptr[SDL_QuitEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
____ptr
extension (struct: SDL_QuitEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
opaque type SDL_RWops = CStruct7[CFuncPtr1[Ptr[Byte], Sint64], CFuncPtr3[Ptr[Byte], Sint64, CInt, Sint64], CFuncPtr4[Ptr[Byte], Ptr[Byte], size_t, size_t, size_t], CFuncPtr4[Ptr[Byte], Ptr[Byte], size_t, size_t, size_t], CFuncPtr1[Ptr[Byte], CInt], Uint32, SDL_RWops.Union0]
object SDL_RWops:
opaque type Union0 = CArray[Byte, Nat.Digit2[Nat._2, Nat._4]]
object Union0:
opaque type Struct0 = CStruct3[Ptr[Uint8], Ptr[Uint8], Ptr[Uint8]]
object Struct0:
given _tag: Tag[Struct0] = Tag.materializeCStruct3Tag[Ptr[Uint8], Ptr[Uint8], Ptr[Uint8]]
def apply()(using Zone): Ptr[Struct0] = scala.scalanative.unsafe.alloc[Struct0](1)
def apply(base: Ptr[Uint8], here: Ptr[Uint8], stop: Ptr[Uint8])(using Zone): Ptr[Struct0] =
val ____ptr = apply()
(!____ptr).base = base
(!____ptr).here = here
(!____ptr).stop = stop
____ptr
extension (struct: Struct0)
def base: Ptr[Uint8] = struct._1
def base_=(value: Ptr[Uint8]): Unit = !struct.at1 = value
def here: Ptr[Uint8] = struct._2
def here_=(value: Ptr[Uint8]): Unit = !struct.at2 = value
def stop: Ptr[Uint8] = struct._3
def stop_=(value: Ptr[Uint8]): Unit = !struct.at3 = value
opaque type Struct1 = CStruct2[Ptr[Byte], Ptr[Byte]]
object Struct1:
given _tag: Tag[Struct1] = Tag.materializeCStruct2Tag[Ptr[Byte], Ptr[Byte]]
def apply()(using Zone): Ptr[Struct1] = scala.scalanative.unsafe.alloc[Struct1](1)
def apply(data1: Ptr[Byte], data2: Ptr[Byte])(using Zone): Ptr[Struct1] =
val ____ptr = apply()
(!____ptr).data1 = data1
(!____ptr).data2 = data2
____ptr
extension (struct: Struct1)
def data1: Ptr[Byte] = struct._1
def data1_=(value: Ptr[Byte]): Unit = !struct.at1 = value
def data2: Ptr[Byte] = struct._2
def data2_=(value: Ptr[Byte]): Unit = !struct.at2 = value
given _tag: Tag[Union0] = Tag.CArray[CChar, Nat.Digit2[Nat._2, Nat._4]](Tag.Byte, Tag.Digit2[Nat._2, Nat._4](Tag.Nat2, Tag.Nat4))
def apply()(using Zone): Ptr[Union0] =
val ___ptr = alloc[Union0](1)
___ptr
@scala.annotation.targetName("apply_mem")
def apply(mem: SDL_RWops.Union0.Struct0)(using Zone): Ptr[Union0] =
val ___ptr = alloc[Union0](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_RWops.Union0.Struct0]].update(0, mem)
___ptr
@scala.annotation.targetName("apply_unknown")
def apply(unknown: SDL_RWops.Union0.Struct1)(using Zone): Ptr[Union0] =
val ___ptr = alloc[Union0](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_RWops.Union0.Struct1]].update(0, unknown)
___ptr
extension (struct: Union0)
def mem: SDL_RWops.Union0.Struct0 = !struct.at(0).asInstanceOf[Ptr[SDL_RWops.Union0.Struct0]]
def mem_=(value: SDL_RWops.Union0.Struct0): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_RWops.Union0.Struct0]] = value
def unknown: SDL_RWops.Union0.Struct1 = !struct.at(0).asInstanceOf[Ptr[SDL_RWops.Union0.Struct1]]
def unknown_=(value: SDL_RWops.Union0.Struct1): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_RWops.Union0.Struct1]] = value
given _tag: Tag[SDL_RWops] = Tag.materializeCStruct7Tag[CFuncPtr1[Ptr[Byte], Sint64], CFuncPtr3[Ptr[Byte], Sint64, CInt, Sint64], CFuncPtr4[Ptr[Byte], Ptr[Byte], size_t, size_t, size_t], CFuncPtr4[Ptr[Byte], Ptr[Byte], size_t, size_t, size_t], CFuncPtr1[Ptr[Byte], CInt], Uint32, SDL_RWops.Union0]
def apply()(using Zone): Ptr[SDL_RWops] = scala.scalanative.unsafe.alloc[SDL_RWops](1)
def apply(size: CFuncPtr1[Ptr[SDL_RWops], Sint64], seek: CFuncPtr3[Ptr[SDL_RWops], Sint64, CInt, Sint64], read: CFuncPtr4[Ptr[SDL_RWops], Ptr[Byte], size_t, size_t, size_t], write: CFuncPtr4[Ptr[SDL_RWops], Ptr[Byte], size_t, size_t, size_t], close: CFuncPtr1[Ptr[SDL_RWops], CInt], `type`: Uint32, hidden: SDL_RWops.Union0)(using Zone): Ptr[SDL_RWops] =
val ____ptr = apply()
(!____ptr).size = size
(!____ptr).seek = seek
(!____ptr).read = read
(!____ptr).write = write
(!____ptr).close = close
(!____ptr).`type` = `type`
(!____ptr).hidden = hidden
____ptr
extension (struct: SDL_RWops)
def size: CFuncPtr1[Ptr[SDL_RWops], Sint64] = struct._1.asInstanceOf[CFuncPtr1[Ptr[SDL_RWops], Sint64]]
def size_=(value: CFuncPtr1[Ptr[SDL_RWops], Sint64]): Unit = !struct.at1 = value.asInstanceOf[CFuncPtr1[Ptr[Byte], Sint64]]
def seek: CFuncPtr3[Ptr[SDL_RWops], Sint64, CInt, Sint64] = struct._2.asInstanceOf[CFuncPtr3[Ptr[SDL_RWops], Sint64, CInt, Sint64]]
def seek_=(value: CFuncPtr3[Ptr[SDL_RWops], Sint64, CInt, Sint64]): Unit = !struct.at2 = value.asInstanceOf[CFuncPtr3[Ptr[Byte], Sint64, CInt, Sint64]]
def read: CFuncPtr4[Ptr[SDL_RWops], Ptr[Byte], size_t, size_t, size_t] = struct._3.asInstanceOf[CFuncPtr4[Ptr[SDL_RWops], Ptr[Byte], size_t, size_t, size_t]]
def read_=(value: CFuncPtr4[Ptr[SDL_RWops], Ptr[Byte], size_t, size_t, size_t]): Unit = !struct.at3 = value.asInstanceOf[CFuncPtr4[Ptr[Byte], Ptr[Byte], size_t, size_t, size_t]]
def write: CFuncPtr4[Ptr[SDL_RWops], Ptr[Byte], size_t, size_t, size_t] = struct._4.asInstanceOf[CFuncPtr4[Ptr[SDL_RWops], Ptr[Byte], size_t, size_t, size_t]]
def write_=(value: CFuncPtr4[Ptr[SDL_RWops], Ptr[Byte], size_t, size_t, size_t]): Unit = !struct.at4 = value.asInstanceOf[CFuncPtr4[Ptr[Byte], Ptr[Byte], size_t, size_t, size_t]]
def close: CFuncPtr1[Ptr[SDL_RWops], CInt] = struct._5.asInstanceOf[CFuncPtr1[Ptr[SDL_RWops], CInt]]
def close_=(value: CFuncPtr1[Ptr[SDL_RWops], CInt]): Unit = !struct.at5 = value.asInstanceOf[CFuncPtr1[Ptr[Byte], CInt]]
def `type`: Uint32 = struct._6
def type_=(value: Uint32): Unit = !struct.at6 = value
def hidden: SDL_RWops.Union0 = struct._7
def hidden_=(value: SDL_RWops.Union0): Unit = !struct.at7 = value
opaque type SDL_Rect = CStruct4[CInt, CInt, CInt, CInt]
object SDL_Rect:
given _tag: Tag[SDL_Rect] = Tag.materializeCStruct4Tag[CInt, CInt, CInt, CInt]
def apply()(using Zone): Ptr[SDL_Rect] = scala.scalanative.unsafe.alloc[SDL_Rect](1)
def apply(x: CInt, y: CInt, w: CInt, h: CInt)(using Zone): Ptr[SDL_Rect] =
val ____ptr = apply()
(!____ptr).x = x
(!____ptr).y = y
(!____ptr).w = w
(!____ptr).h = h
____ptr
extension (struct: SDL_Rect)
def x: CInt = struct._1
def x_=(value: CInt): Unit = !struct.at1 = value
def y: CInt = struct._2
def y_=(value: CInt): Unit = !struct.at2 = value
def w: CInt = struct._3
def w_=(value: CInt): Unit = !struct.at3 = value
def h: CInt = struct._4
def h_=(value: CInt): Unit = !struct.at4 = value
opaque type SDL_Renderer = CStruct0
object SDL_Renderer:
given _tag: Tag[SDL_Renderer] = Tag.materializeCStruct0Tag
opaque type SDL_RendererInfo = CStruct6[CString, Uint32, Uint32, CArray[Uint32, Nat.Digit2[Nat._1, Nat._6]], CInt, CInt]
object SDL_RendererInfo:
given _tag: Tag[SDL_RendererInfo] = Tag.materializeCStruct6Tag[CString, Uint32, Uint32, CArray[Uint32, Nat.Digit2[Nat._1, Nat._6]], CInt, CInt]
def apply()(using Zone): Ptr[SDL_RendererInfo] = scala.scalanative.unsafe.alloc[SDL_RendererInfo](1)
def apply(name: CString, flags: Uint32, num_texture_formats: Uint32, texture_formats: CArray[Uint32, Nat.Digit2[Nat._1, Nat._6]], max_texture_width: CInt, max_texture_height: CInt)(using Zone): Ptr[SDL_RendererInfo] =
val ____ptr = apply()
(!____ptr).name = name
(!____ptr).flags = flags
(!____ptr).num_texture_formats = num_texture_formats
(!____ptr).texture_formats = texture_formats
(!____ptr).max_texture_width = max_texture_width
(!____ptr).max_texture_height = max_texture_height
____ptr
extension (struct: SDL_RendererInfo)
def name: CString = struct._1
def name_=(value: CString): Unit = !struct.at1 = value
def flags: Uint32 = struct._2
def flags_=(value: Uint32): Unit = !struct.at2 = value
def num_texture_formats: Uint32 = struct._3
def num_texture_formats_=(value: Uint32): Unit = !struct.at3 = value
def texture_formats: CArray[Uint32, Nat.Digit2[Nat._1, Nat._6]] = struct._4
def texture_formats_=(value: CArray[Uint32, Nat.Digit2[Nat._1, Nat._6]]): Unit = !struct.at4 = value
def max_texture_width: CInt = struct._5
def max_texture_width_=(value: CInt): Unit = !struct.at5 = value
def max_texture_height: CInt = struct._6
def max_texture_height_=(value: CInt): Unit = !struct.at6 = value
opaque type SDL_Sensor = CStruct0
object SDL_Sensor:
given _tag: Tag[SDL_Sensor] = Tag.materializeCStruct0Tag
opaque type SDL_SensorEvent = CStruct4[Uint32, Uint32, Sint32, CArray[Float, Nat._6]]
object SDL_SensorEvent:
given _tag: Tag[SDL_SensorEvent] = Tag.materializeCStruct4Tag[Uint32, Uint32, Sint32, CArray[Float, Nat._6]]
def apply()(using Zone): Ptr[SDL_SensorEvent] = scala.scalanative.unsafe.alloc[SDL_SensorEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, which: Sint32, data: CArray[Float, Nat._6])(using Zone): Ptr[SDL_SensorEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).which = which
(!____ptr).data = data
____ptr
extension (struct: SDL_SensorEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def which: Sint32 = struct._3
def which_=(value: Sint32): Unit = !struct.at3 = value
def data: CArray[Float, Nat._6] = struct._4
def data_=(value: CArray[Float, Nat._6]): Unit = !struct.at4 = value
opaque type SDL_Surface = CStruct12[Uint32, Ptr[Byte], CInt, CInt, CInt, Ptr[Byte], Ptr[Byte], CInt, Ptr[Byte], SDL_Rect, Ptr[SDL_BlitMap], CInt]
object SDL_Surface:
opaque type Struct0 = CStruct0
object Struct0:
given _tag: Tag[Struct0] = Tag.materializeCStruct0Tag
given _tag: Tag[SDL_Surface] = Tag.materializeCStruct12Tag[Uint32, Ptr[Byte], CInt, CInt, CInt, Ptr[Byte], Ptr[Byte], CInt, Ptr[Byte], SDL_Rect, Ptr[SDL_BlitMap], CInt]
def apply()(using Zone): Ptr[SDL_Surface] = scala.scalanative.unsafe.alloc[SDL_Surface](1)
def apply(flags: Uint32, format: Ptr[SDL_PixelFormat], w: CInt, h: CInt, pitch: CInt, pixels: Ptr[Byte], userdata: Ptr[Byte], locked: CInt, list_blitmap: Ptr[Byte], clip_rect: SDL_Rect, map: Ptr[SDL_BlitMap], refcount: CInt)(using Zone): Ptr[SDL_Surface] =
val ____ptr = apply()
(!____ptr).flags = flags
(!____ptr).format = format
(!____ptr).w = w
(!____ptr).h = h
(!____ptr).pitch = pitch
(!____ptr).pixels = pixels
(!____ptr).userdata = userdata
(!____ptr).locked = locked
(!____ptr).list_blitmap = list_blitmap
(!____ptr).clip_rect = clip_rect
(!____ptr).map = map
(!____ptr).refcount = refcount
____ptr
extension (struct: SDL_Surface)
def flags: Uint32 = struct._1
def flags_=(value: Uint32): Unit = !struct.at1 = value
def format: Ptr[SDL_PixelFormat] = struct._2.asInstanceOf[Ptr[SDL_PixelFormat]]
def format_=(value: Ptr[SDL_PixelFormat]): Unit = !struct.at2 = value.asInstanceOf[Ptr[Byte]]
def w: CInt = struct._3
def w_=(value: CInt): Unit = !struct.at3 = value
def h: CInt = struct._4
def h_=(value: CInt): Unit = !struct.at4 = value
def pitch: CInt = struct._5
def pitch_=(value: CInt): Unit = !struct.at5 = value
def pixels: Ptr[Byte] = struct._6
def pixels_=(value: Ptr[Byte]): Unit = !struct.at6 = value
def userdata: Ptr[Byte] = struct._7
def userdata_=(value: Ptr[Byte]): Unit = !struct.at7 = value
def locked: CInt = struct._8
def locked_=(value: CInt): Unit = !struct.at8 = value
def list_blitmap: Ptr[Byte] = struct._9
def list_blitmap_=(value: Ptr[Byte]): Unit = !struct.at9 = value
def clip_rect: SDL_Rect = struct._10
def clip_rect_=(value: SDL_Rect): Unit = !struct.at10 = value
def map: Ptr[SDL_BlitMap] = struct._11
def map_=(value: Ptr[SDL_BlitMap]): Unit = !struct.at11 = value
def refcount: CInt = struct._12
def refcount_=(value: CInt): Unit = !struct.at12 = value
opaque type SDL_SysWMEvent = CStruct3[Uint32, Uint32, Ptr[SDL_SysWMmsg]]
object SDL_SysWMEvent:
given _tag: Tag[SDL_SysWMEvent] = Tag.materializeCStruct3Tag[Uint32, Uint32, Ptr[SDL_SysWMmsg]]
def apply()(using Zone): Ptr[SDL_SysWMEvent] = scala.scalanative.unsafe.alloc[SDL_SysWMEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, msg: Ptr[SDL_SysWMmsg])(using Zone): Ptr[SDL_SysWMEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).msg = msg
____ptr
extension (struct: SDL_SysWMEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def msg: Ptr[SDL_SysWMmsg] = struct._3
def msg_=(value: Ptr[SDL_SysWMmsg]): Unit = !struct.at3 = value
opaque type SDL_SysWMmsg = CStruct0
object SDL_SysWMmsg:
given _tag: Tag[SDL_SysWMmsg] = Tag.materializeCStruct0Tag
opaque type SDL_TextEditingEvent = CStruct6[Uint32, Uint32, Uint32, CArray[CChar, Nat.Digit2[Nat._3, Nat._2]], Sint32, Sint32]
object SDL_TextEditingEvent:
given _tag: Tag[SDL_TextEditingEvent] = Tag.materializeCStruct6Tag[Uint32, Uint32, Uint32, CArray[CChar, Nat.Digit2[Nat._3, Nat._2]], Sint32, Sint32]
def apply()(using Zone): Ptr[SDL_TextEditingEvent] = scala.scalanative.unsafe.alloc[SDL_TextEditingEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, windowID: Uint32, text: CArray[CChar, Nat.Digit2[Nat._3, Nat._2]], start: Sint32, length: Sint32)(using Zone): Ptr[SDL_TextEditingEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).windowID = windowID
(!____ptr).text = text
(!____ptr).start = start
(!____ptr).length = length
____ptr
extension (struct: SDL_TextEditingEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def windowID: Uint32 = struct._3
def windowID_=(value: Uint32): Unit = !struct.at3 = value
def text: CArray[CChar, Nat.Digit2[Nat._3, Nat._2]] = struct._4
def text_=(value: CArray[CChar, Nat.Digit2[Nat._3, Nat._2]]): Unit = !struct.at4 = value
def start: Sint32 = struct._5
def start_=(value: Sint32): Unit = !struct.at5 = value
def length: Sint32 = struct._6
def length_=(value: Sint32): Unit = !struct.at6 = value
opaque type SDL_TextEditingExtEvent = CStruct6[Uint32, Uint32, Uint32, CString, Sint32, Sint32]
object SDL_TextEditingExtEvent:
given _tag: Tag[SDL_TextEditingExtEvent] = Tag.materializeCStruct6Tag[Uint32, Uint32, Uint32, CString, Sint32, Sint32]
def apply()(using Zone): Ptr[SDL_TextEditingExtEvent] = scala.scalanative.unsafe.alloc[SDL_TextEditingExtEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, windowID: Uint32, text: CString, start: Sint32, length: Sint32)(using Zone): Ptr[SDL_TextEditingExtEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).windowID = windowID
(!____ptr).text = text
(!____ptr).start = start
(!____ptr).length = length
____ptr
extension (struct: SDL_TextEditingExtEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def windowID: Uint32 = struct._3
def windowID_=(value: Uint32): Unit = !struct.at3 = value
def text: CString = struct._4
def text_=(value: CString): Unit = !struct.at4 = value
def start: Sint32 = struct._5
def start_=(value: Sint32): Unit = !struct.at5 = value
def length: Sint32 = struct._6
def length_=(value: Sint32): Unit = !struct.at6 = value
opaque type SDL_TextInputEvent = CStruct4[Uint32, Uint32, Uint32, CArray[CChar, Nat.Digit2[Nat._3, Nat._2]]]
object SDL_TextInputEvent:
given _tag: Tag[SDL_TextInputEvent] = Tag.materializeCStruct4Tag[Uint32, Uint32, Uint32, CArray[CChar, Nat.Digit2[Nat._3, Nat._2]]]
def apply()(using Zone): Ptr[SDL_TextInputEvent] = scala.scalanative.unsafe.alloc[SDL_TextInputEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, windowID: Uint32, text: CArray[CChar, Nat.Digit2[Nat._3, Nat._2]])(using Zone): Ptr[SDL_TextInputEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).windowID = windowID
(!____ptr).text = text
____ptr
extension (struct: SDL_TextInputEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def windowID: Uint32 = struct._3
def windowID_=(value: Uint32): Unit = !struct.at3 = value
def text: CArray[CChar, Nat.Digit2[Nat._3, Nat._2]] = struct._4
def text_=(value: CArray[CChar, Nat.Digit2[Nat._3, Nat._2]]): Unit = !struct.at4 = value
opaque type SDL_Texture = CStruct0
object SDL_Texture:
given _tag: Tag[SDL_Texture] = Tag.materializeCStruct0Tag
opaque type SDL_Thread = CStruct0
object SDL_Thread:
given _tag: Tag[SDL_Thread] = Tag.materializeCStruct0Tag
opaque type SDL_TouchFingerEvent = CStruct10[Uint32, Uint32, SDL_TouchID, SDL_FingerID, Float, Float, Float, Float, Float, Uint32]
object SDL_TouchFingerEvent:
given _tag: Tag[SDL_TouchFingerEvent] = Tag.materializeCStruct10Tag[Uint32, Uint32, SDL_TouchID, SDL_FingerID, Float, Float, Float, Float, Float, Uint32]
def apply()(using Zone): Ptr[SDL_TouchFingerEvent] = scala.scalanative.unsafe.alloc[SDL_TouchFingerEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, touchId: SDL_TouchID, fingerId: SDL_FingerID, x: Float, y: Float, dx: Float, dy: Float, pressure: Float, windowID: Uint32)(using Zone): Ptr[SDL_TouchFingerEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).touchId = touchId
(!____ptr).fingerId = fingerId
(!____ptr).x = x
(!____ptr).y = y
(!____ptr).dx = dx
(!____ptr).dy = dy
(!____ptr).pressure = pressure
(!____ptr).windowID = windowID
____ptr
extension (struct: SDL_TouchFingerEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def touchId: SDL_TouchID = struct._3
def touchId_=(value: SDL_TouchID): Unit = !struct.at3 = value
def fingerId: SDL_FingerID = struct._4
def fingerId_=(value: SDL_FingerID): Unit = !struct.at4 = value
def x: Float = struct._5
def x_=(value: Float): Unit = !struct.at5 = value
def y: Float = struct._6
def y_=(value: Float): Unit = !struct.at6 = value
def dx: Float = struct._7
def dx_=(value: Float): Unit = !struct.at7 = value
def dy: Float = struct._8
def dy_=(value: Float): Unit = !struct.at8 = value
def pressure: Float = struct._9
def pressure_=(value: Float): Unit = !struct.at9 = value
def windowID: Uint32 = struct._10
def windowID_=(value: Uint32): Unit = !struct.at10 = value
opaque type SDL_UserEvent = CStruct6[Uint32, Uint32, Uint32, Sint32, Ptr[Byte], Ptr[Byte]]
object SDL_UserEvent:
given _tag: Tag[SDL_UserEvent] = Tag.materializeCStruct6Tag[Uint32, Uint32, Uint32, Sint32, Ptr[Byte], Ptr[Byte]]
def apply()(using Zone): Ptr[SDL_UserEvent] = scala.scalanative.unsafe.alloc[SDL_UserEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, windowID: Uint32, code: Sint32, data1: Ptr[Byte], data2: Ptr[Byte])(using Zone): Ptr[SDL_UserEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).windowID = windowID
(!____ptr).code = code
(!____ptr).data1 = data1
(!____ptr).data2 = data2
____ptr
extension (struct: SDL_UserEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def windowID: Uint32 = struct._3
def windowID_=(value: Uint32): Unit = !struct.at3 = value
def code: Sint32 = struct._4
def code_=(value: Sint32): Unit = !struct.at4 = value
def data1: Ptr[Byte] = struct._5
def data1_=(value: Ptr[Byte]): Unit = !struct.at5 = value
def data2: Ptr[Byte] = struct._6
def data2_=(value: Ptr[Byte]): Unit = !struct.at6 = value
opaque type SDL_Vertex = CStruct3[SDL_FPoint, SDL_Color, SDL_FPoint]
object SDL_Vertex:
given _tag: Tag[SDL_Vertex] = Tag.materializeCStruct3Tag[SDL_FPoint, SDL_Color, SDL_FPoint]
def apply()(using Zone): Ptr[SDL_Vertex] = scala.scalanative.unsafe.alloc[SDL_Vertex](1)
def apply(position: SDL_FPoint, color: SDL_Color, tex_coord: SDL_FPoint)(using Zone): Ptr[SDL_Vertex] =
val ____ptr = apply()
(!____ptr).position = position
(!____ptr).color = color
(!____ptr).tex_coord = tex_coord
____ptr
extension (struct: SDL_Vertex)
def position: SDL_FPoint = struct._1
def position_=(value: SDL_FPoint): Unit = !struct.at1 = value
def color: SDL_Color = struct._2
def color_=(value: SDL_Color): Unit = !struct.at2 = value
def tex_coord: SDL_FPoint = struct._3
def tex_coord_=(value: SDL_FPoint): Unit = !struct.at3 = value
opaque type SDL_Window = CStruct0
object SDL_Window:
given _tag: Tag[SDL_Window] = Tag.materializeCStruct0Tag
opaque type SDL_WindowEvent = CStruct9[Uint32, Uint32, Uint32, Uint8, Uint8, Uint8, Uint8, Sint32, Sint32]
object SDL_WindowEvent:
given _tag: Tag[SDL_WindowEvent] = Tag.materializeCStruct9Tag[Uint32, Uint32, Uint32, Uint8, Uint8, Uint8, Uint8, Sint32, Sint32]
def apply()(using Zone): Ptr[SDL_WindowEvent] = scala.scalanative.unsafe.alloc[SDL_WindowEvent](1)
def apply(`type`: Uint32, timestamp: Uint32, windowID: Uint32, event: Uint8, padding1: Uint8, padding2: Uint8, padding3: Uint8, data1: Sint32, data2: Sint32)(using Zone): Ptr[SDL_WindowEvent] =
val ____ptr = apply()
(!____ptr).`type` = `type`
(!____ptr).timestamp = timestamp
(!____ptr).windowID = windowID
(!____ptr).event = event
(!____ptr).padding1 = padding1
(!____ptr).padding2 = padding2
(!____ptr).padding3 = padding3
(!____ptr).data1 = data1
(!____ptr).data2 = data2
____ptr
extension (struct: SDL_WindowEvent)
def `type`: Uint32 = struct._1
def type_=(value: Uint32): Unit = !struct.at1 = value
def timestamp: Uint32 = struct._2
def timestamp_=(value: Uint32): Unit = !struct.at2 = value
def windowID: Uint32 = struct._3
def windowID_=(value: Uint32): Unit = !struct.at3 = value
def event: Uint8 = struct._4
def event_=(value: Uint8): Unit = !struct.at4 = value
def padding1: Uint8 = struct._5
def padding1_=(value: Uint8): Unit = !struct.at5 = value
def padding2: Uint8 = struct._6
def padding2_=(value: Uint8): Unit = !struct.at6 = value
def padding3: Uint8 = struct._7
def padding3_=(value: Uint8): Unit = !struct.at7 = value
def data1: Sint32 = struct._8
def data1_=(value: Sint32): Unit = !struct.at8 = value
def data2: Sint32 = struct._9
def data2_=(value: Sint32): Unit = !struct.at9 = value
opaque type SDL_WindowShapeMode = CStruct2[WindowShapeMode, SDL_WindowShapeParams]
object SDL_WindowShapeMode:
given _tag: Tag[SDL_WindowShapeMode] = Tag.materializeCStruct2Tag[WindowShapeMode, SDL_WindowShapeParams]
def apply()(using Zone): Ptr[SDL_WindowShapeMode] = scala.scalanative.unsafe.alloc[SDL_WindowShapeMode](1)
def apply(mode: WindowShapeMode, parameters: SDL_WindowShapeParams)(using Zone): Ptr[SDL_WindowShapeMode] =
val ____ptr = apply()
(!____ptr).mode = mode
(!____ptr).parameters = parameters
____ptr
extension (struct: SDL_WindowShapeMode)
def mode: WindowShapeMode = struct._1
def mode_=(value: WindowShapeMode): Unit = !struct.at1 = value
def parameters: SDL_WindowShapeParams = struct._2
def parameters_=(value: SDL_WindowShapeParams): Unit = !struct.at2 = value
opaque type SDL_atomic_t = CStruct1[CInt]
object SDL_atomic_t:
given _tag: Tag[SDL_atomic_t] = Tag.materializeCStruct1Tag[CInt]
def apply()(using Zone): Ptr[SDL_atomic_t] = scala.scalanative.unsafe.alloc[SDL_atomic_t](1)
def apply(value: CInt)(using Zone): Ptr[SDL_atomic_t] =
val ____ptr = apply()
(!____ptr).value = value
____ptr
extension (struct: SDL_atomic_t)
def value: CInt = struct._1
def value_=(value: CInt): Unit = !struct.at1 = value
opaque type SDL_cond = CStruct0
object SDL_cond:
given _tag: Tag[SDL_cond] = Tag.materializeCStruct0Tag
opaque type SDL_hid_device = CStruct0
object SDL_hid_device:
given _tag: Tag[SDL_hid_device] = Tag.materializeCStruct0Tag
opaque type SDL_hid_device_ = CStruct0
object SDL_hid_device_:
given _tag: Tag[SDL_hid_device_] = Tag.materializeCStruct0Tag
opaque type SDL_hid_device_info = CStruct14[CString, CUnsignedShort, CUnsignedShort, Ptr[wchar_t], CUnsignedShort, Ptr[wchar_t], Ptr[wchar_t], CUnsignedShort, CUnsignedShort, CInt, CInt, CInt, CInt, Ptr[Byte]]
object SDL_hid_device_info:
given _tag: Tag[SDL_hid_device_info] = Tag.materializeCStruct14Tag[CString, CUnsignedShort, CUnsignedShort, Ptr[wchar_t], CUnsignedShort, Ptr[wchar_t], Ptr[wchar_t], CUnsignedShort, CUnsignedShort, CInt, CInt, CInt, CInt, Ptr[Byte]]
def apply()(using Zone): Ptr[SDL_hid_device_info] = scala.scalanative.unsafe.alloc[SDL_hid_device_info](1)
def apply(path: CString, vendor_id: CUnsignedShort, product_id: CUnsignedShort, serial_number: Ptr[wchar_t], release_number: CUnsignedShort, manufacturer_string: Ptr[wchar_t], product_string: Ptr[wchar_t], usage_page: CUnsignedShort, usage: CUnsignedShort, interface_number: CInt, interface_class: CInt, interface_subclass: CInt, interface_protocol: CInt, next: Ptr[SDL_hid_device_info])(using Zone): Ptr[SDL_hid_device_info] =
val ____ptr = apply()
(!____ptr).path = path
(!____ptr).vendor_id = vendor_id
(!____ptr).product_id = product_id
(!____ptr).serial_number = serial_number
(!____ptr).release_number = release_number
(!____ptr).manufacturer_string = manufacturer_string
(!____ptr).product_string = product_string
(!____ptr).usage_page = usage_page
(!____ptr).usage = usage
(!____ptr).interface_number = interface_number
(!____ptr).interface_class = interface_class
(!____ptr).interface_subclass = interface_subclass
(!____ptr).interface_protocol = interface_protocol
(!____ptr).next = next
____ptr
extension (struct: SDL_hid_device_info)
def path: CString = struct._1
def path_=(value: CString): Unit = !struct.at1 = value
def vendor_id: CUnsignedShort = struct._2
def vendor_id_=(value: CUnsignedShort): Unit = !struct.at2 = value
def product_id: CUnsignedShort = struct._3
def product_id_=(value: CUnsignedShort): Unit = !struct.at3 = value
def serial_number: Ptr[wchar_t] = struct._4
def serial_number_=(value: Ptr[wchar_t]): Unit = !struct.at4 = value
def release_number: CUnsignedShort = struct._5
def release_number_=(value: CUnsignedShort): Unit = !struct.at5 = value
def manufacturer_string: Ptr[wchar_t] = struct._6
def manufacturer_string_=(value: Ptr[wchar_t]): Unit = !struct.at6 = value
def product_string: Ptr[wchar_t] = struct._7
def product_string_=(value: Ptr[wchar_t]): Unit = !struct.at7 = value
def usage_page: CUnsignedShort = struct._8
def usage_page_=(value: CUnsignedShort): Unit = !struct.at8 = value
def usage: CUnsignedShort = struct._9
def usage_=(value: CUnsignedShort): Unit = !struct.at9 = value
def interface_number: CInt = struct._10
def interface_number_=(value: CInt): Unit = !struct.at10 = value
def interface_class: CInt = struct._11
def interface_class_=(value: CInt): Unit = !struct.at11 = value
def interface_subclass: CInt = struct._12
def interface_subclass_=(value: CInt): Unit = !struct.at12 = value
def interface_protocol: CInt = struct._13
def interface_protocol_=(value: CInt): Unit = !struct.at13 = value
def next: Ptr[SDL_hid_device_info] = struct._14.asInstanceOf[Ptr[SDL_hid_device_info]]
def next_=(value: Ptr[SDL_hid_device_info]): Unit = !struct.at14 = value.asInstanceOf[Ptr[Byte]]
opaque type SDL_mutex = CStruct0
object SDL_mutex:
given _tag: Tag[SDL_mutex] = Tag.materializeCStruct0Tag
opaque type SDL_sem = CStruct0
object SDL_sem:
given _tag: Tag[SDL_sem] = Tag.materializeCStruct0Tag
opaque type SDL_semaphore = CStruct0
object SDL_semaphore:
given _tag: Tag[SDL_semaphore] = Tag.materializeCStruct0Tag
opaque type SDL_version = CStruct3[Uint8, Uint8, Uint8]
object SDL_version:
given _tag: Tag[SDL_version] = Tag.materializeCStruct3Tag[Uint8, Uint8, Uint8]
def apply()(using Zone): Ptr[SDL_version] = scala.scalanative.unsafe.alloc[SDL_version](1)
def apply(major: Uint8, minor: Uint8, patch: Uint8)(using Zone): Ptr[SDL_version] =
val ____ptr = apply()
(!____ptr).major = major
(!____ptr).minor = minor
(!____ptr).patch = patch
____ptr
extension (struct: SDL_version)
def major: Uint8 = struct._1
def major_=(value: Uint8): Unit = !struct.at1 = value
def minor: Uint8 = struct._2
def minor_=(value: Uint8): Unit = !struct.at2 = value
def patch: Uint8 = struct._3
def patch_=(value: Uint8): Unit = !struct.at3 = value
opaque type _SDL_AudioStream = CStruct0
object _SDL_AudioStream:
given _tag: Tag[_SDL_AudioStream] = Tag.materializeCStruct0Tag
opaque type _SDL_GameController = CStruct0
object _SDL_GameController:
given _tag: Tag[_SDL_GameController] = Tag.materializeCStruct0Tag
opaque type _SDL_Haptic = CStruct0
object _SDL_Haptic:
given _tag: Tag[_SDL_Haptic] = Tag.materializeCStruct0Tag
opaque type _SDL_Joystick = CStruct0
object _SDL_Joystick:
given _tag: Tag[_SDL_Joystick] = Tag.materializeCStruct0Tag
opaque type _SDL_Sensor = CStruct0
object _SDL_Sensor:
given _tag: Tag[_SDL_Sensor] = Tag.materializeCStruct0Tag
opaque type _SDL_iconv_t = CStruct0
object _SDL_iconv_t:
given _tag: Tag[_SDL_iconv_t] = Tag.materializeCStruct0Tag
opaque type SDL_Event = CArray[Byte, Nat.Digit2[Nat._5, Nat._6]]
object SDL_Event:
given _tag: Tag[SDL_Event] = Tag.CArray[CChar, Nat.Digit2[Nat._5, Nat._6]](Tag.Byte, Tag.Digit2[Nat._5, Nat._6](Tag.Nat5, Tag.Nat6))
def apply()(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
___ptr
@scala.annotation.targetName("apply_type")
def apply(`type`: Uint32)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[Uint32]].update(0, `type`)
___ptr
@scala.annotation.targetName("apply_common")
def apply(common: SDL_CommonEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_CommonEvent]].update(0, common)
___ptr
@scala.annotation.targetName("apply_display")
def apply(display: SDL_DisplayEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_DisplayEvent]].update(0, display)
___ptr
@scala.annotation.targetName("apply_window")
def apply(window: SDL_WindowEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_WindowEvent]].update(0, window)
___ptr
@scala.annotation.targetName("apply_key")
def apply(key: SDL_KeyboardEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_KeyboardEvent]].update(0, key)
___ptr
@scala.annotation.targetName("apply_edit")
def apply(edit: SDL_TextEditingEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_TextEditingEvent]].update(0, edit)
___ptr
@scala.annotation.targetName("apply_editExt")
def apply(editExt: SDL_TextEditingExtEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_TextEditingExtEvent]].update(0, editExt)
___ptr
@scala.annotation.targetName("apply_text")
def apply(text: SDL_TextInputEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_TextInputEvent]].update(0, text)
___ptr
@scala.annotation.targetName("apply_motion")
def apply(motion: SDL_MouseMotionEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_MouseMotionEvent]].update(0, motion)
___ptr
@scala.annotation.targetName("apply_button")
def apply(button: SDL_MouseButtonEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_MouseButtonEvent]].update(0, button)
___ptr
@scala.annotation.targetName("apply_wheel")
def apply(wheel: SDL_MouseWheelEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_MouseWheelEvent]].update(0, wheel)
___ptr
@scala.annotation.targetName("apply_jaxis")
def apply(jaxis: SDL_JoyAxisEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_JoyAxisEvent]].update(0, jaxis)
___ptr
@scala.annotation.targetName("apply_jball")
def apply(jball: SDL_JoyBallEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_JoyBallEvent]].update(0, jball)
___ptr
@scala.annotation.targetName("apply_jhat")
def apply(jhat: SDL_JoyHatEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_JoyHatEvent]].update(0, jhat)
___ptr
@scala.annotation.targetName("apply_jbutton")
def apply(jbutton: SDL_JoyButtonEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_JoyButtonEvent]].update(0, jbutton)
___ptr
@scala.annotation.targetName("apply_jdevice")
def apply(jdevice: SDL_JoyDeviceEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_JoyDeviceEvent]].update(0, jdevice)
___ptr
@scala.annotation.targetName("apply_caxis")
def apply(caxis: SDL_ControllerAxisEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_ControllerAxisEvent]].update(0, caxis)
___ptr
@scala.annotation.targetName("apply_cbutton")
def apply(cbutton: SDL_ControllerButtonEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_ControllerButtonEvent]].update(0, cbutton)
___ptr
@scala.annotation.targetName("apply_cdevice")
def apply(cdevice: SDL_ControllerDeviceEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_ControllerDeviceEvent]].update(0, cdevice)
___ptr
@scala.annotation.targetName("apply_ctouchpad")
def apply(ctouchpad: SDL_ControllerTouchpadEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_ControllerTouchpadEvent]].update(0, ctouchpad)
___ptr
@scala.annotation.targetName("apply_csensor")
def apply(csensor: SDL_ControllerSensorEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_ControllerSensorEvent]].update(0, csensor)
___ptr
@scala.annotation.targetName("apply_adevice")
def apply(adevice: SDL_AudioDeviceEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_AudioDeviceEvent]].update(0, adevice)
___ptr
@scala.annotation.targetName("apply_sensor")
def apply(sensor: SDL_SensorEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_SensorEvent]].update(0, sensor)
___ptr
@scala.annotation.targetName("apply_quit")
def apply(quit: SDL_QuitEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_QuitEvent]].update(0, quit)
___ptr
@scala.annotation.targetName("apply_user")
def apply(user: SDL_UserEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_UserEvent]].update(0, user)
___ptr
@scala.annotation.targetName("apply_syswm")
def apply(syswm: SDL_SysWMEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_SysWMEvent]].update(0, syswm)
___ptr
@scala.annotation.targetName("apply_tfinger")
def apply(tfinger: SDL_TouchFingerEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_TouchFingerEvent]].update(0, tfinger)
___ptr
@scala.annotation.targetName("apply_mgesture")
def apply(mgesture: SDL_MultiGestureEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_MultiGestureEvent]].update(0, mgesture)
___ptr
@scala.annotation.targetName("apply_dgesture")
def apply(dgesture: SDL_DollarGestureEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_DollarGestureEvent]].update(0, dgesture)
___ptr
@scala.annotation.targetName("apply_drop")
def apply(drop: SDL_DropEvent)(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_DropEvent]].update(0, drop)
___ptr
@scala.annotation.targetName("apply_padding")
def apply(padding: CArray[Uint8, Nat.Digit2[Nat._5, Nat._6]])(using Zone): Ptr[SDL_Event] =
val ___ptr = alloc[SDL_Event](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[CArray[Uint8, Nat.Digit2[Nat._5, Nat._6]]]].update(0, padding)
___ptr
extension (struct: SDL_Event)
def `type`: Uint32 = !struct.at(0).asInstanceOf[Ptr[Uint32]]
def type_=(value: Uint32): Unit = !struct.at(0).asInstanceOf[Ptr[Uint32]] = value
def common: SDL_CommonEvent = !struct.at(0).asInstanceOf[Ptr[SDL_CommonEvent]]
def common_=(value: SDL_CommonEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_CommonEvent]] = value
def display: SDL_DisplayEvent = !struct.at(0).asInstanceOf[Ptr[SDL_DisplayEvent]]
def display_=(value: SDL_DisplayEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_DisplayEvent]] = value
def window: SDL_WindowEvent = !struct.at(0).asInstanceOf[Ptr[SDL_WindowEvent]]
def window_=(value: SDL_WindowEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_WindowEvent]] = value
def key: SDL_KeyboardEvent = !struct.at(0).asInstanceOf[Ptr[SDL_KeyboardEvent]]
def key_=(value: SDL_KeyboardEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_KeyboardEvent]] = value
def edit: SDL_TextEditingEvent = !struct.at(0).asInstanceOf[Ptr[SDL_TextEditingEvent]]
def edit_=(value: SDL_TextEditingEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_TextEditingEvent]] = value
def editExt: SDL_TextEditingExtEvent = !struct.at(0).asInstanceOf[Ptr[SDL_TextEditingExtEvent]]
def editExt_=(value: SDL_TextEditingExtEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_TextEditingExtEvent]] = value
def text: SDL_TextInputEvent = !struct.at(0).asInstanceOf[Ptr[SDL_TextInputEvent]]
def text_=(value: SDL_TextInputEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_TextInputEvent]] = value
def motion: SDL_MouseMotionEvent = !struct.at(0).asInstanceOf[Ptr[SDL_MouseMotionEvent]]
def motion_=(value: SDL_MouseMotionEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_MouseMotionEvent]] = value
def button: SDL_MouseButtonEvent = !struct.at(0).asInstanceOf[Ptr[SDL_MouseButtonEvent]]
def button_=(value: SDL_MouseButtonEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_MouseButtonEvent]] = value
def wheel: SDL_MouseWheelEvent = !struct.at(0).asInstanceOf[Ptr[SDL_MouseWheelEvent]]
def wheel_=(value: SDL_MouseWheelEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_MouseWheelEvent]] = value
def jaxis: SDL_JoyAxisEvent = !struct.at(0).asInstanceOf[Ptr[SDL_JoyAxisEvent]]
def jaxis_=(value: SDL_JoyAxisEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_JoyAxisEvent]] = value
def jball: SDL_JoyBallEvent = !struct.at(0).asInstanceOf[Ptr[SDL_JoyBallEvent]]
def jball_=(value: SDL_JoyBallEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_JoyBallEvent]] = value
def jhat: SDL_JoyHatEvent = !struct.at(0).asInstanceOf[Ptr[SDL_JoyHatEvent]]
def jhat_=(value: SDL_JoyHatEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_JoyHatEvent]] = value
def jbutton: SDL_JoyButtonEvent = !struct.at(0).asInstanceOf[Ptr[SDL_JoyButtonEvent]]
def jbutton_=(value: SDL_JoyButtonEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_JoyButtonEvent]] = value
def jdevice: SDL_JoyDeviceEvent = !struct.at(0).asInstanceOf[Ptr[SDL_JoyDeviceEvent]]
def jdevice_=(value: SDL_JoyDeviceEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_JoyDeviceEvent]] = value
def caxis: SDL_ControllerAxisEvent = !struct.at(0).asInstanceOf[Ptr[SDL_ControllerAxisEvent]]
def caxis_=(value: SDL_ControllerAxisEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_ControllerAxisEvent]] = value
def cbutton: SDL_ControllerButtonEvent = !struct.at(0).asInstanceOf[Ptr[SDL_ControllerButtonEvent]]
def cbutton_=(value: SDL_ControllerButtonEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_ControllerButtonEvent]] = value
def cdevice: SDL_ControllerDeviceEvent = !struct.at(0).asInstanceOf[Ptr[SDL_ControllerDeviceEvent]]
def cdevice_=(value: SDL_ControllerDeviceEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_ControllerDeviceEvent]] = value
def ctouchpad: SDL_ControllerTouchpadEvent = !struct.at(0).asInstanceOf[Ptr[SDL_ControllerTouchpadEvent]]
def ctouchpad_=(value: SDL_ControllerTouchpadEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_ControllerTouchpadEvent]] = value
def csensor: SDL_ControllerSensorEvent = !struct.at(0).asInstanceOf[Ptr[SDL_ControllerSensorEvent]]
def csensor_=(value: SDL_ControllerSensorEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_ControllerSensorEvent]] = value
def adevice: SDL_AudioDeviceEvent = !struct.at(0).asInstanceOf[Ptr[SDL_AudioDeviceEvent]]
def adevice_=(value: SDL_AudioDeviceEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_AudioDeviceEvent]] = value
def sensor: SDL_SensorEvent = !struct.at(0).asInstanceOf[Ptr[SDL_SensorEvent]]
def sensor_=(value: SDL_SensorEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_SensorEvent]] = value
def quit: SDL_QuitEvent = !struct.at(0).asInstanceOf[Ptr[SDL_QuitEvent]]
def quit_=(value: SDL_QuitEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_QuitEvent]] = value
def user: SDL_UserEvent = !struct.at(0).asInstanceOf[Ptr[SDL_UserEvent]]
def user_=(value: SDL_UserEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_UserEvent]] = value
def syswm: SDL_SysWMEvent = !struct.at(0).asInstanceOf[Ptr[SDL_SysWMEvent]]
def syswm_=(value: SDL_SysWMEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_SysWMEvent]] = value
def tfinger: SDL_TouchFingerEvent = !struct.at(0).asInstanceOf[Ptr[SDL_TouchFingerEvent]]
def tfinger_=(value: SDL_TouchFingerEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_TouchFingerEvent]] = value
def mgesture: SDL_MultiGestureEvent = !struct.at(0).asInstanceOf[Ptr[SDL_MultiGestureEvent]]
def mgesture_=(value: SDL_MultiGestureEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_MultiGestureEvent]] = value
def dgesture: SDL_DollarGestureEvent = !struct.at(0).asInstanceOf[Ptr[SDL_DollarGestureEvent]]
def dgesture_=(value: SDL_DollarGestureEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_DollarGestureEvent]] = value
def drop: SDL_DropEvent = !struct.at(0).asInstanceOf[Ptr[SDL_DropEvent]]
def drop_=(value: SDL_DropEvent): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_DropEvent]] = value
def padding: CArray[Uint8, Nat.Digit2[Nat._5, Nat._6]] = !struct.at(0).asInstanceOf[Ptr[CArray[Uint8, Nat.Digit2[Nat._5, Nat._6]]]]
def padding_=(value: CArray[Uint8, Nat.Digit2[Nat._5, Nat._6]]): Unit = !struct.at(0).asInstanceOf[Ptr[CArray[Uint8, Nat.Digit2[Nat._5, Nat._6]]]] = value
opaque type SDL_HapticEffect = CArray[Byte, Nat.Digit2[Nat._6, Nat._8]]
object SDL_HapticEffect:
given _tag: Tag[SDL_HapticEffect] = Tag.CArray[CChar, Nat.Digit2[Nat._6, Nat._8]](Tag.Byte, Tag.Digit2[Nat._6, Nat._8](Tag.Nat6, Tag.Nat8))
def apply()(using Zone): Ptr[SDL_HapticEffect] =
val ___ptr = alloc[SDL_HapticEffect](1)
___ptr
@scala.annotation.targetName("apply_type")
def apply(`type`: Uint16)(using Zone): Ptr[SDL_HapticEffect] =
val ___ptr = alloc[SDL_HapticEffect](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[Uint16]].update(0, `type`)
___ptr
@scala.annotation.targetName("apply_constant")
def apply(constant: SDL_HapticConstant)(using Zone): Ptr[SDL_HapticEffect] =
val ___ptr = alloc[SDL_HapticEffect](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_HapticConstant]].update(0, constant)
___ptr
@scala.annotation.targetName("apply_periodic")
def apply(periodic: SDL_HapticPeriodic)(using Zone): Ptr[SDL_HapticEffect] =
val ___ptr = alloc[SDL_HapticEffect](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_HapticPeriodic]].update(0, periodic)
___ptr
@scala.annotation.targetName("apply_condition")
def apply(condition: SDL_HapticCondition)(using Zone): Ptr[SDL_HapticEffect] =
val ___ptr = alloc[SDL_HapticEffect](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_HapticCondition]].update(0, condition)
___ptr
@scala.annotation.targetName("apply_ramp")
def apply(ramp: SDL_HapticRamp)(using Zone): Ptr[SDL_HapticEffect] =
val ___ptr = alloc[SDL_HapticEffect](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_HapticRamp]].update(0, ramp)
___ptr
@scala.annotation.targetName("apply_leftright")
def apply(leftright: SDL_HapticLeftRight)(using Zone): Ptr[SDL_HapticEffect] =
val ___ptr = alloc[SDL_HapticEffect](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_HapticLeftRight]].update(0, leftright)
___ptr
@scala.annotation.targetName("apply_custom")
def apply(custom: SDL_HapticCustom)(using Zone): Ptr[SDL_HapticEffect] =
val ___ptr = alloc[SDL_HapticEffect](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_HapticCustom]].update(0, custom)
___ptr
extension (struct: SDL_HapticEffect)
def `type`: Uint16 = !struct.at(0).asInstanceOf[Ptr[Uint16]]
def type_=(value: Uint16): Unit = !struct.at(0).asInstanceOf[Ptr[Uint16]] = value
def constant: SDL_HapticConstant = !struct.at(0).asInstanceOf[Ptr[SDL_HapticConstant]]
def constant_=(value: SDL_HapticConstant): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_HapticConstant]] = value
def periodic: SDL_HapticPeriodic = !struct.at(0).asInstanceOf[Ptr[SDL_HapticPeriodic]]
def periodic_=(value: SDL_HapticPeriodic): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_HapticPeriodic]] = value
def condition: SDL_HapticCondition = !struct.at(0).asInstanceOf[Ptr[SDL_HapticCondition]]
def condition_=(value: SDL_HapticCondition): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_HapticCondition]] = value
def ramp: SDL_HapticRamp = !struct.at(0).asInstanceOf[Ptr[SDL_HapticRamp]]
def ramp_=(value: SDL_HapticRamp): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_HapticRamp]] = value
def leftright: SDL_HapticLeftRight = !struct.at(0).asInstanceOf[Ptr[SDL_HapticLeftRight]]
def leftright_=(value: SDL_HapticLeftRight): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_HapticLeftRight]] = value
def custom: SDL_HapticCustom = !struct.at(0).asInstanceOf[Ptr[SDL_HapticCustom]]
def custom_=(value: SDL_HapticCustom): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_HapticCustom]] = value
opaque type SDL_WindowShapeParams = CArray[Byte, Nat._4]
object SDL_WindowShapeParams:
given _tag: Tag[SDL_WindowShapeParams] = Tag.CArray[CChar, Nat._4](Tag.Byte, Tag.Nat4)
def apply()(using Zone): Ptr[SDL_WindowShapeParams] =
val ___ptr = alloc[SDL_WindowShapeParams](1)
___ptr
@scala.annotation.targetName("apply_binarizationCutoff")
def apply(binarizationCutoff: Uint8)(using Zone): Ptr[SDL_WindowShapeParams] =
val ___ptr = alloc[SDL_WindowShapeParams](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[Uint8]].update(0, binarizationCutoff)
___ptr
@scala.annotation.targetName("apply_colorKey")
def apply(colorKey: SDL_Color)(using Zone): Ptr[SDL_WindowShapeParams] =
val ___ptr = alloc[SDL_WindowShapeParams](1)
val un = !___ptr
un.at(0).asInstanceOf[Ptr[SDL_Color]].update(0, colorKey)
___ptr
extension (struct: SDL_WindowShapeParams)
def binarizationCutoff: Uint8 = !struct.at(0).asInstanceOf[Ptr[Uint8]]
def binarizationCutoff_=(value: Uint8): Unit = !struct.at(0).asInstanceOf[Ptr[Uint8]] = value
def colorKey: SDL_Color = !struct.at(0).asInstanceOf[Ptr[SDL_Color]]
def colorKey_=(value: SDL_Color): Unit = !struct.at(0).asInstanceOf[Ptr[SDL_Color]] = value
@extern
private[libsdl] object extern_functions:
import types.*
def SDL_AddEventWatch(filter: SDL_EventFilter, userdata: Ptr[Byte]): Unit = extern
def SDL_AddHintCallback(name: CString, callback: SDL_HintCallback, userdata: Ptr[Byte]): Unit = extern
def SDL_AddTimer(interval: Uint32, callback: SDL_TimerCallback, param: Ptr[Byte]): SDL_TimerID = extern
def SDL_AllocFormat(pixel_format: Uint32): Ptr[SDL_PixelFormat] = extern
def SDL_AllocPalette(ncolors: CInt): Ptr[SDL_Palette] = extern
def SDL_AllocRW(): Ptr[SDL_RWops] = extern
def SDL_AtomicAdd(a: Ptr[SDL_atomic_t], v: CInt): CInt = extern
def SDL_AtomicCAS(a: Ptr[SDL_atomic_t], oldval: CInt, newval: CInt): SDL_bool = extern
def SDL_AtomicCASPtr(a: Ptr[Ptr[Byte]], oldval: Ptr[Byte], newval: Ptr[Byte]): SDL_bool = extern
def SDL_AtomicGet(a: Ptr[SDL_atomic_t]): CInt = extern
def SDL_AtomicGetPtr(a: Ptr[Ptr[Byte]]): Ptr[Byte] = extern
def SDL_AtomicLock(lock: Ptr[SDL_SpinLock]): Unit = extern
def SDL_AtomicSet(a: Ptr[SDL_atomic_t], v: CInt): CInt = extern
def SDL_AtomicSetPtr(a: Ptr[Ptr[Byte]], v: Ptr[Byte]): Ptr[Byte] = extern
def SDL_AtomicTryLock(lock: Ptr[SDL_SpinLock]): SDL_bool = extern
def SDL_AtomicUnlock(lock: Ptr[SDL_SpinLock]): Unit = extern
def SDL_AudioInit(driver_name: CString): CInt = extern
def SDL_AudioQuit(): Unit = extern
def SDL_AudioStreamAvailable(stream: Ptr[SDL_AudioStream]): CInt = extern
def SDL_AudioStreamClear(stream: Ptr[SDL_AudioStream]): Unit = extern
def SDL_AudioStreamFlush(stream: Ptr[SDL_AudioStream]): CInt = extern
def SDL_AudioStreamGet(stream: Ptr[SDL_AudioStream], buf: Ptr[Byte], len: CInt): CInt = extern
def SDL_AudioStreamPut(stream: Ptr[SDL_AudioStream], buf: Ptr[Byte], len: CInt): CInt = extern
def SDL_BuildAudioCVT(cvt: Ptr[SDL_AudioCVT], src_format: SDL_AudioFormat, src_channels: Uint8, src_rate: CInt, dst_format: SDL_AudioFormat, dst_channels: Uint8, dst_rate: CInt): CInt = extern
def SDL_CalculateGammaRamp(gamma: Float, ramp: Ptr[Uint16]): Unit = extern
def SDL_CaptureMouse(enabled: SDL_bool): CInt = extern
def SDL_ClearComposition(): Unit = extern
def SDL_ClearError(): Unit = extern
def SDL_ClearHints(): Unit = extern
def SDL_ClearQueuedAudio(dev: SDL_AudioDeviceID): Unit = extern
def SDL_CloseAudio(): Unit = extern
def SDL_CloseAudioDevice(dev: SDL_AudioDeviceID): Unit = extern
def SDL_ComposeCustomBlendMode(srcColorFactor: SDL_BlendFactor, dstColorFactor: SDL_BlendFactor, colorOperation: SDL_BlendOperation, srcAlphaFactor: SDL_BlendFactor, dstAlphaFactor: SDL_BlendFactor, alphaOperation: SDL_BlendOperation): SDL_BlendMode = extern
def SDL_CondBroadcast(cond: Ptr[SDL_cond]): CInt = extern
def SDL_CondSignal(cond: Ptr[SDL_cond]): CInt = extern
def SDL_CondWait(cond: Ptr[SDL_cond], mutex: Ptr[SDL_mutex]): CInt = extern
def SDL_CondWaitTimeout(cond: Ptr[SDL_cond], mutex: Ptr[SDL_mutex], ms: Uint32): CInt = extern
def SDL_ConvertAudio(cvt: Ptr[SDL_AudioCVT]): CInt = extern
def SDL_ConvertPixels(width: CInt, height: CInt, src_format: Uint32, src: Ptr[Byte], src_pitch: CInt, dst_format: Uint32, dst: Ptr[Byte], dst_pitch: CInt): CInt = extern
def SDL_ConvertSurface(src: Ptr[SDL_Surface], fmt: Ptr[SDL_PixelFormat], flags: Uint32): Ptr[SDL_Surface] = extern
def SDL_ConvertSurfaceFormat(src: Ptr[SDL_Surface], pixel_format: Uint32, flags: Uint32): Ptr[SDL_Surface] = extern
def SDL_CreateColorCursor(surface: Ptr[SDL_Surface], hot_x: CInt, hot_y: CInt): Ptr[SDL_Cursor] = extern
def SDL_CreateCond(): Ptr[SDL_cond] = extern
def SDL_CreateCursor(data: Ptr[Uint8], mask: Ptr[Uint8], w: CInt, h: CInt, hot_x: CInt, hot_y: CInt): Ptr[SDL_Cursor] = extern
def SDL_CreateMutex(): Ptr[SDL_mutex] = extern
def SDL_CreateRGBSurface(flags: Uint32, width: CInt, height: CInt, depth: CInt, Rmask: Uint32, Gmask: Uint32, Bmask: Uint32, Amask: Uint32): Ptr[SDL_Surface] = extern
def SDL_CreateRGBSurfaceFrom(pixels: Ptr[Byte], width: CInt, height: CInt, depth: CInt, pitch: CInt, Rmask: Uint32, Gmask: Uint32, Bmask: Uint32, Amask: Uint32): Ptr[SDL_Surface] = extern
def SDL_CreateRGBSurfaceWithFormat(flags: Uint32, width: CInt, height: CInt, depth: CInt, format: Uint32): Ptr[SDL_Surface] = extern
def SDL_CreateRGBSurfaceWithFormatFrom(pixels: Ptr[Byte], width: CInt, height: CInt, depth: CInt, pitch: CInt, format: Uint32): Ptr[SDL_Surface] = extern
def SDL_CreateRenderer(window: Ptr[SDL_Window], index: CInt, flags: Uint32): Ptr[SDL_Renderer] = extern
def SDL_CreateSemaphore(initial_value: Uint32): Ptr[SDL_sem] = extern
def SDL_CreateShapedWindow(title: CString, x: CUnsignedInt, y: CUnsignedInt, w: CUnsignedInt, h: CUnsignedInt, flags: Uint32): Ptr[SDL_Window] = extern
def SDL_CreateSoftwareRenderer(surface: Ptr[SDL_Surface]): Ptr[SDL_Renderer] = extern
def SDL_CreateSystemCursor(id: SDL_SystemCursor): Ptr[SDL_Cursor] = extern
def SDL_CreateTexture(renderer: Ptr[SDL_Renderer], format: Uint32, access: CInt, w: CInt, h: CInt): Ptr[SDL_Texture] = extern
def SDL_CreateTextureFromSurface(renderer: Ptr[SDL_Renderer], surface: Ptr[SDL_Surface]): Ptr[SDL_Texture] = extern
def SDL_CreateThread(fn: SDL_ThreadFunction, name: CString, data: Ptr[Byte]): Ptr[SDL_Thread] = extern
def SDL_CreateThreadWithStackSize(fn: SDL_ThreadFunction, name: CString, stacksize: size_t, data: Ptr[Byte]): Ptr[SDL_Thread] = extern
def SDL_CreateWindow(title: CString, x: CInt, y: CInt, w: CInt, h: CInt, flags: Uint32): Ptr[SDL_Window] = extern
def SDL_CreateWindowAndRenderer(width: CInt, height: CInt, window_flags: Uint32, window: Ptr[Ptr[SDL_Window]], renderer: Ptr[Ptr[SDL_Renderer]]): CInt = extern
def SDL_CreateWindowFrom(data: Ptr[Byte]): Ptr[SDL_Window] = extern
def SDL_DelEventWatch(filter: SDL_EventFilter, userdata: Ptr[Byte]): Unit = extern
def SDL_DelHintCallback(name: CString, callback: SDL_HintCallback, userdata: Ptr[Byte]): Unit = extern
def SDL_Delay(ms: Uint32): Unit = extern
def SDL_DequeueAudio(dev: SDL_AudioDeviceID, data: Ptr[Byte], len: Uint32): Uint32 = extern
def SDL_DestroyCond(cond: Ptr[SDL_cond]): Unit = extern
def SDL_DestroyMutex(mutex: Ptr[SDL_mutex]): Unit = extern
def SDL_DestroyRenderer(renderer: Ptr[SDL_Renderer]): Unit = extern
def SDL_DestroySemaphore(sem: Ptr[SDL_sem]): Unit = extern
def SDL_DestroyTexture(texture: Ptr[SDL_Texture]): Unit = extern
def SDL_DestroyWindow(window: Ptr[SDL_Window]): Unit = extern
def SDL_DetachThread(thread: Ptr[SDL_Thread]): Unit = extern
def SDL_DisableScreenSaver(): Unit = extern
def SDL_DuplicateSurface(surface: Ptr[SDL_Surface]): Ptr[SDL_Surface] = extern
def SDL_EnableScreenSaver(): Unit = extern
def SDL_EnclosePoints(points: Ptr[SDL_Point], count: CInt, clip: Ptr[SDL_Rect], result: Ptr[SDL_Rect]): SDL_bool = extern
def SDL_Error(code: SDL_errorcode): CInt = extern
def SDL_EventState(`type`: Uint32, state: CInt): Uint8 = extern
def SDL_FillRect(dst: Ptr[SDL_Surface], rect: Ptr[SDL_Rect], color: Uint32): CInt = extern
def SDL_FillRects(dst: Ptr[SDL_Surface], rects: Ptr[SDL_Rect], count: CInt, color: Uint32): CInt = extern
def SDL_FilterEvents(filter: SDL_EventFilter, userdata: Ptr[Byte]): Unit = extern
def SDL_FlashWindow(window: Ptr[SDL_Window], operation: SDL_FlashOperation): CInt = extern
def SDL_FlushEvent(`type`: Uint32): Unit = extern
def SDL_FlushEvents(minType: Uint32, maxType: Uint32): Unit = extern
def SDL_FreeAudioStream(stream: Ptr[SDL_AudioStream]): Unit = extern
def SDL_FreeCursor(cursor: Ptr[SDL_Cursor]): Unit = extern
def SDL_FreeFormat(format: Ptr[SDL_PixelFormat]): Unit = extern
def SDL_FreePalette(palette: Ptr[SDL_Palette]): Unit = extern
def SDL_FreeRW(area: Ptr[SDL_RWops]): Unit = extern
def SDL_FreeSurface(surface: Ptr[SDL_Surface]): Unit = extern
def SDL_FreeWAV(audio_buf: Ptr[Uint8]): Unit = extern
def SDL_GL_BindTexture(texture: Ptr[SDL_Texture], texw: Ptr[Float], texh: Ptr[Float]): CInt = extern
def SDL_GL_CreateContext(window: Ptr[SDL_Window]): SDL_GLContext = extern
def SDL_GL_DeleteContext(context: SDL_GLContext): Unit = extern
def SDL_GL_ExtensionSupported(extension: CString): SDL_bool = extern
def SDL_GL_GetAttribute(attr: SDL_GLattr, value: Ptr[CInt]): CInt = extern
def SDL_GL_GetCurrentContext(): SDL_GLContext = extern
def SDL_GL_GetCurrentWindow(): Ptr[SDL_Window] = extern
def SDL_GL_GetDrawableSize(window: Ptr[SDL_Window], w: Ptr[CInt], h: Ptr[CInt]): Unit = extern
def SDL_GL_GetProcAddress(proc: CString): Ptr[Byte] = extern
def SDL_GL_GetSwapInterval(): CInt = extern
def SDL_GL_LoadLibrary(path: CString): CInt = extern
def SDL_GL_MakeCurrent(window: Ptr[SDL_Window], context: SDL_GLContext): CInt = extern
def SDL_GL_ResetAttributes(): Unit = extern
def SDL_GL_SetAttribute(attr: SDL_GLattr, value: CInt): CInt = extern
def SDL_GL_SetSwapInterval(interval: CInt): CInt = extern
def SDL_GL_SwapWindow(window: Ptr[SDL_Window]): Unit = extern
def SDL_GL_UnbindTexture(texture: Ptr[SDL_Texture]): CInt = extern
def SDL_GL_UnloadLibrary(): Unit = extern
def SDL_GameControllerAddMapping(mappingString: CString): CInt = extern
def SDL_GameControllerAddMappingsFromRW(rw: Ptr[SDL_RWops], freerw: CInt): CInt = extern
def SDL_GameControllerClose(gamecontroller: Ptr[SDL_GameController]): Unit = extern
def SDL_GameControllerEventState(state: CInt): CInt = extern
def SDL_GameControllerFromInstanceID(joyid: SDL_JoystickID): Ptr[SDL_GameController] = extern
def SDL_GameControllerFromPlayerIndex(player_index: CInt): Ptr[SDL_GameController] = extern
def SDL_GameControllerGetAppleSFSymbolsNameForAxis(gamecontroller: Ptr[SDL_GameController], axis: SDL_GameControllerAxis): CString = extern
def SDL_GameControllerGetAppleSFSymbolsNameForButton(gamecontroller: Ptr[SDL_GameController], button: SDL_GameControllerButton): CString = extern
def SDL_GameControllerGetAttached(gamecontroller: Ptr[SDL_GameController]): SDL_bool = extern
def SDL_GameControllerGetAxis(gamecontroller: Ptr[SDL_GameController], axis: SDL_GameControllerAxis): Sint16 = extern
def SDL_GameControllerGetAxisFromString(str: CString): SDL_GameControllerAxis = extern
def SDL_GameControllerGetButton(gamecontroller: Ptr[SDL_GameController], button: SDL_GameControllerButton): Uint8 = extern
def SDL_GameControllerGetButtonFromString(str: CString): SDL_GameControllerButton = extern
def SDL_GameControllerGetJoystick(gamecontroller: Ptr[SDL_GameController]): Ptr[SDL_Joystick] = extern
def SDL_GameControllerGetNumTouchpadFingers(gamecontroller: Ptr[SDL_GameController], touchpad: CInt): CInt = extern
def SDL_GameControllerGetNumTouchpads(gamecontroller: Ptr[SDL_GameController]): CInt = extern
def SDL_GameControllerGetPlayerIndex(gamecontroller: Ptr[SDL_GameController]): CInt = extern
def SDL_GameControllerGetProduct(gamecontroller: Ptr[SDL_GameController]): Uint16 = extern
def SDL_GameControllerGetProductVersion(gamecontroller: Ptr[SDL_GameController]): Uint16 = extern
def SDL_GameControllerGetSensorData(gamecontroller: Ptr[SDL_GameController], `type`: SDL_SensorType, data: Ptr[Float], num_values: CInt): CInt = extern
def SDL_GameControllerGetSensorDataRate(gamecontroller: Ptr[SDL_GameController], `type`: SDL_SensorType): Float = extern
def SDL_GameControllerGetSerial(gamecontroller: Ptr[SDL_GameController]): CString = extern
def SDL_GameControllerGetStringForAxis(axis: SDL_GameControllerAxis): CString = extern
def SDL_GameControllerGetStringForButton(button: SDL_GameControllerButton): CString = extern
def SDL_GameControllerGetTouchpadFinger(gamecontroller: Ptr[SDL_GameController], touchpad: CInt, finger: CInt, state: Ptr[Uint8], x: Ptr[Float], y: Ptr[Float], pressure: Ptr[Float]): CInt = extern
def SDL_GameControllerGetType(gamecontroller: Ptr[SDL_GameController]): SDL_GameControllerType = extern
def SDL_GameControllerGetVendor(gamecontroller: Ptr[SDL_GameController]): Uint16 = extern
def SDL_GameControllerHasAxis(gamecontroller: Ptr[SDL_GameController], axis: SDL_GameControllerAxis): SDL_bool = extern
def SDL_GameControllerHasButton(gamecontroller: Ptr[SDL_GameController], button: SDL_GameControllerButton): SDL_bool = extern
def SDL_GameControllerHasLED(gamecontroller: Ptr[SDL_GameController]): SDL_bool = extern
def SDL_GameControllerHasRumble(gamecontroller: Ptr[SDL_GameController]): SDL_bool = extern
def SDL_GameControllerHasRumbleTriggers(gamecontroller: Ptr[SDL_GameController]): SDL_bool = extern
def SDL_GameControllerHasSensor(gamecontroller: Ptr[SDL_GameController], `type`: SDL_SensorType): SDL_bool = extern
def SDL_GameControllerIsSensorEnabled(gamecontroller: Ptr[SDL_GameController], `type`: SDL_SensorType): SDL_bool = extern
def SDL_GameControllerMapping(gamecontroller: Ptr[SDL_GameController]): CString = extern
def SDL_GameControllerMappingForDeviceIndex(joystick_index: CInt): CString = extern
def SDL_GameControllerMappingForIndex(mapping_index: CInt): CString = extern
def SDL_GameControllerName(gamecontroller: Ptr[SDL_GameController]): CString = extern
def SDL_GameControllerNameForIndex(joystick_index: CInt): CString = extern
def SDL_GameControllerNumMappings(): CInt = extern
def SDL_GameControllerOpen(joystick_index: CInt): Ptr[SDL_GameController] = extern
def SDL_GameControllerRumble(gamecontroller: Ptr[SDL_GameController], low_frequency_rumble: Uint16, high_frequency_rumble: Uint16, duration_ms: Uint32): CInt = extern
def SDL_GameControllerRumbleTriggers(gamecontroller: Ptr[SDL_GameController], left_rumble: Uint16, right_rumble: Uint16, duration_ms: Uint32): CInt = extern
def SDL_GameControllerSendEffect(gamecontroller: Ptr[SDL_GameController], data: Ptr[Byte], size: CInt): CInt = extern
def SDL_GameControllerSetLED(gamecontroller: Ptr[SDL_GameController], red: Uint8, green: Uint8, blue: Uint8): CInt = extern
def SDL_GameControllerSetPlayerIndex(gamecontroller: Ptr[SDL_GameController], player_index: CInt): Unit = extern
def SDL_GameControllerSetSensorEnabled(gamecontroller: Ptr[SDL_GameController], `type`: SDL_SensorType, enabled: SDL_bool): CInt = extern
def SDL_GameControllerTypeForIndex(joystick_index: CInt): SDL_GameControllerType = extern
def SDL_GameControllerUpdate(): Unit = extern
def SDL_GetAssertionHandler(puserdata: Ptr[Ptr[Byte]]): SDL_AssertionHandler = extern
def SDL_GetAssertionReport(): Ptr[SDL_AssertData] = extern
def SDL_GetAudioDeviceName(index: CInt, iscapture: CInt): CString = extern
def SDL_GetAudioDeviceSpec(index: CInt, iscapture: CInt, spec: Ptr[SDL_AudioSpec]): CInt = extern
def SDL_GetAudioDeviceStatus(dev: SDL_AudioDeviceID): SDL_AudioStatus = extern
def SDL_GetAudioDriver(index: CInt): CString = extern
def SDL_GetAudioStatus(): SDL_AudioStatus = extern
def SDL_GetBasePath(): CString = extern
def SDL_GetCPUCacheLineSize(): CInt = extern
def SDL_GetCPUCount(): CInt = extern
def SDL_GetClipRect(surface: Ptr[SDL_Surface], rect: Ptr[SDL_Rect]): Unit = extern
def SDL_GetClipboardText(): CString = extern
def SDL_GetClosestDisplayMode(displayIndex: CInt, mode: Ptr[SDL_DisplayMode], closest: Ptr[SDL_DisplayMode]): Ptr[SDL_DisplayMode] = extern
def SDL_GetColorKey(surface: Ptr[SDL_Surface], key: Ptr[Uint32]): CInt = extern
def SDL_GetCurrentAudioDriver(): CString = extern
def SDL_GetCurrentDisplayMode(displayIndex: CInt, mode: Ptr[SDL_DisplayMode]): CInt = extern
def SDL_GetCurrentVideoDriver(): CString = extern
def SDL_GetCursor(): Ptr[SDL_Cursor] = extern
def SDL_GetDefaultAssertionHandler(): SDL_AssertionHandler = extern
def SDL_GetDefaultCursor(): Ptr[SDL_Cursor] = extern
def SDL_GetDesktopDisplayMode(displayIndex: CInt, mode: Ptr[SDL_DisplayMode]): CInt = extern
def SDL_GetDisplayBounds(displayIndex: CInt, rect: Ptr[SDL_Rect]): CInt = extern
def SDL_GetDisplayDPI(displayIndex: CInt, ddpi: Ptr[Float], hdpi: Ptr[Float], vdpi: Ptr[Float]): CInt = extern
def SDL_GetDisplayMode(displayIndex: CInt, modeIndex: CInt, mode: Ptr[SDL_DisplayMode]): CInt = extern
def SDL_GetDisplayName(displayIndex: CInt): CString = extern
def SDL_GetDisplayOrientation(displayIndex: CInt): SDL_DisplayOrientation = extern
def SDL_GetDisplayUsableBounds(displayIndex: CInt, rect: Ptr[SDL_Rect]): CInt = extern
def SDL_GetError(): CString = extern
def SDL_GetErrorMsg(errstr: CString, maxlen: CInt): CString = extern
def SDL_GetEventFilter(filter: Ptr[SDL_EventFilter], userdata: Ptr[Ptr[Byte]]): SDL_bool = extern
def SDL_GetGlobalMouseState(x: Ptr[CInt], y: Ptr[CInt]): Uint32 = extern
def SDL_GetGrabbedWindow(): Ptr[SDL_Window] = extern
def SDL_GetHint(name: CString): CString = extern
def SDL_GetHintBoolean(name: CString, default_value: SDL_bool): SDL_bool = extern
def SDL_GetKeyFromName(name: CString): SDL_Keycode = extern
def SDL_GetKeyFromScancode(scancode: SDL_Scancode): SDL_Keycode = extern
def SDL_GetKeyName(key: SDL_Keycode): CString = extern
def SDL_GetKeyboardFocus(): Ptr[SDL_Window] = extern
def SDL_GetKeyboardState(numkeys: Ptr[CInt]): Ptr[Uint8] = extern
def SDL_GetMemoryFunctions(malloc_func: Ptr[SDL_malloc_func], calloc_func: Ptr[SDL_calloc_func], realloc_func: Ptr[SDL_realloc_func], free_func: Ptr[SDL_free_func]): Unit = extern
def SDL_GetModState(): SDL_Keymod = extern
def SDL_GetMouseFocus(): Ptr[SDL_Window] = extern
def SDL_GetMouseState(x: Ptr[CInt], y: Ptr[CInt]): Uint32 = extern
def SDL_GetNumAllocations(): CInt = extern
def SDL_GetNumAudioDevices(iscapture: CInt): CInt = extern
def SDL_GetNumAudioDrivers(): CInt = extern
def SDL_GetNumDisplayModes(displayIndex: CInt): CInt = extern
def SDL_GetNumRenderDrivers(): CInt = extern
def SDL_GetNumTouchDevices(): CInt = extern
def SDL_GetNumTouchFingers(touchID: SDL_TouchID): CInt = extern
def SDL_GetNumVideoDisplays(): CInt = extern
def SDL_GetNumVideoDrivers(): CInt = extern
def SDL_GetPerformanceCounter(): Uint64 = extern
def SDL_GetPerformanceFrequency(): Uint64 = extern
def SDL_GetPixelFormatName(format: Uint32): CString = extern
def SDL_GetPlatform(): CString = extern
def SDL_GetPowerInfo(secs: Ptr[CInt], pct: Ptr[CInt]): SDL_PowerState = extern
def SDL_GetPrefPath(org: CString, app: CString): CString = extern
def SDL_GetPreferredLocales(): Ptr[SDL_Locale] = extern
def SDL_GetQueuedAudioSize(dev: SDL_AudioDeviceID): Uint32 = extern
def SDL_GetRGB(pixel: Uint32, format: Ptr[SDL_PixelFormat], r: Ptr[Uint8], g: Ptr[Uint8], b: Ptr[Uint8]): Unit = extern
def SDL_GetRGBA(pixel: Uint32, format: Ptr[SDL_PixelFormat], r: Ptr[Uint8], g: Ptr[Uint8], b: Ptr[Uint8], a: Ptr[Uint8]): Unit = extern
def SDL_GetRelativeMouseMode(): SDL_bool = extern
def SDL_GetRelativeMouseState(x: Ptr[CInt], y: Ptr[CInt]): Uint32 = extern
def SDL_GetRenderDrawBlendMode(renderer: Ptr[SDL_Renderer], blendMode: Ptr[SDL_BlendMode]): CInt = extern
def SDL_GetRenderDrawColor(renderer: Ptr[SDL_Renderer], r: Ptr[Uint8], g: Ptr[Uint8], b: Ptr[Uint8], a: Ptr[Uint8]): CInt = extern
def SDL_GetRenderDriverInfo(index: CInt, info: Ptr[SDL_RendererInfo]): CInt = extern
def SDL_GetRenderTarget(renderer: Ptr[SDL_Renderer]): Ptr[SDL_Texture] = extern
def SDL_GetRenderer(window: Ptr[SDL_Window]): Ptr[SDL_Renderer] = extern
def SDL_GetRendererInfo(renderer: Ptr[SDL_Renderer], info: Ptr[SDL_RendererInfo]): CInt = extern
def SDL_GetRendererOutputSize(renderer: Ptr[SDL_Renderer], w: Ptr[CInt], h: Ptr[CInt]): CInt = extern
def SDL_GetRevision(): CString = extern
def SDL_GetRevisionNumber(): CInt = extern
def SDL_GetScancodeFromKey(key: SDL_Keycode): SDL_Scancode = extern
def SDL_GetScancodeFromName(name: CString): SDL_Scancode = extern
def SDL_GetScancodeName(scancode: SDL_Scancode): CString = extern
def SDL_GetShapedWindowMode(window: Ptr[SDL_Window], shape_mode: Ptr[SDL_WindowShapeMode]): CInt = extern
def SDL_GetSurfaceAlphaMod(surface: Ptr[SDL_Surface], alpha: Ptr[Uint8]): CInt = extern
def SDL_GetSurfaceBlendMode(surface: Ptr[SDL_Surface], blendMode: Ptr[SDL_BlendMode]): CInt = extern
def SDL_GetSurfaceColorMod(surface: Ptr[SDL_Surface], r: Ptr[Uint8], g: Ptr[Uint8], b: Ptr[Uint8]): CInt = extern
def SDL_GetSystemRAM(): CInt = extern
def SDL_GetTextureAlphaMod(texture: Ptr[SDL_Texture], alpha: Ptr[Uint8]): CInt = extern
def SDL_GetTextureBlendMode(texture: Ptr[SDL_Texture], blendMode: Ptr[SDL_BlendMode]): CInt = extern
def SDL_GetTextureColorMod(texture: Ptr[SDL_Texture], r: Ptr[Uint8], g: Ptr[Uint8], b: Ptr[Uint8]): CInt = extern
def SDL_GetTextureScaleMode(texture: Ptr[SDL_Texture], scaleMode: Ptr[SDL_ScaleMode]): CInt = extern
def SDL_GetTextureUserData(texture: Ptr[SDL_Texture]): Ptr[Byte] = extern
def SDL_GetThreadID(thread: Ptr[SDL_Thread]): SDL_threadID = extern
def SDL_GetThreadName(thread: Ptr[SDL_Thread]): CString = extern
def SDL_GetTicks(): Uint32 = extern
def SDL_GetTicks64(): Uint64 = extern
def SDL_GetTouchDevice(index: CInt): SDL_TouchID = extern
def SDL_GetTouchDeviceType(touchID: SDL_TouchID): SDL_TouchDeviceType = extern
def SDL_GetTouchFinger(touchID: SDL_TouchID, index: CInt): Ptr[SDL_Finger] = extern
def SDL_GetTouchName(index: CInt): CString = extern
def SDL_GetVersion(ver: Ptr[SDL_version]): Unit = extern
def SDL_GetVideoDriver(index: CInt): CString = extern
def SDL_GetWindowBordersSize(window: Ptr[SDL_Window], top: Ptr[CInt], left: Ptr[CInt], bottom: Ptr[CInt], right: Ptr[CInt]): CInt = extern
def SDL_GetWindowBrightness(window: Ptr[SDL_Window]): Float = extern
def SDL_GetWindowData(window: Ptr[SDL_Window], name: CString): Ptr[Byte] = extern
def SDL_GetWindowDisplayIndex(window: Ptr[SDL_Window]): CInt = extern
def SDL_GetWindowDisplayMode(window: Ptr[SDL_Window], mode: Ptr[SDL_DisplayMode]): CInt = extern
def SDL_GetWindowFlags(window: Ptr[SDL_Window]): Uint32 = extern
def SDL_GetWindowFromID(id: Uint32): Ptr[SDL_Window] = extern
def SDL_GetWindowGammaRamp(window: Ptr[SDL_Window], red: Ptr[Uint16], green: Ptr[Uint16], blue: Ptr[Uint16]): CInt = extern
def SDL_GetWindowGrab(window: Ptr[SDL_Window]): SDL_bool = extern
def SDL_GetWindowICCProfile(window: Ptr[SDL_Window], size: Ptr[size_t]): Ptr[Byte] = extern
def SDL_GetWindowID(window: Ptr[SDL_Window]): Uint32 = extern
def SDL_GetWindowKeyboardGrab(window: Ptr[SDL_Window]): SDL_bool = extern
def SDL_GetWindowMaximumSize(window: Ptr[SDL_Window], w: Ptr[CInt], h: Ptr[CInt]): Unit = extern
def SDL_GetWindowMinimumSize(window: Ptr[SDL_Window], w: Ptr[CInt], h: Ptr[CInt]): Unit = extern
def SDL_GetWindowMouseGrab(window: Ptr[SDL_Window]): SDL_bool = extern
def SDL_GetWindowMouseRect(window: Ptr[SDL_Window]): Ptr[SDL_Rect] = extern
def SDL_GetWindowOpacity(window: Ptr[SDL_Window], out_opacity: Ptr[Float]): CInt = extern
def SDL_GetWindowPixelFormat(window: Ptr[SDL_Window]): Uint32 = extern
def SDL_GetWindowPosition(window: Ptr[SDL_Window], x: Ptr[CInt], y: Ptr[CInt]): Unit = extern
def SDL_GetWindowSize(window: Ptr[SDL_Window], w: Ptr[CInt], h: Ptr[CInt]): Unit = extern
def SDL_GetWindowSurface(window: Ptr[SDL_Window]): Ptr[SDL_Surface] = extern
def SDL_GetWindowTitle(window: Ptr[SDL_Window]): CString = extern
def SDL_GetYUVConversionMode(): SDL_YUV_CONVERSION_MODE = extern
def SDL_GetYUVConversionModeForResolution(width: CInt, height: CInt): SDL_YUV_CONVERSION_MODE = extern
def SDL_HapticClose(haptic: Ptr[SDL_Haptic]): Unit = extern
def SDL_HapticDestroyEffect(haptic: Ptr[SDL_Haptic], effect: CInt): Unit = extern
def SDL_HapticEffectSupported(haptic: Ptr[SDL_Haptic], effect: Ptr[SDL_HapticEffect]): CInt = extern
def SDL_HapticGetEffectStatus(haptic: Ptr[SDL_Haptic], effect: CInt): CInt = extern
def SDL_HapticIndex(haptic: Ptr[SDL_Haptic]): CInt = extern
def SDL_HapticName(device_index: CInt): CString = extern
def SDL_HapticNewEffect(haptic: Ptr[SDL_Haptic], effect: Ptr[SDL_HapticEffect]): CInt = extern
def SDL_HapticNumAxes(haptic: Ptr[SDL_Haptic]): CInt = extern
def SDL_HapticNumEffects(haptic: Ptr[SDL_Haptic]): CInt = extern
def SDL_HapticNumEffectsPlaying(haptic: Ptr[SDL_Haptic]): CInt = extern
def SDL_HapticOpen(device_index: CInt): Ptr[SDL_Haptic] = extern
def SDL_HapticOpenFromJoystick(joystick: Ptr[SDL_Joystick]): Ptr[SDL_Haptic] = extern
def SDL_HapticOpenFromMouse(): Ptr[SDL_Haptic] = extern
def SDL_HapticOpened(device_index: CInt): CInt = extern
def SDL_HapticPause(haptic: Ptr[SDL_Haptic]): CInt = extern
def SDL_HapticQuery(haptic: Ptr[SDL_Haptic]): CUnsignedInt = extern
def SDL_HapticRumbleInit(haptic: Ptr[SDL_Haptic]): CInt = extern
def SDL_HapticRumblePlay(haptic: Ptr[SDL_Haptic], strength: Float, length: Uint32): CInt = extern
def SDL_HapticRumbleStop(haptic: Ptr[SDL_Haptic]): CInt = extern
def SDL_HapticRumbleSupported(haptic: Ptr[SDL_Haptic]): CInt = extern
def SDL_HapticRunEffect(haptic: Ptr[SDL_Haptic], effect: CInt, iterations: Uint32): CInt = extern
def SDL_HapticSetAutocenter(haptic: Ptr[SDL_Haptic], autocenter: CInt): CInt = extern
def SDL_HapticSetGain(haptic: Ptr[SDL_Haptic], gain: CInt): CInt = extern
def SDL_HapticStopAll(haptic: Ptr[SDL_Haptic]): CInt = extern
def SDL_HapticStopEffect(haptic: Ptr[SDL_Haptic], effect: CInt): CInt = extern
def SDL_HapticUnpause(haptic: Ptr[SDL_Haptic]): CInt = extern
def SDL_HapticUpdateEffect(haptic: Ptr[SDL_Haptic], effect: CInt, data: Ptr[SDL_HapticEffect]): CInt = extern
def SDL_Has3DNow(): SDL_bool = extern
def SDL_HasARMSIMD(): SDL_bool = extern
def SDL_HasAVX(): SDL_bool = extern
def SDL_HasAVX2(): SDL_bool = extern
def SDL_HasAVX512F(): SDL_bool = extern
def SDL_HasAltiVec(): SDL_bool = extern
def SDL_HasClipboardText(): SDL_bool = extern
def SDL_HasColorKey(surface: Ptr[SDL_Surface]): SDL_bool = extern
def SDL_HasEvent(`type`: Uint32): SDL_bool = extern
def SDL_HasEvents(minType: Uint32, maxType: Uint32): SDL_bool = extern
def SDL_HasIntersection(A: Ptr[SDL_Rect], B: Ptr[SDL_Rect]): SDL_bool = extern
def SDL_HasMMX(): SDL_bool = extern
def SDL_HasNEON(): SDL_bool = extern
def SDL_HasRDTSC(): SDL_bool = extern
def SDL_HasSSE(): SDL_bool = extern
def SDL_HasSSE2(): SDL_bool = extern
def SDL_HasSSE3(): SDL_bool = extern
def SDL_HasSSE41(): SDL_bool = extern
def SDL_HasSSE42(): SDL_bool = extern
def SDL_HasScreenKeyboardSupport(): SDL_bool = extern
def SDL_HasSurfaceRLE(surface: Ptr[SDL_Surface]): SDL_bool = extern
def SDL_HideWindow(window: Ptr[SDL_Window]): Unit = extern
def SDL_Init(flags: Uint32): CInt = extern
def SDL_InitSubSystem(flags: Uint32): CInt = extern
def SDL_IntersectRect(A: Ptr[SDL_Rect], B: Ptr[SDL_Rect], result: Ptr[SDL_Rect]): SDL_bool = extern
def SDL_IntersectRectAndLine(rect: Ptr[SDL_Rect], X1: Ptr[CInt], Y1: Ptr[CInt], X2: Ptr[CInt], Y2: Ptr[CInt]): SDL_bool = extern
def SDL_IsGameController(joystick_index: CInt): SDL_bool = extern
def SDL_IsScreenKeyboardShown(window: Ptr[SDL_Window]): SDL_bool = extern
def SDL_IsScreenSaverEnabled(): SDL_bool = extern
def SDL_IsShapedWindow(window: Ptr[SDL_Window]): SDL_bool = extern
def SDL_IsTablet(): SDL_bool = extern
def SDL_IsTextInputActive(): SDL_bool = extern
def SDL_IsTextInputShown(): SDL_bool = extern
def SDL_JoystickAttachVirtual(`type`: SDL_JoystickType, naxes: CInt, nbuttons: CInt, nhats: CInt): CInt = extern
def SDL_JoystickClose(joystick: Ptr[SDL_Joystick]): Unit = extern
def SDL_JoystickCurrentPowerLevel(joystick: Ptr[SDL_Joystick]): SDL_JoystickPowerLevel = extern
def SDL_JoystickDetachVirtual(device_index: CInt): CInt = extern
def SDL_JoystickEventState(state: CInt): CInt = extern
def SDL_JoystickFromInstanceID(instance_id: SDL_JoystickID): Ptr[SDL_Joystick] = extern
def SDL_JoystickFromPlayerIndex(player_index: CInt): Ptr[SDL_Joystick] = extern
def SDL_JoystickGetAttached(joystick: Ptr[SDL_Joystick]): SDL_bool = extern
def SDL_JoystickGetAxis(joystick: Ptr[SDL_Joystick], axis: CInt): Sint16 = extern
def SDL_JoystickGetAxisInitialState(joystick: Ptr[SDL_Joystick], axis: CInt, state: Ptr[Sint16]): SDL_bool = extern
def SDL_JoystickGetBall(joystick: Ptr[SDL_Joystick], ball: CInt, dx: Ptr[CInt], dy: Ptr[CInt]): CInt = extern
def SDL_JoystickGetButton(joystick: Ptr[SDL_Joystick], button: CInt): Uint8 = extern
def SDL_JoystickGetDeviceInstanceID(device_index: CInt): SDL_JoystickID = extern
def SDL_JoystickGetDevicePlayerIndex(device_index: CInt): CInt = extern
def SDL_JoystickGetDeviceProduct(device_index: CInt): Uint16 = extern
def SDL_JoystickGetDeviceProductVersion(device_index: CInt): Uint16 = extern
def SDL_JoystickGetDeviceType(device_index: CInt): SDL_JoystickType = extern
def SDL_JoystickGetDeviceVendor(device_index: CInt): Uint16 = extern
def SDL_JoystickGetHat(joystick: Ptr[SDL_Joystick], hat: CInt): Uint8 = extern
def SDL_JoystickGetPlayerIndex(joystick: Ptr[SDL_Joystick]): CInt = extern
def SDL_JoystickGetProduct(joystick: Ptr[SDL_Joystick]): Uint16 = extern
def SDL_JoystickGetProductVersion(joystick: Ptr[SDL_Joystick]): Uint16 = extern
def SDL_JoystickGetSerial(joystick: Ptr[SDL_Joystick]): CString = extern
def SDL_JoystickGetType(joystick: Ptr[SDL_Joystick]): SDL_JoystickType = extern
def SDL_JoystickGetVendor(joystick: Ptr[SDL_Joystick]): Uint16 = extern
def SDL_JoystickHasLED(joystick: Ptr[SDL_Joystick]): SDL_bool = extern
def SDL_JoystickHasRumble(joystick: Ptr[SDL_Joystick]): SDL_bool = extern
def SDL_JoystickHasRumbleTriggers(joystick: Ptr[SDL_Joystick]): SDL_bool = extern
def SDL_JoystickInstanceID(joystick: Ptr[SDL_Joystick]): SDL_JoystickID = extern
def SDL_JoystickIsHaptic(joystick: Ptr[SDL_Joystick]): CInt = extern
def SDL_JoystickIsVirtual(device_index: CInt): SDL_bool = extern
def SDL_JoystickName(joystick: Ptr[SDL_Joystick]): CString = extern
def SDL_JoystickNameForIndex(device_index: CInt): CString = extern
def SDL_JoystickNumAxes(joystick: Ptr[SDL_Joystick]): CInt = extern
def SDL_JoystickNumBalls(joystick: Ptr[SDL_Joystick]): CInt = extern
def SDL_JoystickNumButtons(joystick: Ptr[SDL_Joystick]): CInt = extern
def SDL_JoystickNumHats(joystick: Ptr[SDL_Joystick]): CInt = extern
def SDL_JoystickOpen(device_index: CInt): Ptr[SDL_Joystick] = extern
def SDL_JoystickRumble(joystick: Ptr[SDL_Joystick], low_frequency_rumble: Uint16, high_frequency_rumble: Uint16, duration_ms: Uint32): CInt = extern
def SDL_JoystickRumbleTriggers(joystick: Ptr[SDL_Joystick], left_rumble: Uint16, right_rumble: Uint16, duration_ms: Uint32): CInt = extern
def SDL_JoystickSendEffect(joystick: Ptr[SDL_Joystick], data: Ptr[Byte], size: CInt): CInt = extern
def SDL_JoystickSetLED(joystick: Ptr[SDL_Joystick], red: Uint8, green: Uint8, blue: Uint8): CInt = extern
def SDL_JoystickSetPlayerIndex(joystick: Ptr[SDL_Joystick], player_index: CInt): Unit = extern
def SDL_JoystickSetVirtualAxis(joystick: Ptr[SDL_Joystick], axis: CInt, value: Sint16): CInt = extern
def SDL_JoystickSetVirtualButton(joystick: Ptr[SDL_Joystick], button: CInt, value: Uint8): CInt = extern
def SDL_JoystickSetVirtualHat(joystick: Ptr[SDL_Joystick], hat: CInt, value: Uint8): CInt = extern
def SDL_JoystickUpdate(): Unit = extern
def SDL_LinuxSetThreadPriority(threadID: Sint64, priority: CInt): CInt = extern
def SDL_LinuxSetThreadPriorityAndPolicy(threadID: Sint64, sdlPriority: CInt, schedPolicy: CInt): CInt = extern
def SDL_LoadBMP_RW(src: Ptr[SDL_RWops], freesrc: CInt): Ptr[SDL_Surface] = extern
def SDL_LoadDollarTemplates(touchId: SDL_TouchID, src: Ptr[SDL_RWops]): CInt = extern
def SDL_LoadFile(file: CString, datasize: Ptr[size_t]): Ptr[Byte] = extern
def SDL_LoadFile_RW(src: Ptr[SDL_RWops], datasize: Ptr[size_t], freesrc: CInt): Ptr[Byte] = extern
def SDL_LoadFunction(handle: Ptr[Byte], name: CString): Ptr[Byte] = extern
def SDL_LoadObject(sofile: CString): Ptr[Byte] = extern
def SDL_LoadWAV_RW(src: Ptr[SDL_RWops], freesrc: CInt, spec: Ptr[SDL_AudioSpec], audio_buf: Ptr[Ptr[Uint8]], audio_len: Ptr[Uint32]): Ptr[SDL_AudioSpec] = extern
def SDL_LockAudio(): Unit = extern
def SDL_LockAudioDevice(dev: SDL_AudioDeviceID): Unit = extern
def SDL_LockJoysticks(): Unit = extern
def SDL_LockMutex(mutex: Ptr[SDL_mutex]): CInt = extern
def SDL_LockSensors(): Unit = extern
def SDL_LockSurface(surface: Ptr[SDL_Surface]): CInt = extern
def SDL_LockTexture(texture: Ptr[SDL_Texture], rect: Ptr[SDL_Rect], pixels: Ptr[Ptr[Byte]], pitch: Ptr[CInt]): CInt = extern
def SDL_LockTextureToSurface(texture: Ptr[SDL_Texture], rect: Ptr[SDL_Rect], surface: Ptr[Ptr[SDL_Surface]]): CInt = extern
def SDL_Log(fmt: CString): Unit = extern
def SDL_LogCritical(category: CInt, fmt: CString): Unit = extern
def SDL_LogDebug(category: CInt, fmt: CString): Unit = extern
def SDL_LogError(category: CInt, fmt: CString): Unit = extern
def SDL_LogGetOutputFunction(callback: Ptr[SDL_LogOutputFunction], userdata: Ptr[Ptr[Byte]]): Unit = extern
def SDL_LogGetPriority(category: CInt): SDL_LogPriority = extern
def SDL_LogInfo(category: CInt, fmt: CString): Unit = extern
def SDL_LogMessage(category: CInt, priority: SDL_LogPriority, fmt: CString): Unit = extern
def SDL_LogMessageV(category: CInt, priority: SDL_LogPriority, fmt: CString, ap: va_list): Unit = extern
def SDL_LogResetPriorities(): Unit = extern
def SDL_LogSetAllPriority(priority: SDL_LogPriority): Unit = extern
def SDL_LogSetOutputFunction(callback: SDL_LogOutputFunction, userdata: Ptr[Byte]): Unit = extern
def SDL_LogSetPriority(category: CInt, priority: SDL_LogPriority): Unit = extern
def SDL_LogVerbose(category: CInt, fmt: CString): Unit = extern
def SDL_LogWarn(category: CInt, fmt: CString): Unit = extern
def SDL_LowerBlit(src: Ptr[SDL_Surface], srcrect: Ptr[SDL_Rect], dst: Ptr[SDL_Surface], dstrect: Ptr[SDL_Rect]): CInt = extern
def SDL_LowerBlitScaled(src: Ptr[SDL_Surface], srcrect: Ptr[SDL_Rect], dst: Ptr[SDL_Surface], dstrect: Ptr[SDL_Rect]): CInt = extern
def SDL_MapRGB(format: Ptr[SDL_PixelFormat], r: Uint8, g: Uint8, b: Uint8): Uint32 = extern
def SDL_MapRGBA(format: Ptr[SDL_PixelFormat], r: Uint8, g: Uint8, b: Uint8, a: Uint8): Uint32 = extern
def SDL_MasksToPixelFormatEnum(bpp: CInt, Rmask: Uint32, Gmask: Uint32, Bmask: Uint32, Amask: Uint32): Uint32 = extern
def SDL_MaximizeWindow(window: Ptr[SDL_Window]): Unit = extern
def SDL_MemoryBarrierAcquireFunction(): Unit = extern
def SDL_MemoryBarrierReleaseFunction(): Unit = extern
def SDL_Metal_CreateView(window: Ptr[SDL_Window]): SDL_MetalView = extern
def SDL_Metal_DestroyView(view: SDL_MetalView): Unit = extern
def SDL_Metal_GetDrawableSize(window: Ptr[SDL_Window], w: Ptr[CInt], h: Ptr[CInt]): Unit = extern
def SDL_Metal_GetLayer(view: SDL_MetalView): Ptr[Byte] = extern
def SDL_MinimizeWindow(window: Ptr[SDL_Window]): Unit = extern
def SDL_MixAudio(dst: Ptr[Uint8], src: Ptr[Uint8], len: Uint32, volume: CInt): Unit = extern
def SDL_MixAudioFormat(dst: Ptr[Uint8], src: Ptr[Uint8], format: SDL_AudioFormat, len: Uint32, volume: CInt): Unit = extern
def SDL_MouseIsHaptic(): CInt = extern
def SDL_NewAudioStream(src_format: SDL_AudioFormat, src_channels: Uint8, src_rate: CInt, dst_format: SDL_AudioFormat, dst_channels: Uint8, dst_rate: CInt): Ptr[SDL_AudioStream] = extern
def SDL_NumHaptics(): CInt = extern
def SDL_NumJoysticks(): CInt = extern
def SDL_NumSensors(): CInt = extern
def SDL_OnApplicationDidBecomeActive(): Unit = extern
def SDL_OnApplicationDidEnterBackground(): Unit = extern
def SDL_OnApplicationDidReceiveMemoryWarning(): Unit = extern
def SDL_OnApplicationWillEnterForeground(): Unit = extern
def SDL_OnApplicationWillResignActive(): Unit = extern
def SDL_OnApplicationWillTerminate(): Unit = extern
def SDL_OpenAudio(desired: Ptr[SDL_AudioSpec], obtained: Ptr[SDL_AudioSpec]): CInt = extern
def SDL_OpenAudioDevice(device: CString, iscapture: CInt, desired: Ptr[SDL_AudioSpec], obtained: Ptr[SDL_AudioSpec], allowed_changes: CInt): SDL_AudioDeviceID = extern
def SDL_OpenURL(url: CString): CInt = extern
def SDL_PauseAudio(pause_on: CInt): Unit = extern
def SDL_PauseAudioDevice(dev: SDL_AudioDeviceID, pause_on: CInt): Unit = extern
def SDL_PeepEvents(events: Ptr[SDL_Event], numevents: CInt, action: SDL_eventaction, minType: Uint32, maxType: Uint32): CInt = extern
def SDL_PixelFormatEnumToMasks(format: Uint32, bpp: Ptr[CInt], Rmask: Ptr[Uint32], Gmask: Ptr[Uint32], Bmask: Ptr[Uint32], Amask: Ptr[Uint32]): SDL_bool = extern
def SDL_PointInRect(p: Ptr[SDL_Point], r: Ptr[SDL_Rect]): SDL_bool = extern
def SDL_PollEvent(event: Ptr[SDL_Event]): CInt = extern
def SDL_PremultiplyAlpha(width: CInt, height: CInt, src_format: Uint32, src: Ptr[Byte], src_pitch: CInt, dst_format: Uint32, dst: Ptr[Byte], dst_pitch: CInt): CInt = extern
def SDL_PumpEvents(): Unit = extern
def SDL_PushEvent(event: Ptr[SDL_Event]): CInt = extern
def SDL_QueryTexture(texture: Ptr[SDL_Texture], format: Ptr[Uint32], access: Ptr[CInt], w: Ptr[CInt], h: Ptr[CInt]): CInt = extern
def SDL_QueueAudio(dev: SDL_AudioDeviceID, data: Ptr[Byte], len: Uint32): CInt = extern
def SDL_Quit(): Unit = extern
def SDL_QuitSubSystem(flags: Uint32): Unit = extern
def SDL_RWFromConstMem(mem: Ptr[Byte], size: CInt): Ptr[SDL_RWops] = extern
def SDL_RWFromFP(fp: Ptr[Byte], autoclose: SDL_bool): Ptr[SDL_RWops] = extern
def SDL_RWFromFile(file: CString, mode: CString): Ptr[SDL_RWops] = extern
def SDL_RWFromMem(mem: Ptr[Byte], size: CInt): Ptr[SDL_RWops] = extern
def SDL_RWclose(context: Ptr[SDL_RWops]): CInt = extern
def SDL_RWread(context: Ptr[SDL_RWops], ptr: Ptr[Byte], size: size_t, maxnum: size_t): size_t = extern
def SDL_RWseek(context: Ptr[SDL_RWops], offset: Sint64, whence: CInt): Sint64 = extern
def SDL_RWsize(context: Ptr[SDL_RWops]): Sint64 = extern
def SDL_RWtell(context: Ptr[SDL_RWops]): Sint64 = extern
def SDL_RWwrite(context: Ptr[SDL_RWops], ptr: Ptr[Byte], size: size_t, num: size_t): size_t = extern
def SDL_RaiseWindow(window: Ptr[SDL_Window]): Unit = extern
def SDL_ReadBE16(src: Ptr[SDL_RWops]): Uint16 = extern
def SDL_ReadBE32(src: Ptr[SDL_RWops]): Uint32 = extern
def SDL_ReadBE64(src: Ptr[SDL_RWops]): Uint64 = extern
def SDL_ReadLE16(src: Ptr[SDL_RWops]): Uint16 = extern
def SDL_ReadLE32(src: Ptr[SDL_RWops]): Uint32 = extern
def SDL_ReadLE64(src: Ptr[SDL_RWops]): Uint64 = extern
def SDL_ReadU8(src: Ptr[SDL_RWops]): Uint8 = extern
def SDL_RecordGesture(touchId: SDL_TouchID): CInt = extern
def SDL_RectEmpty(r: Ptr[SDL_Rect]): SDL_bool = extern
def SDL_RectEquals(a: Ptr[SDL_Rect], b: Ptr[SDL_Rect]): SDL_bool = extern
def SDL_RegisterEvents(numevents: CInt): Uint32 = extern
def SDL_RemoveTimer(id: SDL_TimerID): SDL_bool = extern
def SDL_RenderClear(renderer: Ptr[SDL_Renderer]): CInt = extern
def SDL_RenderCopy(renderer: Ptr[SDL_Renderer], texture: Ptr[SDL_Texture], srcrect: Ptr[SDL_Rect], dstrect: Ptr[SDL_Rect]): CInt = extern
def SDL_RenderCopyEx(renderer: Ptr[SDL_Renderer], texture: Ptr[SDL_Texture], srcrect: Ptr[SDL_Rect], dstrect: Ptr[SDL_Rect], angle: Double, center: Ptr[SDL_Point], flip: SDL_RendererFlip): CInt = extern
def SDL_RenderCopyExF(renderer: Ptr[SDL_Renderer], texture: Ptr[SDL_Texture], srcrect: Ptr[SDL_Rect], dstrect: Ptr[SDL_FRect], angle: Double, center: Ptr[SDL_FPoint], flip: SDL_RendererFlip): CInt = extern
def SDL_RenderCopyF(renderer: Ptr[SDL_Renderer], texture: Ptr[SDL_Texture], srcrect: Ptr[SDL_Rect], dstrect: Ptr[SDL_FRect]): CInt = extern
def SDL_RenderDrawLine(renderer: Ptr[SDL_Renderer], x1: CInt, y1: CInt, x2: CInt, y2: CInt): CInt = extern
def SDL_RenderDrawLineF(renderer: Ptr[SDL_Renderer], x1: Float, y1: Float, x2: Float, y2: Float): CInt = extern
def SDL_RenderDrawLines(renderer: Ptr[SDL_Renderer], points: Ptr[SDL_Point], count: CInt): CInt = extern
def SDL_RenderDrawLinesF(renderer: Ptr[SDL_Renderer], points: Ptr[SDL_FPoint], count: CInt): CInt = extern
def SDL_RenderDrawPoint(renderer: Ptr[SDL_Renderer], x: CInt, y: CInt): CInt = extern
def SDL_RenderDrawPointF(renderer: Ptr[SDL_Renderer], x: Float, y: Float): CInt = extern
def SDL_RenderDrawPoints(renderer: Ptr[SDL_Renderer], points: Ptr[SDL_Point], count: CInt): CInt = extern
def SDL_RenderDrawPointsF(renderer: Ptr[SDL_Renderer], points: Ptr[SDL_FPoint], count: CInt): CInt = extern
def SDL_RenderDrawRect(renderer: Ptr[SDL_Renderer], rect: Ptr[SDL_Rect]): CInt = extern
def SDL_RenderDrawRectF(renderer: Ptr[SDL_Renderer], rect: Ptr[SDL_FRect]): CInt = extern
def SDL_RenderDrawRects(renderer: Ptr[SDL_Renderer], rects: Ptr[SDL_Rect], count: CInt): CInt = extern
def SDL_RenderDrawRectsF(renderer: Ptr[SDL_Renderer], rects: Ptr[SDL_FRect], count: CInt): CInt = extern
def SDL_RenderFillRect(renderer: Ptr[SDL_Renderer], rect: Ptr[SDL_Rect]): CInt = extern
def SDL_RenderFillRectF(renderer: Ptr[SDL_Renderer], rect: Ptr[SDL_FRect]): CInt = extern
def SDL_RenderFillRects(renderer: Ptr[SDL_Renderer], rects: Ptr[SDL_Rect], count: CInt): CInt = extern
def SDL_RenderFillRectsF(renderer: Ptr[SDL_Renderer], rects: Ptr[SDL_FRect], count: CInt): CInt = extern
def SDL_RenderFlush(renderer: Ptr[SDL_Renderer]): CInt = extern
def SDL_RenderGeometry(renderer: Ptr[SDL_Renderer], texture: Ptr[SDL_Texture], vertices: Ptr[SDL_Vertex], num_vertices: CInt, indices: Ptr[CInt], num_indices: CInt): CInt = extern
def SDL_RenderGeometryRaw(renderer: Ptr[SDL_Renderer], texture: Ptr[SDL_Texture], xy: Ptr[Float], xy_stride: CInt, color: Ptr[SDL_Color], color_stride: CInt, uv: Ptr[Float], uv_stride: CInt, num_vertices: CInt, indices: Ptr[Byte], num_indices: CInt, size_indices: CInt): CInt = extern
def SDL_RenderGetClipRect(renderer: Ptr[SDL_Renderer], rect: Ptr[SDL_Rect]): Unit = extern
def SDL_RenderGetIntegerScale(renderer: Ptr[SDL_Renderer]): SDL_bool = extern
def SDL_RenderGetLogicalSize(renderer: Ptr[SDL_Renderer], w: Ptr[CInt], h: Ptr[CInt]): Unit = extern
def SDL_RenderGetMetalCommandEncoder(renderer: Ptr[SDL_Renderer]): Ptr[Byte] = extern
def SDL_RenderGetMetalLayer(renderer: Ptr[SDL_Renderer]): Ptr[Byte] = extern
def SDL_RenderGetScale(renderer: Ptr[SDL_Renderer], scaleX: Ptr[Float], scaleY: Ptr[Float]): Unit = extern
def SDL_RenderGetViewport(renderer: Ptr[SDL_Renderer], rect: Ptr[SDL_Rect]): Unit = extern
def SDL_RenderIsClipEnabled(renderer: Ptr[SDL_Renderer]): SDL_bool = extern
def SDL_RenderLogicalToWindow(renderer: Ptr[SDL_Renderer], logicalX: Float, logicalY: Float, windowX: Ptr[CInt], windowY: Ptr[CInt]): Unit = extern
def SDL_RenderPresent(renderer: Ptr[SDL_Renderer]): Unit = extern
def SDL_RenderReadPixels(renderer: Ptr[SDL_Renderer], rect: Ptr[SDL_Rect], format: Uint32, pixels: Ptr[Byte], pitch: CInt): CInt = extern
def SDL_RenderSetClipRect(renderer: Ptr[SDL_Renderer], rect: Ptr[SDL_Rect]): CInt = extern
def SDL_RenderSetIntegerScale(renderer: Ptr[SDL_Renderer], enable: SDL_bool): CInt = extern
def SDL_RenderSetLogicalSize(renderer: Ptr[SDL_Renderer], w: CInt, h: CInt): CInt = extern
def SDL_RenderSetScale(renderer: Ptr[SDL_Renderer], scaleX: Float, scaleY: Float): CInt = extern
def SDL_RenderSetVSync(renderer: Ptr[SDL_Renderer], vsync: CInt): CInt = extern
def SDL_RenderSetViewport(renderer: Ptr[SDL_Renderer], rect: Ptr[SDL_Rect]): CInt = extern
def SDL_RenderTargetSupported(renderer: Ptr[SDL_Renderer]): SDL_bool = extern
def SDL_RenderWindowToLogical(renderer: Ptr[SDL_Renderer], windowX: CInt, windowY: CInt, logicalX: Ptr[Float], logicalY: Ptr[Float]): Unit = extern
def SDL_ReportAssertion(_0: Ptr[SDL_AssertData], _1: CString, _2: CString, _3: CInt): SDL_AssertState = extern
def SDL_ResetAssertionReport(): Unit = extern
def SDL_RestoreWindow(window: Ptr[SDL_Window]): Unit = extern
def SDL_SIMDAlloc(len: size_t): Ptr[Byte] = extern
def SDL_SIMDFree(ptr: Ptr[Byte]): Unit = extern
def SDL_SIMDGetAlignment(): size_t = extern
def SDL_SIMDRealloc(mem: Ptr[Byte], len: size_t): Ptr[Byte] = extern
def SDL_SaveAllDollarTemplates(dst: Ptr[SDL_RWops]): CInt = extern
def SDL_SaveBMP_RW(surface: Ptr[SDL_Surface], dst: Ptr[SDL_RWops], freedst: CInt): CInt = extern
def SDL_SaveDollarTemplate(gestureId: SDL_GestureID, dst: Ptr[SDL_RWops]): CInt = extern
def SDL_SemPost(sem: Ptr[SDL_sem]): CInt = extern
def SDL_SemTryWait(sem: Ptr[SDL_sem]): CInt = extern
def SDL_SemValue(sem: Ptr[SDL_sem]): Uint32 = extern
def SDL_SemWait(sem: Ptr[SDL_sem]): CInt = extern
def SDL_SemWaitTimeout(sem: Ptr[SDL_sem], ms: Uint32): CInt = extern
def SDL_SensorClose(sensor: Ptr[SDL_Sensor]): Unit = extern
def SDL_SensorFromInstanceID(instance_id: SDL_SensorID): Ptr[SDL_Sensor] = extern
def SDL_SensorGetData(sensor: Ptr[SDL_Sensor], data: Ptr[Float], num_values: CInt): CInt = extern
def SDL_SensorGetDeviceInstanceID(device_index: CInt): SDL_SensorID = extern
def SDL_SensorGetDeviceName(device_index: CInt): CString = extern
def SDL_SensorGetDeviceNonPortableType(device_index: CInt): CInt = extern
def SDL_SensorGetDeviceType(device_index: CInt): SDL_SensorType = extern
def SDL_SensorGetInstanceID(sensor: Ptr[SDL_Sensor]): SDL_SensorID = extern
def SDL_SensorGetName(sensor: Ptr[SDL_Sensor]): CString = extern
def SDL_SensorGetNonPortableType(sensor: Ptr[SDL_Sensor]): CInt = extern
def SDL_SensorGetType(sensor: Ptr[SDL_Sensor]): SDL_SensorType = extern
def SDL_SensorOpen(device_index: CInt): Ptr[SDL_Sensor] = extern
def SDL_SensorUpdate(): Unit = extern
def SDL_SetAssertionHandler(handler: SDL_AssertionHandler, userdata: Ptr[Byte]): Unit = extern
def SDL_SetClipRect(surface: Ptr[SDL_Surface], rect: Ptr[SDL_Rect]): SDL_bool = extern
def SDL_SetClipboardText(text: CString): CInt = extern
def SDL_SetColorKey(surface: Ptr[SDL_Surface], flag: CInt, key: Uint32): CInt = extern
def SDL_SetCursor(cursor: Ptr[SDL_Cursor]): Unit = extern
def SDL_SetError(fmt: CString): CInt = extern
def SDL_SetEventFilter(filter: SDL_EventFilter, userdata: Ptr[Byte]): Unit = extern
def SDL_SetHint(name: CString, value: CString): SDL_bool = extern
def SDL_SetHintWithPriority(name: CString, value: CString, priority: SDL_HintPriority): SDL_bool = extern
def SDL_SetMainReady(): Unit = extern
def SDL_SetMemoryFunctions(malloc_func: SDL_malloc_func, calloc_func: SDL_calloc_func, realloc_func: SDL_realloc_func, free_func: SDL_free_func): CInt = extern
def SDL_SetModState(modstate: SDL_Keymod): Unit = extern
def SDL_SetPaletteColors(palette: Ptr[SDL_Palette], colors: Ptr[SDL_Color], firstcolor: CInt, ncolors: CInt): CInt = extern
def SDL_SetPixelFormatPalette(format: Ptr[SDL_PixelFormat], palette: Ptr[SDL_Palette]): CInt = extern
def SDL_SetRelativeMouseMode(enabled: SDL_bool): CInt = extern
def SDL_SetRenderDrawBlendMode(renderer: Ptr[SDL_Renderer], blendMode: SDL_BlendMode): CInt = extern
def SDL_SetRenderDrawColor(renderer: Ptr[SDL_Renderer], r: Uint8, g: Uint8, b: Uint8, a: Uint8): CInt = extern
def SDL_SetRenderTarget(renderer: Ptr[SDL_Renderer], texture: Ptr[SDL_Texture]): CInt = extern
def SDL_SetSurfaceAlphaMod(surface: Ptr[SDL_Surface], alpha: Uint8): CInt = extern
def SDL_SetSurfaceBlendMode(surface: Ptr[SDL_Surface], blendMode: SDL_BlendMode): CInt = extern
def SDL_SetSurfaceColorMod(surface: Ptr[SDL_Surface], r: Uint8, g: Uint8, b: Uint8): CInt = extern
def SDL_SetSurfacePalette(surface: Ptr[SDL_Surface], palette: Ptr[SDL_Palette]): CInt = extern
def SDL_SetSurfaceRLE(surface: Ptr[SDL_Surface], flag: CInt): CInt = extern
def SDL_SetTextInputRect(rect: Ptr[SDL_Rect]): Unit = extern
def SDL_SetTextureAlphaMod(texture: Ptr[SDL_Texture], alpha: Uint8): CInt = extern
def SDL_SetTextureBlendMode(texture: Ptr[SDL_Texture], blendMode: SDL_BlendMode): CInt = extern
def SDL_SetTextureColorMod(texture: Ptr[SDL_Texture], r: Uint8, g: Uint8, b: Uint8): CInt = extern
def SDL_SetTextureScaleMode(texture: Ptr[SDL_Texture], scaleMode: SDL_ScaleMode): CInt = extern
def SDL_SetTextureUserData(texture: Ptr[SDL_Texture], userdata: Ptr[Byte]): CInt = extern
def SDL_SetThreadPriority(priority: SDL_ThreadPriority): CInt = extern
def SDL_SetWindowAlwaysOnTop(window: Ptr[SDL_Window], on_top: SDL_bool): Unit = extern
def SDL_SetWindowBordered(window: Ptr[SDL_Window], bordered: SDL_bool): Unit = extern
def SDL_SetWindowBrightness(window: Ptr[SDL_Window], brightness: Float): CInt = extern
def SDL_SetWindowData(window: Ptr[SDL_Window], name: CString, userdata: Ptr[Byte]): Ptr[Byte] = extern
def SDL_SetWindowDisplayMode(window: Ptr[SDL_Window], mode: Ptr[SDL_DisplayMode]): CInt = extern
def SDL_SetWindowFullscreen(window: Ptr[SDL_Window], flags: Uint32): CInt = extern
def SDL_SetWindowGammaRamp(window: Ptr[SDL_Window], red: Ptr[Uint16], green: Ptr[Uint16], blue: Ptr[Uint16]): CInt = extern
def SDL_SetWindowGrab(window: Ptr[SDL_Window], grabbed: SDL_bool): Unit = extern
def SDL_SetWindowHitTest(window: Ptr[SDL_Window], callback: SDL_HitTest, callback_data: Ptr[Byte]): CInt = extern
def SDL_SetWindowIcon(window: Ptr[SDL_Window], icon: Ptr[SDL_Surface]): Unit = extern
def SDL_SetWindowInputFocus(window: Ptr[SDL_Window]): CInt = extern
def SDL_SetWindowKeyboardGrab(window: Ptr[SDL_Window], grabbed: SDL_bool): Unit = extern
def SDL_SetWindowMaximumSize(window: Ptr[SDL_Window], max_w: CInt, max_h: CInt): Unit = extern
def SDL_SetWindowMinimumSize(window: Ptr[SDL_Window], min_w: CInt, min_h: CInt): Unit = extern
def SDL_SetWindowModalFor(modal_window: Ptr[SDL_Window], parent_window: Ptr[SDL_Window]): CInt = extern
def SDL_SetWindowMouseGrab(window: Ptr[SDL_Window], grabbed: SDL_bool): Unit = extern
def SDL_SetWindowMouseRect(window: Ptr[SDL_Window], rect: Ptr[SDL_Rect]): CInt = extern
def SDL_SetWindowOpacity(window: Ptr[SDL_Window], opacity: Float): CInt = extern
def SDL_SetWindowPosition(window: Ptr[SDL_Window], x: CInt, y: CInt): Unit = extern
def SDL_SetWindowResizable(window: Ptr[SDL_Window], resizable: SDL_bool): Unit = extern
def SDL_SetWindowShape(window: Ptr[SDL_Window], shape: Ptr[SDL_Surface], shape_mode: Ptr[SDL_WindowShapeMode]): CInt = extern
def SDL_SetWindowSize(window: Ptr[SDL_Window], w: CInt, h: CInt): Unit = extern
def SDL_SetWindowTitle(window: Ptr[SDL_Window], title: CString): Unit = extern
def SDL_SetYUVConversionMode(mode: SDL_YUV_CONVERSION_MODE): Unit = extern
def SDL_ShowCursor(toggle: CInt): CInt = extern
def SDL_ShowMessageBox(messageboxdata: Ptr[SDL_MessageBoxData], buttonid: Ptr[CInt]): CInt = extern
def SDL_ShowSimpleMessageBox(flags: Uint32, title: CString, message: CString, window: Ptr[SDL_Window]): CInt = extern
def SDL_ShowWindow(window: Ptr[SDL_Window]): Unit = extern
def SDL_SoftStretch(src: Ptr[SDL_Surface], srcrect: Ptr[SDL_Rect], dst: Ptr[SDL_Surface], dstrect: Ptr[SDL_Rect]): CInt = extern
def SDL_SoftStretchLinear(src: Ptr[SDL_Surface], srcrect: Ptr[SDL_Rect], dst: Ptr[SDL_Surface], dstrect: Ptr[SDL_Rect]): CInt = extern
def SDL_StartTextInput(): Unit = extern
def SDL_StopTextInput(): Unit = extern
def SDL_SwapFloat(x: Float): Float = extern
def SDL_TLSCleanup(): Unit = extern
def SDL_TLSCreate(): SDL_TLSID = extern
def SDL_TLSGet(id: SDL_TLSID): Ptr[Byte] = extern
def SDL_TLSSet(id: SDL_TLSID, value: Ptr[Byte], destructor: CFuncPtr1[Ptr[Byte], Unit]): CInt = extern
def SDL_ThreadID(): SDL_threadID = extern
def SDL_TryLockMutex(mutex: Ptr[SDL_mutex]): CInt = extern
def SDL_UnionRect(A: Ptr[SDL_Rect], B: Ptr[SDL_Rect], result: Ptr[SDL_Rect]): Unit = extern
def SDL_UnloadObject(handle: Ptr[Byte]): Unit = extern
def SDL_UnlockAudio(): Unit = extern
def SDL_UnlockAudioDevice(dev: SDL_AudioDeviceID): Unit = extern
def SDL_UnlockJoysticks(): Unit = extern
def SDL_UnlockMutex(mutex: Ptr[SDL_mutex]): CInt = extern
def SDL_UnlockSensors(): Unit = extern
def SDL_UnlockSurface(surface: Ptr[SDL_Surface]): Unit = extern
def SDL_UnlockTexture(texture: Ptr[SDL_Texture]): Unit = extern
def SDL_UpdateNVTexture(texture: Ptr[SDL_Texture], rect: Ptr[SDL_Rect], Yplane: Ptr[Uint8], Ypitch: CInt, UVplane: Ptr[Uint8], UVpitch: CInt): CInt = extern
def SDL_UpdateTexture(texture: Ptr[SDL_Texture], rect: Ptr[SDL_Rect], pixels: Ptr[Byte], pitch: CInt): CInt = extern
def SDL_UpdateWindowSurface(window: Ptr[SDL_Window]): CInt = extern
def SDL_UpdateWindowSurfaceRects(window: Ptr[SDL_Window], rects: Ptr[SDL_Rect], numrects: CInt): CInt = extern
def SDL_UpdateYUVTexture(texture: Ptr[SDL_Texture], rect: Ptr[SDL_Rect], Yplane: Ptr[Uint8], Ypitch: CInt, Uplane: Ptr[Uint8], Upitch: CInt, Vplane: Ptr[Uint8], Vpitch: CInt): CInt = extern
def SDL_UpperBlit(src: Ptr[SDL_Surface], srcrect: Ptr[SDL_Rect], dst: Ptr[SDL_Surface], dstrect: Ptr[SDL_Rect]): CInt = extern
def SDL_UpperBlitScaled(src: Ptr[SDL_Surface], srcrect: Ptr[SDL_Rect], dst: Ptr[SDL_Surface], dstrect: Ptr[SDL_Rect]): CInt = extern
def SDL_VideoInit(driver_name: CString): CInt = extern
def SDL_VideoQuit(): Unit = extern
def SDL_WaitEvent(event: Ptr[SDL_Event]): CInt = extern
def SDL_WaitEventTimeout(event: Ptr[SDL_Event], timeout: CInt): CInt = extern
def SDL_WaitThread(thread: Ptr[SDL_Thread], status: Ptr[CInt]): Unit = extern
def SDL_WarpMouseGlobal(x: CInt, y: CInt): CInt = extern
def SDL_WarpMouseInWindow(window: Ptr[SDL_Window], x: CInt, y: CInt): Unit = extern
def SDL_WasInit(flags: Uint32): Uint32 = extern
def SDL_WriteBE16(dst: Ptr[SDL_RWops], value: Uint16): size_t = extern
def SDL_WriteBE32(dst: Ptr[SDL_RWops], value: Uint32): size_t = extern
def SDL_WriteBE64(dst: Ptr[SDL_RWops], value: Uint64): size_t = extern
def SDL_WriteLE16(dst: Ptr[SDL_RWops], value: Uint16): size_t = extern
def SDL_WriteLE32(dst: Ptr[SDL_RWops], value: Uint32): size_t = extern
def SDL_WriteLE64(dst: Ptr[SDL_RWops], value: Uint64): size_t = extern
def SDL_WriteU8(dst: Ptr[SDL_RWops], value: Uint8): size_t = extern
def SDL_abs(x: CInt): CInt = extern
def SDL_acos(x: Double): Double = extern
def SDL_acosf(x: Float): Float = extern
def SDL_asin(x: Double): Double = extern
def SDL_asinf(x: Float): Float = extern
def SDL_asprintf(strp: Ptr[CString], fmt: CString): CInt = extern
def SDL_atan(x: Double): Double = extern
def SDL_atan2(y: Double, x: Double): Double = extern
def SDL_atan2f(y: Float, x: Float): Float = extern
def SDL_atanf(x: Float): Float = extern
def SDL_atof(str: CString): Double = extern
def SDL_atoi(str: CString): CInt = extern
def SDL_calloc(nmemb: size_t, size: size_t): Ptr[Byte] = extern
def SDL_ceil(x: Double): Double = extern
def SDL_ceilf(x: Float): Float = extern
def SDL_copysign(x: Double, y: Double): Double = extern
def SDL_copysignf(x: Float, y: Float): Float = extern
def SDL_cos(x: Double): Double = extern
def SDL_cosf(x: Float): Float = extern
def SDL_crc32(crc: Uint32, data: Ptr[Byte], len: size_t): Uint32 = extern
def SDL_exp(x: Double): Double = extern
def SDL_expf(x: Float): Float = extern
def SDL_fabs(x: Double): Double = extern
def SDL_fabsf(x: Float): Float = extern
def SDL_floor(x: Double): Double = extern
def SDL_floorf(x: Float): Float = extern
def SDL_fmod(x: Double, y: Double): Double = extern
def SDL_fmodf(x: Float, y: Float): Float = extern
def SDL_free(mem: Ptr[Byte]): Unit = extern
def SDL_getenv(name: CString): CString = extern
def SDL_hid_ble_scan(active: SDL_bool): Unit = extern
def SDL_hid_close(dev: Ptr[SDL_hid_device]): Unit = extern
def SDL_hid_device_change_count(): Uint32 = extern
def SDL_hid_enumerate(vendor_id: CUnsignedShort, product_id: CUnsignedShort): Ptr[SDL_hid_device_info] = extern
def SDL_hid_exit(): CInt = extern
def SDL_hid_free_enumeration(devs: Ptr[SDL_hid_device_info]): Unit = extern
def SDL_hid_get_feature_report(dev: Ptr[SDL_hid_device], data: Ptr[CUnsignedChar], length: size_t): CInt = extern
def SDL_hid_get_indexed_string(dev: Ptr[SDL_hid_device], string_index: CInt, string: Ptr[wchar_t], maxlen: size_t): CInt = extern
def SDL_hid_get_manufacturer_string(dev: Ptr[SDL_hid_device], string: Ptr[wchar_t], maxlen: size_t): CInt = extern
def SDL_hid_get_product_string(dev: Ptr[SDL_hid_device], string: Ptr[wchar_t], maxlen: size_t): CInt = extern
def SDL_hid_get_serial_number_string(dev: Ptr[SDL_hid_device], string: Ptr[wchar_t], maxlen: size_t): CInt = extern
def SDL_hid_init(): CInt = extern
def SDL_hid_open(vendor_id: CUnsignedShort, product_id: CUnsignedShort, serial_number: Ptr[wchar_t]): Ptr[SDL_hid_device] = extern
def SDL_hid_open_path(path: CString, bExclusive: CInt): Ptr[SDL_hid_device] = extern
def SDL_hid_read(dev: Ptr[SDL_hid_device], data: Ptr[CUnsignedChar], length: size_t): CInt = extern
def SDL_hid_read_timeout(dev: Ptr[SDL_hid_device], data: Ptr[CUnsignedChar], length: size_t, milliseconds: CInt): CInt = extern
def SDL_hid_send_feature_report(dev: Ptr[SDL_hid_device], data: Ptr[CUnsignedChar], length: size_t): CInt = extern
def SDL_hid_set_nonblocking(dev: Ptr[SDL_hid_device], nonblock: CInt): CInt = extern
def SDL_hid_write(dev: Ptr[SDL_hid_device], data: Ptr[CUnsignedChar], length: size_t): CInt = extern
def SDL_iconv(cd: SDL_iconv_t, inbuf: Ptr[CString], inbytesleft: Ptr[size_t], outbuf: Ptr[CString], outbytesleft: Ptr[size_t]): size_t = extern
def SDL_iconv_close(cd: SDL_iconv_t): CInt = extern
def SDL_iconv_open(tocode: CString, fromcode: CString): SDL_iconv_t = extern
def SDL_iconv_string(tocode: CString, fromcode: CString, inbuf: CString, inbytesleft: size_t): CString = extern
def SDL_isalnum(x: CInt): CInt = extern
def SDL_isalpha(x: CInt): CInt = extern
def SDL_isblank(x: CInt): CInt = extern
def SDL_iscntrl(x: CInt): CInt = extern
def SDL_isdigit(x: CInt): CInt = extern
def SDL_isgraph(x: CInt): CInt = extern
def SDL_islower(x: CInt): CInt = extern
def SDL_isprint(x: CInt): CInt = extern
def SDL_ispunct(x: CInt): CInt = extern
def SDL_isspace(x: CInt): CInt = extern
def SDL_isupper(x: CInt): CInt = extern
def SDL_isxdigit(x: CInt): CInt = extern
def SDL_itoa(value: CInt, str: CString, radix: CInt): CString = extern
def SDL_lltoa(value: Sint64, str: CString, radix: CInt): CString = extern
def SDL_log(x: Double): Double = extern
def SDL_log10(x: Double): Double = extern
def SDL_log10f(x: Float): Float = extern
def SDL_logf(x: Float): Float = extern
def SDL_lround(x: Double): CLongInt = extern
def SDL_lroundf(x: Float): CLongInt = extern
def SDL_ltoa(value: CLongInt, str: CString, radix: CInt): CString = extern
def SDL_main(argc: CInt, argv: Unit): CInt = extern
def SDL_malloc(size: size_t): Ptr[Byte] = extern
def SDL_memcmp(s1: Ptr[Byte], s2: Ptr[Byte], len: size_t): CInt = extern
def SDL_memcpy(dst: Ptr[Byte], src: Ptr[Byte], len: size_t): Ptr[Byte] = extern
def SDL_memcpy4(dst: Ptr[Byte], src: Ptr[Byte], dwords: size_t): Ptr[Byte] = extern
def SDL_memmove(dst: Ptr[Byte], src: Ptr[Byte], len: size_t): Ptr[Byte] = extern
def SDL_memset(dst: Ptr[Byte], c: CInt, len: size_t): Ptr[Byte] = extern
def SDL_memset4(dst: Ptr[Byte], `val`: Uint32, dwords: size_t): Unit = extern
def SDL_pow(x: Double, y: Double): Double = extern
def SDL_powf(x: Float, y: Float): Float = extern
def SDL_qsort(base: Ptr[Byte], nmemb: size_t, size: size_t, compare: CFuncPtr2[Ptr[Byte], Ptr[Byte], CInt]): Unit = extern
def SDL_realloc(mem: Ptr[Byte], size: size_t): Ptr[Byte] = extern
def SDL_round(x: Double): Double = extern
def SDL_roundf(x: Float): Float = extern
def SDL_scalbn(x: Double, n: CInt): Double = extern
def SDL_scalbnf(x: Float, n: CInt): Float = extern
def SDL_setenv(name: CString, value: CString, overwrite: CInt): CInt = extern
def SDL_sin(x: Double): Double = extern
def SDL_sinf(x: Float): Float = extern
def SDL_snprintf(text: CString, maxlen: size_t, fmt: CString): CInt = extern
def SDL_sqrt(x: Double): Double = extern
def SDL_sqrtf(x: Float): Float = extern
def SDL_sscanf(text: CString, fmt: CString): CInt = extern
def SDL_strcasecmp(str1: CString, str2: CString): CInt = extern
def SDL_strchr(str: CString, c: CInt): CString = extern
def SDL_strcmp(str1: CString, str2: CString): CInt = extern
def SDL_strdup(str: CString): CString = extern
def SDL_strlcat(dst: CString, src: CString, maxlen: size_t): size_t = extern
def SDL_strlcpy(dst: CString, src: CString, maxlen: size_t): size_t = extern
def SDL_strlen(str: CString): size_t = extern
def SDL_strlwr(str: CString): CString = extern
def SDL_strncasecmp(str1: CString, str2: CString, len: size_t): CInt = extern
def SDL_strncmp(str1: CString, str2: CString, maxlen: size_t): CInt = extern
def SDL_strrchr(str: CString, c: CInt): CString = extern
def SDL_strrev(str: CString): CString = extern
def SDL_strstr(haystack: CString, needle: CString): CString = extern
def SDL_strtod(str: CString, endp: Ptr[CString]): Double = extern
def SDL_strtokr(s1: CString, s2: CString, saveptr: Ptr[CString]): CString = extern
def SDL_strtol(str: CString, endp: Ptr[CString], base: CInt): CLongInt = extern
def SDL_strtoll(str: CString, endp: Ptr[CString], base: CInt): Sint64 = extern
def SDL_strtoul(str: CString, endp: Ptr[CString], base: CInt): CUnsignedLongInt = extern
def SDL_strtoull(str: CString, endp: Ptr[CString], base: CInt): Uint64 = extern
def SDL_strupr(str: CString): CString = extern
def SDL_tan(x: Double): Double = extern
def SDL_tanf(x: Float): Float = extern
def SDL_tolower(x: CInt): CInt = extern
def SDL_toupper(x: CInt): CInt = extern
def SDL_trunc(x: Double): Double = extern
def SDL_truncf(x: Float): Float = extern
def SDL_uitoa(value: CUnsignedInt, str: CString, radix: CInt): CString = extern
def SDL_ulltoa(value: Uint64, str: CString, radix: CInt): CString = extern
def SDL_ultoa(value: CUnsignedLongInt, str: CString, radix: CInt): CString = extern
def SDL_utf8strlcpy(dst: CString, src: CString, dst_bytes: size_t): size_t = extern
def SDL_utf8strlen(str: CString): size_t = extern
def SDL_vasprintf(strp: Ptr[CString], fmt: CString, ap: va_list): CInt = extern
def SDL_vsnprintf(text: CString, maxlen: size_t, fmt: CString, ap: va_list): CInt = extern
def SDL_vsscanf(text: CString, fmt: CString, ap: va_list): CInt = extern
def SDL_wcscasecmp(str1: Ptr[wchar_t], str2: Ptr[wchar_t]): CInt = extern
def SDL_wcscmp(str1: Ptr[wchar_t], str2: Ptr[wchar_t]): CInt = extern
def SDL_wcsdup(wstr: Ptr[wchar_t]): Ptr[wchar_t] = extern
def SDL_wcslcat(dst: Ptr[wchar_t], src: Ptr[wchar_t], maxlen: size_t): size_t = extern
def SDL_wcslcpy(dst: Ptr[wchar_t], src: Ptr[wchar_t], maxlen: size_t): size_t = extern
def SDL_wcslen(wstr: Ptr[wchar_t]): size_t = extern
def SDL_wcsncasecmp(str1: Ptr[wchar_t], str2: Ptr[wchar_t], len: size_t): CInt = extern
def SDL_wcsncmp(str1: Ptr[wchar_t], str2: Ptr[wchar_t], maxlen: size_t): CInt = extern
def SDL_wcsstr(haystack: Ptr[wchar_t], needle: Ptr[wchar_t]): Ptr[wchar_t] = extern
private[libsdl] def __sn_wrap_libsdl_SDL_GameControllerGetBindForAxis(gamecontroller: Ptr[SDL_GameController], axis: SDL_GameControllerAxis, __return: Ptr[SDL_GameControllerButtonBind]): Unit = extern
private[libsdl] def __sn_wrap_libsdl_SDL_GameControllerGetBindForButton(gamecontroller: Ptr[SDL_GameController], button: SDL_GameControllerButton, __return: Ptr[SDL_GameControllerButtonBind]): Unit = extern
private[libsdl] def __sn_wrap_libsdl_SDL_GameControllerMappingForGUID(guid: Ptr[SDL_JoystickGUID]): CString = extern
private[libsdl] def __sn_wrap_libsdl_SDL_JoystickGetDeviceGUID(device_index: CInt, __return: Ptr[SDL_JoystickGUID]): Unit = extern
private[libsdl] def __sn_wrap_libsdl_SDL_JoystickGetGUID(joystick: Ptr[SDL_Joystick], __return: Ptr[SDL_JoystickGUID]): Unit = extern
private[libsdl] def __sn_wrap_libsdl_SDL_JoystickGetGUIDFromString(pchGUID: CString, __return: Ptr[SDL_JoystickGUID]): Unit = extern
private[libsdl] def __sn_wrap_libsdl_SDL_JoystickGetGUIDString(guid: Ptr[SDL_JoystickGUID], pszGUID: CString, cbGUID: CInt): Unit = extern
object functions:
import types.*
import extern_functions.*
export extern_functions.*
def SDL_GameControllerGetBindForAxis(gamecontroller: Ptr[SDL_GameController], axis: SDL_GameControllerAxis)(__return: Ptr[SDL_GameControllerButtonBind]): Unit =
__sn_wrap_libsdl_SDL_GameControllerGetBindForAxis(gamecontroller, axis, __return)
def SDL_GameControllerGetBindForAxis(gamecontroller: Ptr[SDL_GameController], axis: SDL_GameControllerAxis)(using Zone): SDL_GameControllerButtonBind =
val __ptr_0: Ptr[SDL_GameControllerButtonBind] = alloc[SDL_GameControllerButtonBind](1)
__sn_wrap_libsdl_SDL_GameControllerGetBindForAxis(gamecontroller, axis, (__ptr_0 + 0))
!(__ptr_0 + 0)
def SDL_GameControllerGetBindForButton(gamecontroller: Ptr[SDL_GameController], button: SDL_GameControllerButton)(using Zone): SDL_GameControllerButtonBind =
val __ptr_0: Ptr[SDL_GameControllerButtonBind] = alloc[SDL_GameControllerButtonBind](1)
__sn_wrap_libsdl_SDL_GameControllerGetBindForButton(gamecontroller, button, (__ptr_0 + 0))
!(__ptr_0 + 0)
def SDL_GameControllerGetBindForButton(gamecontroller: Ptr[SDL_GameController], button: SDL_GameControllerButton)(__return: Ptr[SDL_GameControllerButtonBind]): Unit =
__sn_wrap_libsdl_SDL_GameControllerGetBindForButton(gamecontroller, button, __return)
def SDL_GameControllerMappingForGUID(guid: Ptr[SDL_JoystickGUID]): CString =
__sn_wrap_libsdl_SDL_GameControllerMappingForGUID(guid)
def SDL_GameControllerMappingForGUID(guid: SDL_JoystickGUID)(using Zone): CString =
val __ptr_0: Ptr[SDL_JoystickGUID] = alloc[SDL_JoystickGUID](1)
!(__ptr_0 + 0) = guid
__sn_wrap_libsdl_SDL_GameControllerMappingForGUID((__ptr_0 + 0))
def SDL_JoystickGetDeviceGUID(device_index: CInt)(using Zone): SDL_JoystickGUID =
val __ptr_0: Ptr[SDL_JoystickGUID] = alloc[SDL_JoystickGUID](1)
__sn_wrap_libsdl_SDL_JoystickGetDeviceGUID(device_index, (__ptr_0 + 0))
!(__ptr_0 + 0)
def SDL_JoystickGetDeviceGUID(device_index: CInt)(__return: Ptr[SDL_JoystickGUID]): Unit =
__sn_wrap_libsdl_SDL_JoystickGetDeviceGUID(device_index, __return)
def SDL_JoystickGetGUID(joystick: Ptr[SDL_Joystick])(__return: Ptr[SDL_JoystickGUID]): Unit =
__sn_wrap_libsdl_SDL_JoystickGetGUID(joystick, __return)
def SDL_JoystickGetGUID(joystick: Ptr[SDL_Joystick])(using Zone): SDL_JoystickGUID =
val __ptr_0: Ptr[SDL_JoystickGUID] = alloc[SDL_JoystickGUID](1)
__sn_wrap_libsdl_SDL_JoystickGetGUID(joystick, (__ptr_0 + 0))
!(__ptr_0 + 0)
def SDL_JoystickGetGUIDFromString(pchGUID: CString)(__return: Ptr[SDL_JoystickGUID]): Unit =
__sn_wrap_libsdl_SDL_JoystickGetGUIDFromString(pchGUID, __return)
def SDL_JoystickGetGUIDFromString(pchGUID: CString)(using Zone): SDL_JoystickGUID =
val __ptr_0: Ptr[SDL_JoystickGUID] = alloc[SDL_JoystickGUID](1)
__sn_wrap_libsdl_SDL_JoystickGetGUIDFromString(pchGUID, (__ptr_0 + 0))
!(__ptr_0 + 0)
def SDL_JoystickGetGUIDString(guid: Ptr[SDL_JoystickGUID], pszGUID: CString, cbGUID: CInt): Unit =
__sn_wrap_libsdl_SDL_JoystickGetGUIDString(guid, pszGUID, cbGUID)
def SDL_JoystickGetGUIDString(guid: SDL_JoystickGUID, pszGUID: CString, cbGUID: CInt)(using Zone): Unit =
val __ptr_0: Ptr[SDL_JoystickGUID] = alloc[SDL_JoystickGUID](1)
!(__ptr_0 + 0) = guid
__sn_wrap_libsdl_SDL_JoystickGetGUIDString((__ptr_0 + 0), pszGUID, cbGUID)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment