Versions in this module Expand all Collapse all v0 v0.1.1 Jan 8, 2023 Changes in this version + const Disable + const Enable + const Ignore + const Query + func CloseAudioDevice(device AudioDeviceID) + func FreePalette(palette *Palette) + func GameControllerClose(controller *GameController) + func GameControllerEventState(state int) int + func GameControllerHasSensor(controller *GameController, typ SensorType) bool + func GameControllerIsSensorEnabled(controller *GameController, typ SensorType) bool + func GameControllerMapping(gameController *GameController) (string, error) + func GameControllerMappingForIndex(mappingIndex int) string + func GameControllerNumMappings() int + func GameControllerSetSensorEnabled(controller *GameController, typ SensorType, enabled bool) error + func GetAudioDriver(index int) (string, error) + func GetDisplayUsableBounds(displayIndex int, rect *Rect) error + func GetKeyboardState() []uint8 + func GetNumAudioDevices(isCapture bool) int + func GetNumAudioDrivers() int + func GetRelativeMouseMode() bool + func GetRelativeMouseState(x, y *int) uint32 + func IsGameController(joystickIndex int) bool + func JoystickClose(joystick *Joystick) + func LoadWAVRW(ops *RWOps, freeSrc bool, spec *AudioSpec) ([]byte, error) + func PauseAudioDevice(device AudioDeviceID, pause bool) + func PumpEvents() + func PushEvent(event Event) (filtered bool, err error) + func QueueAudio(device AudioDeviceID, data unsafe.Pointer, length int) error + func SetPaletteColors(palette *Palette, offset int, colors []Color) error + func SetPixelFormatPalette(format *PixelFormatS, palette *Palette) error + func SetRelativeMouseMode(enabled bool) error + func VulkanGetDrawableSize(window *Window, w, h *int) + func WarpMouseInWindow(window *Window, x, y int) + type AudioCallback func(userData unsafe.Pointer, stream *byte, length int32) + type AudioDeviceID int + func OpenAudioDevice(device string, isCapture bool, desired, obtained *AudioSpec, ...) (AudioDeviceID, error) + type AudioFormat uint16 + const AudioF32 + const AudioF32LSB + const AudioF32MSB + const AudioS16 + const AudioS16LSB + const AudioS16MSB + const AudioS32 + const AudioS32LSB + const AudioS32MSB + const AudioS8 + const AudioU16 + const AudioU16LSB + const AudioU16MSB + const AudioU8 + type AudioSpec struct + Callback AudioCallback + Channels uint8 + Format AudioFormat + Frequency int32 + Padding uint16 + Samples uint16 + Silence uint8 + Size uint32 + UserData unsafe.Pointer + type AudioStream interface + Available func() int + Clear func() + Flush func() error + Free func() + Get func([]byte) (int, error) + Put func([]byte) error + func NewAudioStream(srcFormat AudioFormat, srcChannels, srcRate int, dstFormat AudioFormat, ...) (AudioStream, error) + type ControllerAxisEvent struct + Axis uint8 + Timestamp time.Time + Type EventType + Value int16 + Which JoystickID + func (e ControllerAxisEvent) String() string + type ControllerButtonEvent struct + Button uint8 + State uint8 + Timestamp time.Time + Type EventType + Which JoystickID + func (e ControllerButtonEvent) String() string + type ControllerDeviceEvent struct + Timestamp time.Time + Type EventType + Which int + func (e ControllerDeviceEvent) String() string + type ControllerSensorEvent struct + Data [3]float32 + Sensor SensorType + Timestamp time.Time + Type EventType + Which JoystickID + func (e ControllerSensorEvent) String() string + type ControllerTouchpadEvent struct + Finger int32 + Pressure float32 + Timestamp time.Time + Touchpad int32 + Type EventType + Which JoystickID + X float32 + Y float32 + func (e ControllerTouchpadEvent) String() string type Event + func PeepEvents(n uint, action EventAction, min, max EventType) ([]Event, error) + type EventAction uint32 + const AddEvent + const GetEvent + const PeekEvent type EventType + const EventControllerSensorUpdate + const EventControllerTouchpadDown + const EventControllerTouchpadMotion + const EventControllerTouchpadUp + type GameController = C.SDL_GameController + func GameControllerFromInstanceID(joyID JoystickID) (*GameController, error) + func GameControllerOpen(joystickIndex int) (*GameController, error) + type Joystick = C.SDL_Joystick + func JoystickOpen(deviceIndex int) (*Joystick, error) + type JoystickID int32 + func JoystickInstanceID(joystick *Joystick) (JoystickID, error) type Palette + func AllocPalette(colors int) (*Palette, error) + func (p *Palette) Free() + func (p *Palette) SetColors(offset int, colors []Color) error type PixelFormat + func (f PixelFormat) String() string type PixelFormatS + ALoss uint8 + AMask uint32 + AShift uint8 + BLoss uint8 + BMask uint32 + BShift uint8 + GLoss uint8 + GMask uint32 + GShift uint8 + RLoss uint8 + RMask uint32 + RShift uint8 + func (f *PixelFormatS) SetPalette(palette *Palette) error + func (f PixelFormatS) Palette() []Color type Renderer + func (r *Renderer) FillRect(rect *Rect) error + func (r *Renderer) FillRects(rects []*Rect) error + type SensorID int32 + type SensorType uint32 + const SensorAccelerometer + const SensorGyroscope + const SensorInvalid + const SensorUnknown type Surface + func ConvertSurface(src *Surface, format *PixelFormatS) (*Surface, error) + func ConvertSurfaceFormat(src *Surface, format PixelFormat) (*Surface, error) + func CreateRGBSurfaceWithFormat(flags uint32, width, height, depth int, format PixelFormat) (*Surface, error) + func (s *Surface) Convert(format *PixelFormatS) (*Surface, error) + func (s *Surface) ConvertFormat(format PixelFormat) (*Surface, error) + func (s *Surface) Height() int + func (s *Surface) Image() draw.Image + func (s *Surface) Pitch() int + func (s *Surface) SetPixelFormatPalette(palette *Palette) error + func (s *Surface) Width() int type Version + func (v Version) String() string v0.1.0 Jan 18, 2020 Changes in this version + const AlphaOpaque + const AlphaTransparent + const ArrayOrderABGR + const ArrayOrderARGB + const ArrayOrderBGR + const ArrayOrderBGRA + const ArrayOrderNone + const ArrayOrderRGB + const ArrayOrderRGBA + const BitmapOrder1234 + const BitmapOrder4321 + const BitmapOrderNone + const KeyCode0 + const KeyCode1 + const KeyCode2 + const KeyCode3 + const KeyCode4 + const KeyCode5 + const KeyCode6 + const KeyCode7 + const KeyCode8 + const KeyCode9 + const KeyCodeA + const KeyCodeAgain + const KeyCodeAlternateErase + const KeyCodeAmpersand + const KeyCodeApplication + const KeyCodeApplication1 + const KeyCodeApplication2 + const KeyCodeApplicationControlBack + const KeyCodeApplicationControlBookmarks + const KeyCodeApplicationControlForward + const KeyCodeApplicationControlHome + const KeyCodeApplicationControlRefresh + const KeyCodeApplicationControlSearch + const KeyCodeApplicationControlStop + const KeyCodeAsterisk + const KeyCodeAt + const KeyCodeAudioFastForward + const KeyCodeAudioMute + const KeyCodeAudioNext + const KeyCodeAudioPlay + const KeyCodeAudioPrevious + const KeyCodeAudioRewind + const KeyCodeAudioStop + const KeyCodeB + const KeyCodeBackquote + const KeyCodeBackslash + const KeyCodeBackspace + const KeyCodeBrightnessDown + const KeyCodeBrightnessUp + const KeyCodeC + const KeyCodeCalculator + const KeyCodeCancel + const KeyCodeCapsLock + const KeyCodeCaret + const KeyCodeClear + const KeyCodeClearAgain + const KeyCodeColon + const KeyCodeComma + const KeyCodeComputer + const KeyCodeCopy + const KeyCodeCrSel + const KeyCodeCurrencySubUnit + const KeyCodeCurrencyUnit + const KeyCodeCut + const KeyCodeD + const KeyCodeDecimalSeparator + const KeyCodeDelete + const KeyCodeDisplaySwitch + const KeyCodeDollar + const KeyCodeDoubleQuote + const KeyCodeDown + const KeyCodeE + const KeyCodeEject + const KeyCodeEnd + const KeyCodeEquals + const KeyCodeEscape + const KeyCodeExSel + const KeyCodeExclamationMark + const KeyCodeExecute + const KeyCodeF + const KeyCodeF1 + const KeyCodeF10 + const KeyCodeF11 + const KeyCodeF12 + const KeyCodeF13 + const KeyCodeF14 + const KeyCodeF15 + const KeyCodeF16 + const KeyCodeF17 + const KeyCodeF18 + const KeyCodeF19 + const KeyCodeF2 + const KeyCodeF20 + const KeyCodeF21 + const KeyCodeF22 + const KeyCodeF23 + const KeyCodeF24 + const KeyCodeF3 + const KeyCodeF4 + const KeyCodeF5 + const KeyCodeF6 + const KeyCodeF7 + const KeyCodeF8 + const KeyCodeF9 + const KeyCodeFind + const KeyCodeG + const KeyCodeGreater + const KeyCodeH + const KeyCodeHash + const KeyCodeHelp + const KeyCodeHome + const KeyCodeI + const KeyCodeInsert + const KeyCodeJ + const KeyCodeK + const KeyCodeKeyPad0 + const KeyCodeKeyPad00 + const KeyCodeKeyPad000 + const KeyCodeKeyPad1 + const KeyCodeKeyPad2 + const KeyCodeKeyPad3 + const KeyCodeKeyPad4 + const KeyCodeKeyPad5 + const KeyCodeKeyPad6 + const KeyCodeKeyPad7 + const KeyCodeKeyPad8 + const KeyCodeKeyPad9 + const KeyCodeKeyPadA + const KeyCodeKeyPadAmpersand + const KeyCodeKeyPadAt + const KeyCodeKeyPadB + const KeyCodeKeyPadBackspace + const KeyCodeKeyPadBinary + const KeyCodeKeyPadC + const KeyCodeKeyPadClear + const KeyCodeKeyPadClearEntry + const KeyCodeKeyPadColon + const KeyCodeKeyPadComma + const KeyCodeKeyPadD + const KeyCodeKeyPadDecimal + const KeyCodeKeyPadDivide + const KeyCodeKeyPadDoubleAmpersand + const KeyCodeKeyPadDoubleVerticalBar + const KeyCodeKeyPadE + const KeyCodeKeyPadEnter + const KeyCodeKeyPadEquals + const KeyCodeKeyPadEqualsAS400 + const KeyCodeKeyPadExclamationMark + const KeyCodeKeyPadF + const KeyCodeKeyPadGreater + const KeyCodeKeyPadHash + const KeyCodeKeyPadHexadecimal + const KeyCodeKeyPadLeftBrace + const KeyCodeKeyPadLeftParenthesis + const KeyCodeKeyPadLess + const KeyCodeKeyPadMemoryAdd + const KeyCodeKeyPadMemoryClear + const KeyCodeKeyPadMemoryDivide + const KeyCodeKeyPadMemoryMultiply + const KeyCodeKeyPadMemoryRecall + const KeyCodeKeyPadMemoryStore + const KeyCodeKeyPadMemorySubtract + const KeyCodeKeyPadMinus + const KeyCodeKeyPadMultiply + const KeyCodeKeyPadOctal + const KeyCodeKeyPadPercent + const KeyCodeKeyPadPeriod + const KeyCodeKeyPadPlus + const KeyCodeKeyPadPlusMinus + const KeyCodeKeyPadPower + const KeyCodeKeyPadRightBrace + const KeyCodeKeyPadRightParenthesis + const KeyCodeKeyPadSpace + const KeyCodeKeyPadTab + const KeyCodeKeyPadVerticalBar + const KeyCodeKeyPadXor + const KeyCodeKeyboardIlluminationDown + const KeyCodeKeyboardIlluminationToggle + const KeyCodeKeyboardIlluminationUp + const KeyCodeL + const KeyCodeLeft + const KeyCodeLeftAlt + const KeyCodeLeftBracket + const KeyCodeLeftControl + const KeyCodeLeftGUI + const KeyCodeLeftParenthesis + const KeyCodeLeftShift + const KeyCodeLess + const KeyCodeM + const KeyCodeMail + const KeyCodeMediaSelect + const KeyCodeMenu + const KeyCodeMinus + const KeyCodeMode + const KeyCodeMute + const KeyCodeN + const KeyCodeNumLockClear + const KeyCodeO + const KeyCodeOper + const KeyCodeOut + const KeyCodeP + const KeyCodePageDown + const KeyCodePageUp + const KeyCodePaste + const KeyCodePause + const KeyCodePercent + const KeyCodePeriod + const KeyCodePlus + const KeyCodePower + const KeyCodePrintScreen + const KeyCodePrior + const KeyCodeQ + const KeyCodeQuestionMark + const KeyCodeQuote + const KeyCodeR + const KeyCodeReturn + const KeyCodeReturn2 + const KeyCodeRight + const KeyCodeRightAlt + const KeyCodeRightBracket + const KeyCodeRightControl + const KeyCodeRightGUI + const KeyCodeRightParenthesis + const KeyCodeRightShift + const KeyCodeS + const KeyCodeScrollLock + const KeyCodeSelect + const KeyCodeSemilon + const KeyCodeSeparator + const KeyCodeSlash + const KeyCodeSleep + const KeyCodeSpace + const KeyCodeStop + const KeyCodeSystemRequest + const KeyCodeT + const KeyCodeTab + const KeyCodeThousandsSeparator + const KeyCodeToScanCodeMask + const KeyCodeU + const KeyCodeUnderscore + const KeyCodeUndo + const KeyCodeUnknown + const KeyCodeUp + const KeyCodeV + const KeyCodeVolumeDown + const KeyCodeVolumeUp + const KeyCodeW + const KeyCodeWWW + const KeyCodeX + const KeyCodeY + const KeyCodeZ + const KeyModifierAlt + const KeyModifierControl + const KeyModifierGUI + const KeyModifierShift + const MouseButtonExtra1 + const MouseButtonExtra2 + const MouseButtonLeft + const MouseButtonMiddle + const MouseButtonRight + const NumScanCodes + const PackedLayout1010102 + const PackedLayout1555 + const PackedLayout2101010 + const PackedLayout332 + const PackedLayout4444 + const PackedLayout5551 + const PackedLayout565 + const PackedLayout8888 + const PackedLayoutNone + const PackedOrderABGR + const PackedOrderARGB + const PackedOrderBGRA + const PackedOrderBGRX + const PackedOrderNone + const PackedOrderRGBA + const PackedOrderRGBX + const PackedOrderXBGR + const PackedOrderXRGB + const PixelFormatABGR1555 + const PixelFormatABGR4444 + const PixelFormatABGR8888 + const PixelFormatARGB1555 + const PixelFormatARGB2101010 + const PixelFormatARGB4444 + const PixelFormatARGB8888 + const PixelFormatBGR24 + const PixelFormatBGR555 + const PixelFormatBGR565 + const PixelFormatBGR888 + const PixelFormatBGRA4444 + const PixelFormatBGRA5551 + const PixelFormatBGRA8888 + const PixelFormatBGRX8888 + const PixelFormatExternalOES + const PixelFormatIYUV + const PixelFormatIndex1LSB + const PixelFormatIndex1MSB + const PixelFormatIndex4LSB + const PixelFormatIndex4MSB + const PixelFormatIndex8 + const PixelFormatNV12 + const PixelFormatNV21 + const PixelFormatRGB24 + const PixelFormatRGB332 + const PixelFormatRGB444 + const PixelFormatRGB555 + const PixelFormatRGB565 + const PixelFormatRGB888 + const PixelFormatRGBA4444 + const PixelFormatRGBA5551 + const PixelFormatRGBA8888 + const PixelFormatRGBX8888 + const PixelFormatUYVY + const PixelFormatUnknown + const PixelFormatYUY2 + const PixelFormatYV12 + const PixelFormatYVYU + const WindowPositionCentered + const WindowPositionCenteredMask + const WindowPositionUndefined + const WindowPositionUndefinedMask + func BitsPerPixel(format int) int + func ClearError() + func FreeRW(area *RWOps) + func GetAudioDeviceName(device int, isCapture bool) (string, error) + func GetDisplayBounds(displayIndex int, rect *Rect) error + func GetError() error + func GetMouseState(x, y *int) uint32 + func GetNumRenderDrivers() (int, error) + func GetNumTouchDevices() int + func GetNumVideoDisplays() (int, error) + func GetNumVideoDrivers() (int, error) + func GetRenderDriverInfo(index int, info *RendererInfo) error + func GetRendererInfo(renderer *Renderer, info *RendererInfo) error + func GetRevision() string + func GetRevisionNumber() int + func GetVideoDriver(index int) string + func HasIntersection(a, b Rect) bool + func Init(flags InitFlag) error + func InitSubSystem(flags InitFlag) error + func LoadDollarTemplates(touchID TouchID, src *RWOps) (int, error) + func MapRGB(format *PixelFormatS, r, g, b uint8) uint32 + func MapRGBA(format *PixelFormatS, r, g, b, a uint8) uint32 + func PixelLayout(format int) int + func PixelOrder(format int) int + func PointInRect(point Point, rect Rect) bool + func Quit() + func QuitSubSystem(flags InitFlag) + func RecordGesture(touchID TouchID) bool + func SaveAllDollarTemplates(dst *RWOps) (int, error) + func SaveDollarTemplate(gestureID GestureID, dst *RWOps) error + func SetError(format string, a ...interface{}) + func VersionAtLeast(major, minor, patch uint8) bool + func VersionNum(major, minor, patch uint8) int + func WindowPositionCenteredDisplay(displayIndex int) int + func WindowPositionUndefinedDisplay(displayIndex int) int + type AudioDeviceEvent struct + IsCapture bool + Timestamp time.Time + Type EventType + Which int + func (e AudioDeviceEvent) String() string + type Color struct + A uint8 + B uint8 + G uint8 + R uint8 + type CommonEvent struct + Event Event + Timestamp time.Time + Type EventType + func PollEvent() *CommonEvent + func (e CommonEvent) String() string + type Destroyable interface + Destroy func() + type DollarGestureEvent struct + Error float32 + GestureID GestureID + NumFingers uint32 + Timestamp time.Time + TouchID TouchID + Type EventType + X float32 + Y float32 + func (e DollarGestureEvent) String() string + type Event interface + type EventType uint32 + const EventApplicationDidEnterBackground + const EventApplicationDidEnterForeground + const EventApplicationLowMemory + const EventApplicationTerminating + const EventApplicationWillEnterBackground + const EventApplicationWillEnterForeground + const EventAudioDeviceAdded + const EventAudioDeviceRemoved + const EventClipboardUpdate + const EventControllerAxisMotion + const EventControllerButtonDown + const EventControllerButtonUp + const EventControllerDeviceAdded + const EventControllerDeviceRemapped + const EventControllerDeviceRemoved + const EventDollarGesture + const EventDollarRecord + const EventDropBegin + const EventDropComplete + const EventDropFile + const EventDropText + const EventFingerDown + const EventFingerMotion + const EventFingerUp + const EventFirstEvent + const EventJoystickAxisMotion + const EventJoystickButtonDown + const EventJoystickButtonUp + const EventJoystickDeviceAdded + const EventJoystickDeviceRemoved + const EventJoystickHatMotion + const EventJoystickTrackballMotion + const EventKeyDown + const EventKeyMapChanged + const EventKeyUp + const EventLastEvent + const EventMouseButtonDown + const EventMouseButtonUp + const EventMouseMotion + const EventMouseWheel + const EventMultiGesture + const EventQuit + const EventRenderDeviceReset + const EventRenderTargetsReset + const EventSystemWindowManagerEvent + const EventTextEditing + const EventTextInput + const EventUserEvent + const EventWindowEvent + func (t EventType) String() string + type Finger struct + ID FingerID + Pressure float32 + X float32 + Y float32 + type FingerID int64 + type GestureID int64 + type InitFlag uint32 + const InitAudio + const InitEvents + const InitEverything + const InitGameController + const InitHaptic + const InitJoystick + const InitNoParachute + const InitTimer + const InitVideo + type KeyCode int32 + type KeyModifiers uint16 + const KeyModifierCapsLock + const KeyModifierLeftAlt + const KeyModifierLeftControl + const KeyModifierLeftGUI + const KeyModifierLeftShift + const KeyModifierMode + const KeyModifierNone + const KeyModifierNumLock + const KeyModifierReserved + const KeyModifierRightAlt + const KeyModifierRightControl + const KeyModifierRightGUI + const KeyModifierRightShift + type KeySymbol struct + Keycode KeyCode + Modifiers KeyModifiers + Scancode ScanCode + type KeyboardEvent struct + KeySymbol KeySymbol + Pressed bool + Repeat uint + Timestamp time.Time + Type EventType + WindowID int + func (e KeyboardEvent) String() string + type MouseButtonEvent struct + Button int + Clicks int + Pressed bool + Timestamp time.Time + Type EventType + Which int + WindowID int + X int + Y int + func (e MouseButtonEvent) String() string + type MouseButtons struct + Left bool + Middle bool + Right bool + X1 bool + X2 bool + func (b MouseButtons) String() string + type MouseMotionEvent struct + Buttons MouseButtons + DeltaX int + DeltaY int + Timestamp time.Time + Type EventType + Which int + WindowID int + X int + Y int + func (e MouseMotionEvent) String() string + type MultiGestureEvent struct + Angle float32 + Distance float32 + NumFingers uint16 + Padding uint16 + Timestamp time.Time + TouchID TouchID + Type EventType + X float32 + Y float32 + func (e MultiGestureEvent) String() string + type Palette struct + type PixelFormat uint32 + var PixelFormatABGR32 PixelFormat + var PixelFormatARGB32 PixelFormat + var PixelFormatBGRA32 PixelFormat + var PixelFormatRGBA32 PixelFormat + func (f PixelFormat) IsFourCC() bool + func (f PixelFormat) PixelType(format int) PixelType + type PixelFormatS struct + Amask uint32 + Bmask uint32 + Gmask uint32 + Rmask uint32 + func AllocFormat(format PixelFormat) (*PixelFormatS, error) + func (f *PixelFormatS) Free() + func (f PixelFormatS) BytesPerPixel() int + func (f PixelFormatS) Format() PixelFormat + type PixelType uint8 + const PixelTypeArrayFloat16 + const PixelTypeArrayFloat32 + const PixelTypeArrayUnsigned16 + const PixelTypeArrayUnsigned32 + const PixelTypeArrayUnsigned8 + const PixelTypeIndex1 + const PixelTypeIndex4 + const PixelTypeIndex8 + const PixelTypePacked16 + const PixelTypePacked32 + const PixelTypePacked8 + const PixelTypeUnknown + type Point struct + X int + Y int + type RWOps C.struct_SDL_RWops + func AllocRW() (*RWOps, error) + func RWFromConstMem(mem unsafe.Pointer, size int) (*RWOps, error) + func RWFromFile(file, mode string) (*RWOps, error) + func RWFromMem(mem unsafe.Pointer, size int) (*RWOps, error) + func (o *RWOps) Close() error + func (o *RWOps) Read(p []byte) (int, error) + func (o *RWOps) Seek(offset int64, whence int) (int64, error) + func (o *RWOps) Size() int64 + func (o *RWOps) Write(p []byte) (int, error) + type RWOpsType uint32 + const RWOpsJNIFile + const RWOpsMemory + const RWOpsMemoryReadOnly + const RWOpsStdFile + const RWOpsUnknown + const RWOpsWin32File + type Rect struct + H int + W int + X int + Y int + func IntersectRect(a, b Rect) (Rect, bool) + type Renderer C.struct_SDL_Renderer + func CreateRenderer(window *Window, index int, flags RendererFlags) (*Renderer, error) + func (r *Renderer) Clear() error + func (r *Renderer) Copy(texture *Texture, srcRect, dstRect *Rect) error + func (r *Renderer) CopyEx(texture *Texture, srcRect, dstRect *Rect, angle float64, center *Point, ...) error + func (r *Renderer) CreateTextureFromSurface(surface *Surface) (*Texture, error) + func (r *Renderer) Destroy() + func (r *Renderer) DrawLine(x1, y1, x2, y2 int) error + func (r *Renderer) DrawLines(points []*Point) error + func (r *Renderer) DrawPoint(x, y int) error + func (r *Renderer) DrawPoints(points []*Point) error + func (r *Renderer) DrawRect(rect *Rect) error + func (r *Renderer) DrawRects(rects []*Rect) error + func (r *Renderer) GetDrawColor() (red, green, blue, alpha uint8, err error) + func (r *Renderer) Present() + func (r *Renderer) SetDrawColor(red, green, blue, alpha uint8) error + type RendererFlags uint32 + const RendererAccelerated + const RendererPresentVSync + const RendererSoftware + const RendererTargetTexture + type RendererFlip uint32 + const FlipHorizontal + const FlipNone + const FlipVertical + type RendererInfo struct + Flags uint32 + MaxTextureHeight int32 + MaxTextureWidth int32 + Name string + NumTextureFormats uint32 + TextureFormats [16]uint32 + type ScanCode uint + const ScanCode0 + const ScanCode1 + const ScanCode2 + const ScanCode3 + const ScanCode4 + const ScanCode5 + const ScanCode6 + const ScanCode7 + const ScanCode8 + const ScanCode9 + const ScanCodeA + const ScanCodeAgain + const ScanCodeAlternateErase + const ScanCodeApostrophe + const ScanCodeApplication + const ScanCodeApplication1 + const ScanCodeApplication2 + const ScanCodeApplicationControlBack + const ScanCodeApplicationControlBookmarks + const ScanCodeApplicationControlForward + const ScanCodeApplicationControlHome + const ScanCodeApplicationControlRefresh + const ScanCodeApplicationControlSearch + const ScanCodeApplicationControlStop + const ScanCodeAudioFastForward + const ScanCodeAudioMute + const ScanCodeAudioNext + const ScanCodeAudioPlay + const ScanCodeAudioPrevious + const ScanCodeAudioRewind + const ScanCodeAudioStop + const ScanCodeB + const ScanCodeBackslash + const ScanCodeBackspace + const ScanCodeBrightnessDown + const ScanCodeBrightnessUp + const ScanCodeC + const ScanCodeCalculator + const ScanCodeCancel + const ScanCodeCapsLock + const ScanCodeClear + const ScanCodeClearAgain + const ScanCodeComma + const ScanCodeComputer + const ScanCodeCopy + const ScanCodeCrSel + const ScanCodeCurrencySubUnit + const ScanCodeCurrencyUnit + const ScanCodeCut + const ScanCodeD + const ScanCodeDecimalSeparator + const ScanCodeDelete + const ScanCodeDisplaySwitch + const ScanCodeDown + const ScanCodeE + const ScanCodeEject + const ScanCodeEnd + const ScanCodeEquals + const ScanCodeEscape + const ScanCodeExSel + const ScanCodeExecute + const ScanCodeF + const ScanCodeF1 + const ScanCodeF10 + const ScanCodeF11 + const ScanCodeF12 + const ScanCodeF13 + const ScanCodeF14 + const ScanCodeF15 + const ScanCodeF16 + const ScanCodeF17 + const ScanCodeF18 + const ScanCodeF19 + const ScanCodeF2 + const ScanCodeF20 + const ScanCodeF21 + const ScanCodeF22 + const ScanCodeF23 + const ScanCodeF24 + const ScanCodeF3 + const ScanCodeF4 + const ScanCodeF5 + const ScanCodeF6 + const ScanCodeF7 + const ScanCodeF8 + const ScanCodeF9 + const ScanCodeFind + const ScanCodeG + const ScanCodeGrave + const ScanCodeH + const ScanCodeHelp + const ScanCodeHome + const ScanCodeI + const ScanCodeInsert + const ScanCodeInternational1 + const ScanCodeInternational2 + const ScanCodeInternational3 + const ScanCodeInternational4 + const ScanCodeInternational5 + const ScanCodeInternational6 + const ScanCodeInternational7 + const ScanCodeInternational8 + const ScanCodeInternational9 + const ScanCodeJ + const ScanCodeK + const ScanCodeKeyPad0 + const ScanCodeKeyPad00 + const ScanCodeKeyPad000 + const ScanCodeKeyPad1 + const ScanCodeKeyPad2 + const ScanCodeKeyPad3 + const ScanCodeKeyPad4 + const ScanCodeKeyPad5 + const ScanCodeKeyPad6 + const ScanCodeKeyPad7 + const ScanCodeKeyPad8 + const ScanCodeKeyPad9 + const ScanCodeKeyPadA + const ScanCodeKeyPadAmpersand + const ScanCodeKeyPadAt + const ScanCodeKeyPadB + const ScanCodeKeyPadBackspace + const ScanCodeKeyPadBinary + const ScanCodeKeyPadC + const ScanCodeKeyPadClear + const ScanCodeKeyPadClearEntry + const ScanCodeKeyPadColon + const ScanCodeKeyPadComma + const ScanCodeKeyPadD + const ScanCodeKeyPadDecimal + const ScanCodeKeyPadDivide + const ScanCodeKeyPadDoubleAmpersand + const ScanCodeKeyPadDoubleVerticalBar + const ScanCodeKeyPadE + const ScanCodeKeyPadEnter + const ScanCodeKeyPadEquals + const ScanCodeKeyPadEqualsAS400 + const ScanCodeKeyPadExclamationMark + const ScanCodeKeyPadF + const ScanCodeKeyPadGreater + const ScanCodeKeyPadHash + const ScanCodeKeyPadHexadecimal + const ScanCodeKeyPadLeftBrace + const ScanCodeKeyPadLeftParenthesis + const ScanCodeKeyPadLess + const ScanCodeKeyPadMemoryAdd + const ScanCodeKeyPadMemoryClear + const ScanCodeKeyPadMemoryDivide + const ScanCodeKeyPadMemoryMultiply + const ScanCodeKeyPadMemoryRecall + const ScanCodeKeyPadMemoryStore + const ScanCodeKeyPadMemorySubtract + const ScanCodeKeyPadMinus + const ScanCodeKeyPadMultiply + const ScanCodeKeyPadOctal + const ScanCodeKeyPadPercent + const ScanCodeKeyPadPeriod + const ScanCodeKeyPadPlus + const ScanCodeKeyPadPlusMinus + const ScanCodeKeyPadPower + const ScanCodeKeyPadRightBrace + const ScanCodeKeyPadRightParenthesis + const ScanCodeKeyPadSpace + const ScanCodeKeyPadTab + const ScanCodeKeyPadVerticalBar + const ScanCodeKeyPadXor + const ScanCodeKeyboardIlluminationDown + const ScanCodeKeyboardIlluminationToggle + const ScanCodeKeyboardIlluminationUp + const ScanCodeL + const ScanCodeLanguage1 + const ScanCodeLanguage2 + const ScanCodeLanguage3 + const ScanCodeLanguage4 + const ScanCodeLanguage5 + const ScanCodeLanguage6 + const ScanCodeLanguage7 + const ScanCodeLanguage8 + const ScanCodeLanguage9 + const ScanCodeLeft + const ScanCodeLeftAlt + const ScanCodeLeftBracket + const ScanCodeLeftControl + const ScanCodeLeftGUI + const ScanCodeLeftShift + const ScanCodeM + const ScanCodeMail + const ScanCodeMediaSelect + const ScanCodeMenu + const ScanCodeMinus + const ScanCodeMode + const ScanCodeMute + const ScanCodeN + const ScanCodeNonUSBackslash + const ScanCodeNonUSHash + const ScanCodeNumLockClear + const ScanCodeO + const ScanCodeOper + const ScanCodeOut + const ScanCodeP + const ScanCodePageDown + const ScanCodePageUp + const ScanCodePaste + const ScanCodePause + const ScanCodePeriod + const ScanCodePower + const ScanCodePrintScreen + const ScanCodePrior + const ScanCodeQ + const ScanCodeR + const ScanCodeReturn + const ScanCodeReturn2 + const ScanCodeRight + const ScanCodeRightAlt + const ScanCodeRightBracket + const ScanCodeRightControl + const ScanCodeRightGUI + const ScanCodeRightShift + const ScanCodeS + const ScanCodeScrollLock + const ScanCodeSelect + const ScanCodeSemicolon + const ScanCodeSeparator + const ScanCodeSlash + const ScanCodeSleep + const ScanCodeSpace + const ScanCodeStop + const ScanCodeSystemRequest + const ScanCodeT + const ScanCodeTab + const ScanCodeThousandsSeparator + const ScanCodeU + const ScanCodeUndo + const ScanCodeUnknown + const ScanCodeUp + const ScanCodeV + const ScanCodeVolumeDown + const ScanCodeVolumeUp + const ScanCodeW + const ScanCodeWWW + const ScanCodeX + const ScanCodeY + const ScanCodeZ + type SubsystemType C.SDL_SYSWM_TYPE + const SubsystemAndroid + const SubsystemCocoa + const SubsystemDirectFB + const SubsystemMir + const SubsystemUIKit + const SubsystemUnknown + const SubsystemVivante + const SubsystemWayland + const SubsystemWinRT + const SubsystemWindows + const SubsystemX11 + func (s SubsystemType) String() string + type Surface C.struct_SDL_Surface + func (s *Surface) AlphaMod() (a uint8, err error) + func (s *Surface) At(x, y int) color.Color + func (s *Surface) BlitSurface(srcRect *Rect, dst *Surface, dstRect *Rect) error + func (s *Surface) Bounds() image.Rectangle + func (s *Surface) ClipRect() Rect + func (s *Surface) ColorMod() (r, g, b uint8, err error) + func (s *Surface) ColorModel() color.Model + func (s *Surface) FillRect(rect *Rect, color uint32) error + func (s *Surface) FillRects(rects []*Rect, color uint32) error + func (s *Surface) Free() + func (s *Surface) Lock() error + func (s *Surface) Pixels() unsafe.Pointer + func (s *Surface) SetAlphaMod(a uint8) error + func (s *Surface) SetClipRect(r *Rect) bool + func (s *Surface) SetColorMod(r, g, b uint8) error + func (s *Surface) Unlock() + func (s Surface) Format() PixelFormatS + type Texture C.struct_SDL_Texture + func (t *Texture) Destroy() + type TextureAccess uint32 + const TextureAccessStatic + const TextureAccessStreaming + const TextureAccessTarget + type TextureModulate uint32 + const TextureModulateAlpha + const TextureModulateColor + const TextureModulateNone + type TouchFingerEvent struct + DeltaX float32 + DeltaY float32 + FingerID FingerID + Pressure float32 + Timestamp time.Time + TouchID TouchID + Type EventType + X float32 + Y float32 + func (e TouchFingerEvent) String() string + type TouchID int64 + type Version struct + Major uint8 + Minor uint8 + Patch uint8 + func GetVersion() Version + type WMInfo struct + Subsystem SubsystemType + Version Version + type WMInfoCocoa struct + Subsystem SubsystemType + Version Version + Window uintptr + type WMInfoWin32 struct + DeviceContext uintptr + Instance uintptr + Subsystem SubsystemType + Version Version + Window uintptr + type WMInfoXlib struct + Display uintptr + Subsystem SubsystemType + Version Version + Window uintptr + type Window C.struct_SDL_Window + func CreateWindow(title string, x, y, w, h int, flags WindowFlags) (*Window, error) + func (w *Window) Destroy() + func (w *Window) GetWMInfo() (WMInfo, error) + func (w *Window) PixelFormat() (PixelFormat, error) + func (w *Window) Surface() (*Surface, error) + func (w *Window) UpdateSurface() error + type WindowEvent struct + Data1 unsafe.Pointer + Data2 unsafe.Pointer + Event WindowEventID + Timestamp time.Time + Type EventType + WindowID int + func (e WindowEvent) String() string + type WindowEventID uint8 + const WindowEventClose + const WindowEventExposed + const WindowEventFocusGained + const WindowEventFocusLost + const WindowEventHidden + const WindowEventHitTest + const WindowEventMaximized + const WindowEventMinimized + const WindowEventMouseEntered + const WindowEventMouseLeft + const WindowEventMoved + const WindowEventNone + const WindowEventResized + const WindowEventRestored + const WindowEventShown + const WindowEventSizeChanged + const WindowEventTakeFocus + func (i WindowEventID) String() string + type WindowFlags uint32 + const WindowAllowHighDPI + const WindowAlwaysOnTop + const WindowBorderless + const WindowForeign + const WindowFullscreen + const WindowFullscreenDesktop + const WindowHidden + const WindowInputFocus + const WindowInputGrabbed + const WindowMaximized + const WindowMinimized + const WindowMouseCapture + const WindowMouseFocus + const WindowOpenGL + const WindowPopupMenu + const WindowResizable + const WindowShown + const WindowSkipTaskbar + const WindowTooltip + const WindowUtility + const WindowVulkan