Documentation ¶
Index ¶
- Constants
- Variables
- func Btoi(b bool) int
- func GetRevisionNumber() int
- func IsLittleEndian() bool
- func Log(str string, args ...any)
- func MasksToPixelFormatEnum(bpp int, rmask, gmask, bmask, amask uint32) uint
- func SDL_AddEventWatch(filter SDL_EventFilterCallback, userdata any)
- func SDL_AddHintCallback(name string, fn HintCallback, data interface{})
- func SDL_AudioInit(driverName string) int
- func SDL_AudioQuit()
- func SDL_AudioStreamAvailable(stream *SDL_AudioStream) int
- func SDL_AudioStreamClear(stream *SDL_AudioStream)
- func SDL_AudioStreamFlush(stream *SDL_AudioStream) int
- func SDL_AudioStreamGet(stream *SDL_AudioStream, buf []byte, bufLen int) int
- func SDL_AudioStreamPut(stream *SDL_AudioStream, buf []byte, bufLen int) int
- func SDL_AudoiStreamFree(stream *SDL_AudioStream)
- func SDL_BitsPerPixel(format uint32) int
- func SDL_BlitScaled(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
- func SDL_BlitSurface(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
- func SDL_BuildAudioCVT(cvt *SDL_AudioCVT, srcFormat SDL_AudioFormat, srcChannels uint8, srcRate int, ...) (converted int)
- func SDL_BytesPerPixel(format uint32) int
- func SDL_COMPILEDVERSION() int
- func SDL_CalculateGammaRamp(gamma float32, ramp *[256]uint16)
- func SDL_CaptureMouse(toggle SDL_bool) int
- func SDL_ClearComposition()
- func SDL_ClearError()
- func SDL_ClearHints()
- func SDL_ClearQueuedAudio(dev SDL_AudioDeviceID)
- func SDL_CloseAudio()
- func SDL_CloseAudioDevice(dev SDL_AudioDeviceID)
- func SDL_ConvertAudio(cvt *SDL_AudioCVT) int
- func SDL_ConvertPixels(width, height int32, srcFormat uint32, src unsafe.Pointer, srcPitch int, ...) int
- func SDL_CreateArrayDataStructures[T SDL_DataStructures](mp *PX_memorypool, d []T) *[]T
- func SDL_CreateDataStructures[T SDL_DataStructures](mp *PX_memorypool, d T) *T
- func SDL_CreateWindowAndRenderer(w, h int32, flags SDL_WindowFlags, window *SDL_Window, renderer *SDL_Renderer) int
- func SDL_DEFINE_PIXELFORMAT[T int32 | uint32](type_, order, layout, bits, bytes T) uint32
- func SDL_DelEventWatch(filter SDL_EventFilterCallback, userdata any)
- func SDL_DelHintCallback(name string)
- func SDL_Delay(ms uint32)
- func SDL_DequeueAudio(dev SDL_AudioDeviceID, data []byte, len uint32) uint32
- func SDL_DestroyArrayDataStructures[T SDL_DataStructures](mp *PX_memorypool, d *[]T)
- func SDL_DestroyDataStructures[T SDL_DataStructures](mp *PX_memorypool, d *T)
- func SDL_DestroyRenderer(renderer *SDL_Renderer)
- func SDL_DestroyTexture(texture *SDL_Texture)
- func SDL_DestroyWindow(window *SDL_Window)
- func SDL_DisableScreenSaver()
- func SDL_EnableScreenSaver()
- func SDL_EncloseFPoints(points []SDL_FPoint, count int32, clip *SDL_FRect, result *SDL_FRect) bool
- func SDL_EnclosePoints(points []SDL_Point, count int32, clip *SDL_Rect, result *SDL_Rect) bool
- func SDL_Error(code SDL_errorcode)
- func SDL_EventConvert[T SDL_EventStructures, T2 SDL_EventStructures](e *T, _ T2) *T2
- func SDL_EventState(eventType SDL_EventType, state int) uint8
- func SDL_FRectEmpty(a *SDL_FRect) bool
- func SDL_FRectEquals(a *SDL_FRect, b *SDL_FRect) bool
- func SDL_FRectEqualsEpsilon(a *SDL_FRect, b *SDL_FRect, epsilon float32) bool
- func SDL_FillRect(surface *SDL_Surface, rect *SDL_Rect, color uint32) int
- func SDL_FillRects(surface *SDL_Surface, rects []SDL_Rect, color uint32) int
- func SDL_FilterEvents(filter SDL_EventFilterCallback, userdata any)
- func SDL_FlashWindow(window *SDL_Window, operation SDL_FlashOperation) int
- func SDL_FlushEvent(eventType SDL_EventType)
- func SDL_FlushEvents(minType SDL_EventType, maxType SDL_EventType)
- func SDL_FreeCursor(cursor *SDL_Cursor)
- func SDL_FreeFormat(format *SDL_PixelFormat)
- func SDL_FreePalette(palette *SDL_Palette)
- func SDL_FreeRW(rw *SDL_RWops)
- func SDL_FreeSurface(surface *SDL_Surface)
- func SDL_FreeWAV(audioBuf []uint8)
- func SDL_GL_BindTexture(texture *SDL_Texture, texw, texh *float32) int
- func SDL_GL_DeleteContext(context SDL_GLContext)
- func SDL_GL_ExtensionSupported(extension string) bool
- func SDL_GL_GetAttribute(attr SDL_GLattr, value *int) int
- func SDL_GL_GetDrawableSize(window *SDL_Window, w, h *int32)
- func SDL_GL_GetProcAddress(proc string) unsafe.Pointer
- func SDL_GL_GetSwapInterval() int
- func SDL_GL_LoadLibrary(path string) int
- func SDL_GL_MakeCurrent(window *SDL_Window, glcontext SDL_GLContext) int
- func SDL_GL_SetAttribute(attr SDL_GLattr, value int) int
- func SDL_GL_SetSwapInterval(interval int) int
- func SDL_GL_SwapWindow(window *SDL_Window)
- func SDL_GL_UnbindTexture(texture *SDL_Texture) int
- func SDL_GL_UnloadLibrary()
- func SDL_GUIDToString(guid SDL_GUID, pszGUID []byte, cbGUID int)
- func SDL_GameControllerAddMapping(mappingString string) int
- func SDL_GameControllerClose(ctrl *SDL_GameController)
- func SDL_GameControllerEventState(state int) int
- func SDL_GameControllerGetAppleSFSymbolsNameForAxis(ctrl *SDL_GameController, axis SDL_GameControllerAxis) (sfSymbolsName string)
- func SDL_GameControllerGetAppleSFSymbolsNameForButton(ctrl *SDL_GameController, button SDL_GameControllerButton) (sfSymbolsName string)
- func SDL_GameControllerGetAttached(ctrl *SDL_GameController) bool
- func SDL_GameControllerGetAxis(ctrl *SDL_GameController, axis SDL_GameControllerAxis) int16
- func SDL_GameControllerGetButton(ctrl *SDL_GameController, btn SDL_GameControllerButton) byte
- func SDL_GameControllerGetFirmwareVersion(ctrl *SDL_GameController) uint16
- func SDL_GameControllerGetNumTouchpadFingers(ctrl *SDL_GameController, touchpad int) int
- func SDL_GameControllerGetNumTouchpads(ctrl *SDL_GameController) int
- func SDL_GameControllerGetPlayerIndex(ctrl *SDL_GameController) int
- func SDL_GameControllerGetProduct(ctrl *SDL_GameController) int
- func SDL_GameControllerGetProductVersion(ctrl *SDL_GameController) int
- func SDL_GameControllerGetSensorData(ctrl *SDL_GameController, typ SDL_SensorType, data []float32, numValues int) int
- func SDL_GameControllerGetSensorDataRate(ctrl *SDL_GameController, typ SDL_SensorType) (rate float32)
- func SDL_GameControllerGetSerial(ctrl *SDL_GameController) string
- func SDL_GameControllerGetStringForAxis(axis SDL_GameControllerAxis) string
- func SDL_GameControllerGetStringForButton(btn SDL_GameControllerButton) string
- func SDL_GameControllerGetTouchpadFinger(ctrl *SDL_GameController, touchpad, finger int, state *uint8, ...) int
- func SDL_GameControllerGetVendor(ctrl *SDL_GameController) int
- func SDL_GameControllerHasAxis(ctrl *SDL_GameController, axis SDL_GameControllerAxis) bool
- func SDL_GameControllerHasButton(ctrl *SDL_GameController, btn SDL_GameControllerButton) bool
- func SDL_GameControllerHasLED(ctrl *SDL_GameController) bool
- func SDL_GameControllerHasRumble(ctrl *SDL_GameController) bool
- func SDL_GameControllerHasRumbleTriggers(ctrl *SDL_GameController) bool
- func SDL_GameControllerHasSensor(ctrl *SDL_GameController, typ SDL_SensorType) bool
- func SDL_GameControllerIsSensorEnabled(ctrl *SDL_GameController, typ SDL_SensorType) bool
- func SDL_GameControllerMapping(ctrl *SDL_GameController) string
- func SDL_GameControllerMappingForDeviceIndex(index int) string
- func SDL_GameControllerMappingForGUID(guid SDL_JoystickGUID) string
- func SDL_GameControllerMappingForIndex(index int) string
- func SDL_GameControllerName(ctrl *SDL_GameController) string
- func SDL_GameControllerNameForIndex(index int) string
- func SDL_GameControllerNumMappings() int
- func SDL_GameControllerPath(ctrl *SDL_GameController) string
- func SDL_GameControllerPathForIndex(index int) string
- func SDL_GameControllerRumble(ctrl *SDL_GameController, lowFrequencyRumble, highFrequencyRumble uint16, ...) int
- func SDL_GameControllerRumbleTriggers(ctrl *SDL_GameController, leftRumble, rightRumble uint16, durationMS uint32) int
- func SDL_GameControllerSendEffect(ctrl *SDL_GameController, data []byte) int
- func SDL_GameControllerSetLED(ctrl *SDL_GameController, red, green, blue uint8) int
- func SDL_GameControllerSetPlayerIndex(ctrl *SDL_GameController, playerIndex int)
- func SDL_GameControllerSetSensorEnabled(ctrl *SDL_GameController, typ SDL_SensorType, enabled bool) int
- func SDL_GameControllerUpdate()
- func SDL_GetAudioDeviceName(index int32, isCapture int32) string
- func SDL_GetAudioDeviceSpec(index int, isCapture int, spec *SDL_AudioSpec) int
- func SDL_GetAudioDriver(index int) string
- func SDL_GetBasePath() string
- func SDL_GetCPUCacheLineSize() int
- func SDL_GetCPUCount() int
- func SDL_GetClipRect(surface *SDL_Surface, rect *SDL_Rect)
- func SDL_GetClipboardText() string
- func SDL_GetColorKey(surface *SDL_Surface, key *uint32) int
- func SDL_GetCurrentAudioDriver() string
- func SDL_GetCurrentDisplayMode(displayIndex int, mode *SDL_DisplayMode) int
- func SDL_GetCurrentVideoDriver() string
- func SDL_GetDefaultAudioInfo(name *[]byte, spec *SDL_AudioSpec, isCapture int) int
- func SDL_GetDesktopDisplayMode(displayIndex int, mode *SDL_DisplayMode) int
- func SDL_GetDisplayBounds(displayIndex int, rect *SDL_Rect) int
- func SDL_GetDisplayDPI(displayIndex int, ddpi, hdpi, vdpi *float32) int
- func SDL_GetDisplayMode(displayIndex int, modeIndex int, mode *SDL_DisplayMode) int
- func SDL_GetDisplayName(displayIndex int) string
- func SDL_GetDisplayUsableBounds(displayIndex int, rect *SDL_Rect) int
- func SDL_GetError() error
- func SDL_GetErrorMsg(maxlen int) error
- func SDL_GetEventFilter(filter *SDL_EventFilterCallback, userdata *any) bool
- func SDL_GetGlobalMouseState(x, y *int32) uint32
- func SDL_GetHint(name string) string
- func SDL_GetKeyName(code SDL_Keycode) string
- func SDL_GetKeyboardState(numkeys *int) []uint8
- func SDL_GetMemoryPool() *PX_memorypool
- func SDL_GetMouseState(x, y *int32) uint32
- func SDL_GetNumAudioDevices(isCapture int32) int
- func SDL_GetNumAudioDrivers() int
- func SDL_GetNumDisplayModes(displayIndex int) int
- func SDL_GetNumRenderDrivers() int
- func SDL_GetNumTouchDevices() int
- func SDL_GetNumTouchFingers(id SDL_TouchID) int
- func SDL_GetNumVideoDisplays() int
- func SDL_GetNumVideoDrivers() int
- func SDL_GetPerformanceCounter() uint64
- func SDL_GetPerformanceFrequency() uint64
- func SDL_GetPixelFormatName(format uint) string
- func SDL_GetPlatform() string
- func SDL_GetPointDisplayIndex(p *SDL_Point) int
- func SDL_GetPrefPath(org, app string) string
- func SDL_GetQueuedAudioSize(dev SDL_AudioDeviceID) uint32
- func SDL_GetRGB(pixel uint32, format *SDL_PixelFormat, r, g, b *uint8)
- func SDL_GetRGBA(pixel uint32, format *SDL_PixelFormat, r, g, b, a *uint8)
- func SDL_GetRectDisplayIndex(r *SDL_Rect) int
- func SDL_GetRelativeMouseMode() bool
- func SDL_GetRelativeMouseState(x, y *int32) uint32
- func SDL_GetRenderDrawBlendMode(renderer *SDL_Renderer, bm *SDL_BlendMode) int
- func SDL_GetRenderDrawColor(renderer *SDL_Renderer, r, g, b, a *uint8) int
- func SDL_GetRenderDriverInfo(index int, info *SDL_RendererInfo) int
- func SDL_GetRendererInfo(renderer *SDL_Renderer, info *SDL_RendererInfo) int
- func SDL_GetRendererOutputSize(renderer *SDL_Renderer, w, h *int32) int
- func SDL_GetRevision() string
- func SDL_GetScancodeName(code SDL_Scancode) string
- func SDL_GetSurfaceAlphaMod(surface *SDL_Surface, alpha *uint8) int
- func SDL_GetSurfaceBlendMode(surface *SDL_Surface, bm *SDL_BlendMode) int
- func SDL_GetSurfaceColorMod(surface *SDL_Surface, r, g, b *uint8) int
- func SDL_GetSystemRAM() int
- func SDL_GetTextureAlphaMod(texture *SDL_Texture, alpha *uint8) int
- func SDL_GetTextureBlendMode(texture *SDL_Texture, bm *SDL_BlendMode) int
- func SDL_GetTextureScaleMode(texture *SDL_Texture, sm *SDL_ScaleMode) int
- func SDL_GetTextureUserData(texture *SDL_Texture) (userdata unsafe.Pointer)
- func SDL_GetTicks() uint32
- func SDL_GetVersion(v *SDL_version)
- func SDL_GetVideoDriver(index int) string
- func SDL_GetWindowBrightness(window *SDL_Window) float32
- func SDL_GetWindowData(window *SDL_Window, name string) unsafe.Pointer
- func SDL_GetWindowDisplayIndex(window *SDL_Window) int
- func SDL_GetWindowDisplayMode(window *SDL_Window, mode *SDL_DisplayMode) int
- func SDL_GetWindowGammaRamp(window *SDL_Window, red, green, blue *[256]uint16) int
- func SDL_GetWindowGrab(window *SDL_Window) bool
- func SDL_GetWindowICCProfile(window *SDL_Window, size *uint) unsafe.Pointer
- func SDL_GetWindowID(window *SDL_Window) uint32
- func SDL_GetWindowKeyboardGrab(window *SDL_Window, grabbed SDL_bool)
- func SDL_GetWindowMaximumSize(window *SDL_Window, w, h *int32)
- func SDL_GetWindowMinimumSize(window *SDL_Window, w, h *int32)
- func SDL_GetWindowOpacity(window *SDL_Window, opacity *float32) int
- func SDL_GetWindowPixelFormat(window *SDL_Window) uint32
- func SDL_GetWindowPosition(window *SDL_Window, x, y *int32)
- func SDL_GetWindowSize(window *SDL_Window, w, h *int32)
- func SDL_GetWindowTitle(window *SDL_Window) string
- func SDL_HapticClose(h *SDL_Haptic)
- func SDL_HapticDestroyEffect(h *SDL_Haptic, effect int)
- func SDL_HapticEffectSupported(h *SDL_Haptic, he SDL_HapticEffect) bool
- func SDL_HapticGetEffectStatus(h *SDL_Haptic, effect int) int
- func SDL_HapticIndex(h *SDL_Haptic) int
- func SDL_HapticName(index int) string
- func SDL_HapticNewEffect(h *SDL_Haptic, he SDL_HapticEffect) int
- func SDL_HapticNumAxes(h *SDL_Haptic) int
- func SDL_HapticNumEffects(h *SDL_Haptic) int
- func SDL_HapticNumEffectsPlaying(h *SDL_Haptic) int
- func SDL_HapticOpened(index int) bool
- func SDL_HapticPause(h *SDL_Haptic) int
- func SDL_HapticQuery(h *SDL_Haptic) uint32
- func SDL_HapticRumbleInit(h *SDL_Haptic) int
- func SDL_HapticRumblePlay(h *SDL_Haptic, strength float32, length uint32) int
- func SDL_HapticRumbleStop(h *SDL_Haptic) int
- func SDL_HapticRumbleSupported(h *SDL_Haptic) bool
- func SDL_HapticRunEffect(h *SDL_Haptic, effect int, iterations uint32) int
- func SDL_HapticSetAutocenter(h *SDL_Haptic, autocenter int) int
- func SDL_HapticSetGain(h *SDL_Haptic, gain int) int
- func SDL_HapticStopAll(h *SDL_Haptic) int
- func SDL_HapticStopEffect(h *SDL_Haptic, effect int) int
- func SDL_HapticUnpause(h *SDL_Haptic) int
- func SDL_HapticUpdateEffect(h *SDL_Haptic, effect int, data SDL_HapticEffect) int
- func SDL_Has3DNow() bool
- func SDL_HasARMSIMD() bool
- func SDL_HasAVX() bool
- func SDL_HasAVX2() bool
- func SDL_HasAVX512F() bool
- func SDL_HasAltiVec() bool
- func SDL_HasClipboardText() bool
- func SDL_HasEvent(eventType SDL_EventType) bool
- func SDL_HasEvents(minType SDL_EventType, maxType SDL_EventType) bool
- func SDL_HasIntersection(a *SDL_Rect, b *SDL_Rect) bool
- func SDL_HasIntersectionF(a *SDL_FRect, b *SDL_FRect) bool
- func SDL_HasMMX() bool
- func SDL_HasNEON() bool
- func SDL_HasRDTSC() bool
- func SDL_HasSSE() bool
- func SDL_HasSSE2() bool
- func SDL_HasSSE3() bool
- func SDL_HasSSE41() bool
- func SDL_HasSSE42() bool
- func SDL_HasScreenKeyboardSupport() bool
- func SDL_HasSurfaceRLE(surface *SDL_Surface) bool
- func SDL_HideWindow(window *SDL_Window)
- func SDL_Init(flags uint32) int
- func SDL_InitSubSystem(flags uint32) int
- func SDL_IntersectFRect(a *SDL_FRect, b *SDL_FRect, result *SDL_FRect) bool
- func SDL_IntersectFRectAndLine(a *SDL_FRect, X1, Y1, X2, Y2 *float32) bool
- func SDL_IntersectRect(a *SDL_Rect, b *SDL_Rect, result *SDL_Rect) bool
- func SDL_IntersectRectAndLine(a *SDL_Rect, X1, Y1, X2, Y2 *int32) bool
- func SDL_InvalidParamError(param string)
- func SDL_IsGameController(index int) bool
- func SDL_IsScreenKeyboardShown(window *SDL_Window) bool
- func SDL_IsScreenSaverEnabled() bool
- func SDL_IsTextInputActive() bool
- func SDL_IsTextInputShown() bool
- func SDL_JoystickAttachVirtual(typ SDL_JoystickType, naxes, nbuttons, nhats int) (deviceIndex int)
- func SDL_JoystickAttachVirtualEx(desc *C.SDL_VirtualJoystickDesc) (deviceIndex int)
- func SDL_JoystickClose(joy *SDL_Joystick)
- func SDL_JoystickDetachVirtual(deviceIndex int) int
- func SDL_JoystickEventState(state int) int
- func SDL_JoystickGetAttached(joy *SDL_Joystick) bool
- func SDL_JoystickGetAxis(joy *SDL_Joystick, axis int) int16
- func SDL_JoystickGetAxisInitialState(joy *SDL_Joystick, axis int, state *int16) (ok bool)
- func SDL_JoystickGetBall(joy *SDL_Joystick, ball int, dx, dy *int32) int
- func SDL_JoystickGetButton(joy *SDL_Joystick, button int) byte
- func SDL_JoystickGetDevicePlayerIndex(index int) int
- func SDL_JoystickGetDeviceProduct(index int) int
- func SDL_JoystickGetDeviceProductVersion(index int) int
- func SDL_JoystickGetDeviceVendor(index int) int
- func SDL_JoystickGetFirmwareVersion(joy *SDL_Joystick) uint16
- func SDL_JoystickGetGUIDString(guid SDL_JoystickGUID, pszGUID []byte, cbGUID int) string
- func SDL_JoystickGetHat(joy *SDL_Joystick, hat int) byte
- func SDL_JoystickGetPlayerIndex(joy *SDL_Joystick) int
- func SDL_JoystickGetProduct(joy *SDL_Joystick) int
- func SDL_JoystickGetProductVersion(joy *SDL_Joystick) int
- func SDL_JoystickGetSerial(joy *SDL_Joystick) string
- func SDL_JoystickGetVendor(joy *SDL_Joystick) int
- func SDL_JoystickHasLED(joy *SDL_Joystick) bool
- func SDL_JoystickHasRumble(joy *SDL_Joystick) bool
- func SDL_JoystickHasRumbleTriggers(joy *SDL_Joystick) bool
- func SDL_JoystickIsHaptic(joy *SDL_Joystick) bool
- func SDL_JoystickIsVirtual(deviceIndex int) bool
- func SDL_JoystickName(joy *SDL_Joystick) string
- func SDL_JoystickNameForIndex(index int) string
- func SDL_JoystickNumAxes(joy *SDL_Joystick) int
- func SDL_JoystickNumBalls(joy *SDL_Joystick) int
- func SDL_JoystickNumButtons(joy *SDL_Joystick) int
- func SDL_JoystickNumHats(joy *SDL_Joystick) int
- func SDL_JoystickPath(joy *SDL_Joystick) string
- func SDL_JoystickPathForIndex(index int) string
- func SDL_JoystickRumble(joy *SDL_Joystick, lowFrequencyRumble, highFrequencyRumble uint16, ...) int
- func SDL_JoystickRumbleTriggers(joy *SDL_Joystick, leftRumble, rightRumble uint16, durationMS uint32) int
- func SDL_JoystickSetLED(joy *SDL_Joystick, red, green, blue uint8) int
- func SDL_JoystickSetPlayerIndex(joy *SDL_Joystick, playerIndex int)
- func SDL_JoystickSetVirtualAxis(joy *SDL_Joystick, axis int, value int16) int
- func SDL_JoystickSetVirtualButton(joy *SDL_Joystick, button int, value uint8) int
- func SDL_JoystickSetVirtualHat(joy *SDL_Joystick, hat int, value uint8) int
- func SDL_JoystickUpdate()
- func SDL_LoadDollarTemplates(t SDL_TouchID, src *SDL_RWops) int
- func SDL_LoadFile(file string, size *int) []byte
- func SDL_LoadFile_RW(rw *SDL_RWops, size *int, freesrc SDL_bool) (data []byte)
- func SDL_LoadFunction(handle SharedObject, name string) unsafe.Pointer
- func SDL_LockAudio()
- func SDL_LockAudioDevice(dev SDL_AudioDeviceID)
- func SDL_LockJoysticks()
- func SDL_LockSensors()
- func SDL_LockSurface(surface *SDL_Surface) int
- func SDL_LockTexture[T SDL_PixelsArray](texture *SDL_Texture, rect *SDL_Rect, pixels *T, pitch *int32) int
- func SDL_LockTextureToSurface(texture *SDL_Texture, rect *SDL_Rect, surface *SDL_Surface) int
- func SDL_LogCritical(category SDL_LogCategory, str string, args ...any)
- func SDL_LogDebug(category SDL_LogCategory, str string, args ...any)
- func SDL_LogError(category SDL_LogCategory, str string, args ...any)
- func SDL_LogInfo(category SDL_LogCategory, str string, args ...any)
- func SDL_LogMessage(category SDL_LogCategory, pri SDL_LogPriority, str string, args ...any)
- func SDL_LogResetPriorities()
- func SDL_LogSetAllPriority(p SDL_LogPriority)
- func SDL_LogSetOutputFunction(f LogOutputFunction, data any)
- func SDL_LogSetPriority(category SDL_LogCategory, p SDL_LogPriority)
- func SDL_LogVerbose(category SDL_LogCategory, str string, args ...any)
- func SDL_LogWarn(category SDL_LogCategory, str string, args ...any)
- func SDL_LowerBlit(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
- func SDL_LowerBlitScaled(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
- func SDL_MapRGB(format *SDL_PixelFormat, r, g, b uint8) uint32
- func SDL_MapRGBA(format *SDL_PixelFormat, r, g, b, a uint8) uint32
- func SDL_MaximizeWindow(window *SDL_Window)
- func SDL_MinimizeWindow(window *SDL_Window)
- func SDL_MixAudio(dst, src *uint8, len uint32, volume int)
- func SDL_MixAudioFormat(dst, src *uint8, format SDL_AudioFormat, len uint32, volume int)
- func SDL_MouseIsHaptic() bool
- func SDL_NumHaptics() int
- func SDL_NumJoysticks() int
- func SDL_NumSensors() int
- func SDL_OpenAudio(desired, obtained *SDL_AudioSpec) int
- func SDL_OpenURL(url string) int
- func SDL_OutOfMemory()
- func SDL_PauseAudio(pauseOn int32)
- func SDL_PauseAudioDevice(dev SDL_AudioDeviceID, pauseOn int32)
- func SDL_PeepEvents(events []SDL_Event, numevents int, action SDL_eventaction, ...) int
- func SDL_PixelFormatEnumToMasks(format uint, bpp *int, rmask, gmask, bmask, amask *uint32) bool
- func SDL_PointInFRect(p *SDL_FPoint, r *SDL_FRect) bool
- func SDL_PointInRect(p *SDL_Point, r *SDL_Rect) bool
- func SDL_PollEvent(event *SDL_Event) bool
- func SDL_PremultiplyAlpha(width, height int, srcFormat uint32, src []byte, srcPitch int, ...) int
- func SDL_PumpEvents()
- func SDL_PushEvent(event *SDL_Event)
- func SDL_QueryTexture(texture *SDL_Texture, format *uint32, access *int, w *int32, h *int32) int
- func SDL_QueueAudio(dev SDL_AudioDeviceID, data []byte, len uint32) int
- func SDL_Quit()
- func SDL_QuitSubSystem(flags uint32)
- func SDL_RWclose(rw *SDL_RWops) int
- func SDL_RWread(rw *SDL_RWops, buf []byte) int
- func SDL_RWseek(rw *SDL_RWops, offset int64, whence int32) int64
- func SDL_RWsize(rw *SDL_RWops) int64
- func SDL_RWtell(rw *SDL_RWops) int64
- func SDL_RWwrite(rw *SDL_RWops, buf []byte) int
- func SDL_RaiseWindow(window *SDL_Window)
- func SDL_ReadBE16(rw *SDL_RWops) uint16
- func SDL_ReadBE32(rw *SDL_RWops) uint32
- func SDL_ReadBE64(rw *SDL_RWops) uint64
- func SDL_ReadLE16(rw *SDL_RWops) uint16
- func SDL_ReadLE32(rw *SDL_RWops) uint32
- func SDL_ReadLE64(rw *SDL_RWops) uint64
- func SDL_ReadU8(rw *SDL_RWops) uint8
- func SDL_RecordGesture(t SDL_TouchID) int
- func SDL_RectEmpty(a *SDL_Rect) bool
- func SDL_RectEquals(a *SDL_Rect, b *SDL_Rect) bool
- func SDL_RegisterEvents(numevents int) uint32
- func SDL_RenderClear(renderer *SDL_Renderer) int
- func SDL_RenderCopy(renderer *SDL_Renderer, texture *SDL_Texture, src, dst *SDL_Rect) int
- func SDL_RenderCopyEx(renderer *SDL_Renderer, texture *SDL_Texture, src, dst *SDL_Rect, ...) int
- func SDL_RenderCopyExF(renderer *SDL_Renderer, texture *SDL_Texture, src *SDL_Rect, dst *SDL_FRect, ...) int
- func SDL_RenderCopyF(renderer *SDL_Renderer, texture *SDL_Texture, src *SDL_Rect, dst *SDL_FRect) int
- func SDL_RenderDrawLine(renderer *SDL_Renderer, x1, y1, x2, y2 int32) int
- func SDL_RenderDrawLineF(renderer *SDL_Renderer, x1, y1, x2, y2 float32) int
- func SDL_RenderDrawLines(renderer *SDL_Renderer, points []SDL_Point, count int) int
- func SDL_RenderDrawLinesF(renderer *SDL_Renderer, points []SDL_FPoint, count int) int
- func SDL_RenderDrawPoint(renderer *SDL_Renderer, x, y int32) int
- func SDL_RenderDrawPointF(renderer *SDL_Renderer, x, y float32) int
- func SDL_RenderDrawPoints(renderer *SDL_Renderer, points []SDL_Point, count int) int
- func SDL_RenderDrawPointsF(renderer *SDL_Renderer, points []SDL_FPoint, count int) int
- func SDL_RenderDrawRect(renderer *SDL_Renderer, rect *SDL_Rect) int
- func SDL_RenderDrawRectF(renderer *SDL_Renderer, rect *SDL_FRect) int
- func SDL_RenderDrawRects(renderer *SDL_Renderer, rects []SDL_Rect, count int) int
- func SDL_RenderDrawRectsF(renderer *SDL_Renderer, rects []SDL_FRect, count int) int
- func SDL_RenderFillRect(renderer *SDL_Renderer, rect *SDL_Rect) int
- func SDL_RenderFillRectF(renderer *SDL_Renderer, rect *SDL_FRect) int
- func SDL_RenderFillRects(renderer *SDL_Renderer, rects []SDL_Rect, count int) int
- func SDL_RenderFillRectsF(renderer *SDL_Renderer, rects []SDL_FRect, count int) int
- func SDL_RenderFlush(renderer *SDL_Renderer) int
- func SDL_RenderGeometry(renderer *SDL_Renderer, texture *SDL_Texture, vertices []SDL_Vertex, ...) int
- func SDL_RenderGeometryRaw(renderer *SDL_Renderer, texture *SDL_Texture, xy []float32, xyStride int, ...) int
- func SDL_RenderGetClipRect(renderer *SDL_Renderer, rect *SDL_Rect)
- func SDL_RenderGetIntegerScale(renderer *SDL_Renderer) bool
- func SDL_RenderGetLogicalSize(renderer *SDL_Renderer, w, h *int32)
- func SDL_RenderGetMetalCommandEncoder(renderer *SDL_Renderer) (encoder unsafe.Pointer)
- func SDL_RenderGetMetalLayer(renderer *SDL_Renderer) (layer unsafe.Pointer)
- func SDL_RenderGetScale(renderer *SDL_Renderer, scaleX, scaleY *float32)
- func SDL_RenderGetViewport(renderer *SDL_Renderer, rect *SDL_Rect)
- func SDL_RenderIsClipEnabled(renderer *SDL_Renderer) bool
- func SDL_RenderLogicalToWindow(renderer *SDL_Renderer, logicalX, logicalY float32, windowX, windowY *int)
- func SDL_RenderPresent(renderer *SDL_Renderer)
- func SDL_RenderReadPixels(renderer *SDL_Renderer, rect *SDL_Rect, format uint32, pixels unsafe.Pointer, ...) int
- func SDL_RenderSetClipRect(renderer *SDL_Renderer, rect *SDL_Rect) int
- func SDL_RenderSetIntegerScale(renderer *SDL_Renderer, v SDL_bool) int
- func SDL_RenderSetLogicalSize(renderer *SDL_Renderer, w, h int32) int
- func SDL_RenderSetScale(renderer *SDL_Renderer, scaleX, scaleY float32) int
- func SDL_RenderSetVSync(renderer *SDL_Renderer, vsync SDL_bool) int
- func SDL_RenderSetViewport(renderer *SDL_Renderer, rect *SDL_Rect) int
- func SDL_RenderTargetSupported(renderer *SDL_Renderer) bool
- func SDL_RenderWindowToLogical(renderer *SDL_Renderer, windowX, windowY int, logicalX, logicalY *float32)
- func SDL_ResetHint(name string) bool
- func SDL_RestoreWindow(window *SDL_Window)
- func SDL_SIMDAlloc(memLen int) unsafe.Pointer
- func SDL_SIMDFree(p unsafe.Pointer)
- func SDL_SIMDGetAlignment() int
- func SDL_SIMDRealloc(mem unsafe.Pointer, memLen int) unsafe.Pointer
- func SDL_SaveAllDollarTemplates(src *SDL_RWops) int
- func SDL_SaveBMP_RW(surface *SDL_Surface, dst *SDL_RWops, freeDst SDL_bool) int
- func SDL_SaveDollarTemplate(g SDL_GestureID, src *SDL_RWops) int
- func SDL_SensorClose(sensor *SDL_Sensor)
- func SDL_SensorGetData(sensor *SDL_Sensor, data []float32, numValues int) int
- func SDL_SensorGetDeviceName(deviceIndex int) string
- func SDL_SensorGetDeviceNonPortableType(deviceIndex int) int
- func SDL_SensorGetName(sensor *SDL_Sensor) string
- func SDL_SensorGetNonPortableType(sensor *SDL_Sensor) int
- func SDL_SensorUpdate()
- func SDL_SetAudioCallback(audioSpec *SDL_AudioSpec, callback SDL_AudioCallback, userdata any)
- func SDL_SetClipRect(surface *SDL_Surface, rect *SDL_Rect) bool
- func SDL_SetClipboardText(text string) int
- func SDL_SetColorKey(surface *SDL_Surface, flag SDL_bool, key uint32) int
- func SDL_SetCursor(cursor *SDL_Cursor)
- func SDL_SetError(err error)
- func SDL_SetEventFilter(filter SDL_EventFilterCallback, userdata any)
- func SDL_SetHint(name, value string) bool
- func SDL_SetHintWithPriority(name, value string, hp SDL_HintPriority) bool
- func SDL_SetModState(mod SDL_Keymod)
- func SDL_SetPaletteColors(palette *SDL_Palette, colors []SDL_Color) int
- func SDL_SetPixelFormatPalette(format *SDL_PixelFormat, palette *SDL_Palette) int
- func SDL_SetRelativeMouseMode(enabled SDL_bool) int
- func SDL_SetRenderDrawBlendMode(renderer *SDL_Renderer, bm SDL_BlendMode) int
- func SDL_SetRenderDrawColor(renderer *SDL_Renderer, r, g, b, a uint8) int
- func SDL_SetRenderTarget(renderer *SDL_Renderer, texture *SDL_Texture) int
- func SDL_SetSurfaceAlphaMod(surface *SDL_Surface, alpha uint8) int
- func SDL_SetSurfaceBlendMode(surface *SDL_Surface, bm SDL_BlendMode) int
- func SDL_SetSurfaceColorMod(surface *SDL_Surface, r, g, b uint8) int
- func SDL_SetSurfacePalette(surface *SDL_Surface, palette *SDL_Palette) int
- func SDL_SetSurfaceRLE(surface *SDL_Surface, flag SDL_bool) int
- func SDL_SetTextInputRect(rect *SDL_Rect)
- func SDL_SetTextureAlphaMod(texture *SDL_Texture, alpha uint8) int
- func SDL_SetTextureBlendMode(texture *SDL_Texture, bm SDL_BlendMode) int
- func SDL_SetTextureColorMod(texture *SDL_Texture, r uint8, g uint8, b uint8) int
- func SDL_SetTextureScaleMode(texture *SDL_Texture, sm SDL_ScaleMode) int
- func SDL_SetTextureUserData(texture *SDL_Texture, userdata unsafe.Pointer) int
- func SDL_SetWindowAlwaysOnTop(window *SDL_Window, onTop SDL_bool)
- func SDL_SetWindowBordered(window *SDL_Window, bordered SDL_bool)
- func SDL_SetWindowBrightness(window *SDL_Window, brightness float32) int
- func SDL_SetWindowData(window *SDL_Window, name string, userdata unsafe.Pointer) unsafe.Pointer
- func SDL_SetWindowDisplayMode(window *SDL_Window, mode *SDL_DisplayMode) int
- func SDL_SetWindowFullscreen(window *SDL_Window, flags uint32) int
- func SDL_SetWindowGammaRamp(window *SDL_Window, red, green, blue *[256]uint16) int
- func SDL_SetWindowGrab(window *SDL_Window, grabbed SDL_bool)
- func SDL_SetWindowIcon(window *SDL_Window, icon *SDL_Surface)
- func SDL_SetWindowMaximumSize(window *SDL_Window, maxW, maxH int32)
- func SDL_SetWindowMinimumSize(window *SDL_Window, minW, minH int32)
- func SDL_SetWindowMouseRect(window *SDL_Window, rect *SDL_Rect) int
- func SDL_SetWindowOpacity(window *SDL_Window, opacity float32) int
- func SDL_SetWindowPosition(window *SDL_Window, x, y int32)
- func SDL_SetWindowResizable(window *SDL_Window, resizable SDL_bool)
- func SDL_SetWindowSize(window *SDL_Window, w, h int32)
- func SDL_SetWindowTitle(window *SDL_Window, title string)
- func SDL_ShowCursor(toggle int) int
- func SDL_ShowMessageBox(data *MessageBoxData) (buttonid int32)
- func SDL_ShowSimpleMessageBox(flags SDL_MessageBoxFlags, title, message string, window *SDL_Window) int
- func SDL_ShowWindow(window *SDL_Window)
- func SDL_SoftStretch(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
- func SDL_SoftStretchLinear(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
- func SDL_StartTextInput()
- func SDL_StopTextInput()
- func SDL_UnionFRect(a *SDL_FRect, b *SDL_FRect, result *SDL_FRect)
- func SDL_UnionRect(a *SDL_Rect, b *SDL_Rect, result *SDL_Rect)
- func SDL_UnloadObject(handle SharedObject)
- func SDL_UnlockAudio()
- func SDL_UnlockAudioDevice(dev SDL_AudioDeviceID)
- func SDL_UnlockJoysticks()
- func SDL_UnlockSensors()
- func SDL_UnlockSurface(surface *SDL_Surface)
- func SDL_UnlockTexture(texture *SDL_Texture)
- func SDL_Unsupported()
- func SDL_UpdateNVTexture(texture *SDL_Texture, rect *SDL_Rect, yPlane []byte, yPitch int, ...) int
- func SDL_UpdateTexture[T SDL_PixelsArray](texture *SDL_Texture, rect *SDL_Rect, pixels T, pitch int) int
- func SDL_UpdateWindowSurface(window *SDL_Window) int
- func SDL_UpdateWindowSurfaceRects(window *SDL_Window, rects []SDL_Rect) int
- func SDL_UpdateYUVTexture(texture *SDL_Texture, rect *SDL_Rect, yPlane []byte, yPitch int, uPlane []byte, ...) int
- func SDL_UpperBlit(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
- func SDL_UpperBlitScaled(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
- func SDL_VERSION(v *SDL_version)
- func SDL_VERSIONNUM(x, y, z int) int
- func SDL_VERSION_ATLEAST(x, y, z int) bool
- func SDL_VideoInit(driverName string) int
- func SDL_VideoQuit()
- func SDL_WaitEvent(event *SDL_Event) int
- func SDL_WaitEventTimeout(event *SDL_Event, timeout int) int
- func SDL_WarpMouseGlobal(x, y int32) int
- func SDL_WarpMouseInWindow(window *SDL_Window, x, y int32)
- func SDL_WasInit(flags uint32) uint32
- func SDL_WriteBE16(rw *SDL_RWops, value uint16) uint
- func SDL_WriteBE32(rw *SDL_RWops, value uint32) uint
- func SDL_WriteBE64(rw *SDL_RWops, value uint64) uint
- func SDL_WriteLE16(rw *SDL_RWops, value uint16) uint
- func SDL_WriteLE32(rw *SDL_RWops, value uint32) uint
- func SDL_WriteLE64(rw *SDL_RWops, value uint64) uint
- func SDL_WriteU8(rw *SDL_RWops, value uint8) uint
- func SDL_free(mp *PX_memorypool, paddr unsafe.Pointer)
- func SDL_hid_ble_scan(device *SDL_hid_device, active bool)
- func SDL_hid_close(device *SDL_hid_device)
- func SDL_hid_device_change_count() (n uint32)
- func SDL_hid_exit() int
- func SDL_hid_free_enumeration(info *SDL_hid_device_info)
- func SDL_hid_get_feature_report(device *SDL_hid_device, data []byte) int
- func SDL_hid_get_indexed_string[T []uint16 | []int32](device *SDL_hid_device, index int, str T, maxlen uint) int
- func SDL_hid_get_manufacturer_string[T []uint16 | []int32](device *SDL_hid_device, str T, maxlen uint) int
- func SDL_hid_get_product_string[T []uint16 | []int32](device *SDL_hid_device, str T, maxlen uint) int
- func SDL_hid_get_serial_number_string[T []uint16 | []int32](device *SDL_hid_device, str T, maxlen uint) int
- func SDL_hid_init() int
- func SDL_hid_read(device *SDL_hid_device, data []byte) int
- func SDL_hid_read_timeout(device *SDL_hid_device, data []byte, milliseconds int) int
- func SDL_hid_send_feature_report(device *SDL_hid_device, data []byte) int
- func SDL_hid_set_nonblocking(device *SDL_hid_device, nonblock SDL_bool) int
- func SDL_hid_write(device *SDL_hid_device, data []byte) int
- func SDL_malloc(mp *PX_memorypool, maxlen int) unsafe.Pointer
- func SetDrawColorArray(renderer *SDL_Renderer, bs ...uint8) int
- func SetYUVConversionMode(mode SDL_YUV_CONVERSION_MODE)
- type ABGR1555
- type ABGR4444
- type ABGR8888
- type ARGB1555
- type ARGB4444
- type ARGB8888
- type BGR555
- type BGR565
- type BGR888
- type BGRA4444
- type BGRA5551
- type BGRA8888
- type HintCallback
- type HintCallbackAndData
- type LogOutputFunction
- type MessageBoxButtonData
- type MessageBoxData
- type RGB332
- type RGB444
- type RGB555
- type RGB565
- type RGB888
- type RGBA4444
- type RGBA5551
- type RGBA8888
- type SDL_ArrayOrder
- type SDL_AudioCVT
- type SDL_AudioCallback
- type SDL_AudioDeviceEvent
- type SDL_AudioDeviceID
- type SDL_AudioFilter
- type SDL_AudioFormat
- type SDL_AudioSpec
- type SDL_AudioStatus
- type SDL_AudioStream
- type SDL_AudioWatcher
- type SDL_BitmapOrder
- type SDL_BlendFactor
- type SDL_BlendMode
- type SDL_BlendOperation
- type SDL_BlitMap
- type SDL_Color
- type SDL_CommonEvent
- type SDL_ControllerAxisEvent
- type SDL_ControllerButtonEvent
- type SDL_ControllerDeviceEvent
- type SDL_ControllerSensorEvent
- type SDL_ControllerTouchpadEvent
- type SDL_Cursor
- type SDL_DataStructures
- type SDL_DisplayEvent
- type SDL_DisplayEventID
- type SDL_DisplayMode
- type SDL_DisplayOrientation
- type SDL_DollarGestureEvent
- type SDL_DropEvent
- type SDL_Event
- type SDL_EventFilterCallback
- type SDL_EventStructures
- type SDL_EventType
- type SDL_EventWatcher
- type SDL_FPoint
- type SDL_FRect
- type SDL_Finger
- type SDL_FingerID
- type SDL_FlashOperation
- type SDL_GLContext
- type SDL_GLContextResetNotification
- type SDL_GLattr
- type SDL_GLcontextFlag
- type SDL_GLcontextReleaseFlag
- type SDL_GLprofile
- type SDL_GUID
- type SDL_GameController
- type SDL_GameControllerAxis
- type SDL_GameControllerBindType
- type SDL_GameControllerButton
- type SDL_GameControllerButtonBind
- type SDL_GameControllerType
- type SDL_GestureID
- type SDL_Haptic
- type SDL_HapticCondition
- type SDL_HapticConstant
- type SDL_HapticCustom
- type SDL_HapticDirection
- type SDL_HapticEffect
- type SDL_HapticLeftRight
- type SDL_HapticPeriodic
- type SDL_HapticRamp
- type SDL_HintPriority
- type SDL_HitTest
- type SDL_HitTestResult
- type SDL_JoyAxisEvent
- type SDL_JoyBallEvent
- type SDL_JoyBatteryEvent
- type SDL_JoyButtonEvent
- type SDL_JoyDeviceEvent
- type SDL_JoyHatEvent
- type SDL_Joystick
- type SDL_JoystickGUID
- type SDL_JoystickID
- type SDL_JoystickPowerLevel
- type SDL_JoystickType
- type SDL_KeyCode
- type SDL_KeyboardEvent
- type SDL_Keycode
- type SDL_Keymod
- type SDL_Keysym
- type SDL_Locale
- type SDL_LogCategory
- type SDL_LogOutputFunction
- type SDL_LogPriority
- type SDL_MessageBoxButtonData
- type SDL_MessageBoxButtonFlags
- type SDL_MessageBoxColor
- type SDL_MessageBoxColorScheme
- type SDL_MessageBoxColorType
- type SDL_MessageBoxData
- type SDL_MessageBoxFlags
- type SDL_MetalView
- type SDL_MouseButtonEvent
- type SDL_MouseMotionEvent
- type SDL_MouseWheelDirection
- type SDL_MouseWheelEvent
- type SDL_MultiGestureEvent
- type SDL_OSEvent
- type SDL_PackedLayout
- type SDL_PackedOrder
- type SDL_Palette
- type SDL_PixelFormat
- type SDL_PixelFormatEnum
- type SDL_PixelType
- type SDL_PixelsArray
- type SDL_Point
- type SDL_PowerState
- type SDL_QuitEvent
- type SDL_RWops
- type SDL_Rect
- type SDL_Renderer
- type SDL_RendererFlags
- type SDL_RendererFlip
- type SDL_RendererInfo
- type SDL_ScaleMode
- type SDL_Scancode
- type SDL_Sensor
- type SDL_SensorEvent
- type SDL_SensorID
- type SDL_SensorType
- type SDL_Surface
- func SDL_ConvertSurface(surface *SDL_Surface, fmt *SDL_PixelFormat, flags uint32) *SDL_Surface
- func SDL_ConvertSurfaceFormat(surface *SDL_Surface, pixelFormat uint32, flags uint32) *SDL_Surface
- func SDL_CreateRGBSurface(flags uint32, width, height, depth int32, Rmask, Gmask, Bmask, Amask uint32) *SDL_Surface
- func SDL_CreateRGBSurfaceFrom(pixels unsafe.Pointer, width, height int32, depth, pitch int, ...) *SDL_Surface
- func SDL_CreateRGBSurfaceWithFormat(flags uint32, width, height, depth int32, format uint32) *SDL_Surface
- func SDL_CreateRGBSurfaceWithFormatFrom(pixels unsafe.Pointer, width, height, depth, pitch int32, format uint32) *SDL_Surface
- func SDL_DuplicateSurface(surface *SDL_Surface) (newSurface *SDL_Surface)
- func SDL_GetWindowSurface(window *SDL_Window) *SDL_Surface
- func SDL_LoadBMP(file string) *SDL_Surface
- func SDL_LoadBMP_RW(src *SDL_RWops, freeSrc SDL_bool) *SDL_Surface
- func (surface *SDL_Surface) At(x, y int) color.Color
- func (surface *SDL_Surface) Bounds() image.Rectangle
- func (surface *SDL_Surface) BytesPerPixel() int
- func (surface *SDL_Surface) ColorModel() color.Model
- func (surface *SDL_Surface) Data() []byte
- func (surface *SDL_Surface) HasColorKey() bool
- func (surface *SDL_Surface) MustLock() bool
- func (surface *SDL_Surface) PixelNum() int
- func (surface *SDL_Surface) SaveBMP(file string) int
- func (surface *SDL_Surface) Set(x, y int, c color.Color)
- type SDL_SysWMEvent
- type SDL_SysWMmsg
- type SDL_SystemCursor
- type SDL_TextEditingEvent
- type SDL_TextEditingExtEvent
- type SDL_TextInputEvent
- type SDL_Texture
- type SDL_TextureAccess
- type SDL_TextureModulate
- type SDL_Thread
- type SDL_TimerCallback
- type SDL_TimerID
- type SDL_TouchDeviceType
- type SDL_TouchFingerEvent
- type SDL_TouchID
- type SDL_UserEvent
- type SDL_Vertex
- type SDL_Window
- func SDL_CreateWindow(title string, x, y, w, h int32, flags SDL_WindowFlags) *SDL_Window
- func SDL_CreateWindowFrom(data unsafe.Pointer) *SDL_Window
- func SDL_GetKeyboardFocus() *SDL_Window
- func SDL_GetMouseFocus() *SDL_Window
- func SDL_GetWindowFromID(id uint32) *SDL_Window
- func SDL_RenderGetWindow(renderer *SDL_Renderer) (window *SDL_Window)
- type SDL_WindowEvent
- type SDL_WindowEventID
- type SDL_WindowFlags
- type SDL_WindowShapeMode
- type SDL_WindowShapeParams
- type SDL_YUV_CONVERSION_MODE
- type SDL_blit
- type SDL_bool
- type SDL_cond
- type SDL_errorcode
- type SDL_eventaction
- type SDL_hid_device
- type SDL_hid_device_info
- type SDL_mutex
- type SDL_semaphore
- type SDL_version
- type SharedObject
- type WindowShapeMode
Constants ¶
View Source
const ( SDL_AUDIO_ALLOW_FREQUENCY_CHANGE = 0x00000001 SDL_AUDIO_ALLOW_FORMAT_CHANGE = 0x00000002 SDL_AUDIO_ALLOW_CHANNELS_CHANGE = 0x00000004 SDL_AUDIO_ALLOW_SAMPLES_CHANGE = 0x00000008 SDL_AUDIO_ALLOW_ANY_CHANGE = SDL_AUDIO_ALLOW_FREQUENCY_CHANGE | SDL_AUDIO_ALLOW_FORMAT_CHANGE | SDL_AUDIO_ALLOW_CHANNELS_CHANGE | SDL_AUDIO_ALLOW_SAMPLES_CHANGE )
View Source
const ( SDL_RELEASED = 0 SDL_PRESSED = 1 )
define
View Source
const ( SDL_HINT_ACCELEROMETER_AS_JOYSTICK = "SDL_ACCELEROMETER_AS_JOYSTICK" SDL_HINT_ALLOW_ALT_TAB_WHILE_GRABBED = "SDL_ALLOW_ALT_TAB_WHILE_GRABBED" SDL_HINT_ALLOW_TOPMOST = "SDL_ALLOW_TOPMOST" SDL_HINT_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION = "SDL_ANDROID_APK_EXPANSION_MAIN_FILE_VERSION" SDL_HINT_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION = "SDL_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION" SDL_HINT_ANDROID_BLOCK_ON_PAUSE = "SDL_ANDROID_BLOCK_ON_PAUSE" SDL_HINT_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO = "SDL_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO" SDL_HINT_ANDROID_TRAP_BACK_BUTTON = "SDL_ANDROID_TRAP_BACK_BUTTON" SDL_HINT_APP_NAME = "SDL_APP_NAME" SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS = "SDL_APPLE_TV_CONTROLLER_UI_EVENTS" SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION = "SDL_APPLE_TV_REMOTE_ALLOW_ROTATION" SDL_HINT_AUDIO_CATEGORY = "SDL_AUDIO_CATEGORY" SDL_HINT_AUDIO_DEVICE_APP_NAME = "SDL_AUDIO_DEVICE_APP_NAME" SDL_HINT_AUDIO_DEVICE_STREAM_NAME = "SDL_AUDIO_DEVICE_STREAM_NAME" SDL_HINT_AUDIO_DEVICE_STREAM_ROLE = "SDL_AUDIO_DEVICE_STREAM_ROLE" SDL_HINT_AUDIO_RESAMPLING_MODE = "SDL_AUDIO_RESAMPLING_MODE" SDL_HINT_AUTO_UPDATE_JOYSTICKS = "SDL_AUTO_UPDATE_JOYSTICKS" SDL_HINT_AUTO_UPDATE_SENSORS = "SDL_AUTO_UPDATE_SENSORS" SDL_HINT_BMP_SAVE_LEGACY_FORMAT = "SDL_BMP_SAVE_LEGACY_FORMAT" SDL_HINT_DISPLAY_USABLE_BOUNDS = "SDL_DISPLAY_USABLE_BOUNDS" SDL_HINT_EMSCRIPTEN_ASYNCIFY = "SDL_EMSCRIPTEN_ASYNCIFY" SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT = "SDL_EMSCRIPTEN_KEYBOARD_ELEMENT" SDL_HINT_ENABLE_STEAM_CONTROLLERS = "SDL_ENABLE_STEAM_CONTROLLERS" SDL_HINT_EVENT_LOGGING = "SDL_EVENT_LOGGING" SDL_HINT_FORCE_RAISEWINDOW = "SDL_HINT_FORCE_RAISEWINDOW" SDL_HINT_FRAMEBUFFER_ACCELERATION = "SDL_FRAMEBUFFER_ACCELERATION" SDL_HINT_GAMECONTROLLERCONFIG = "SDL_GAMECONTROLLERCONFIG" SDL_HINT_GAMECONTROLLERCONFIG_FILE = "SDL_GAMECONTROLLERCONFIG_FILE" SDL_HINT_GAMECONTROLLERTYPE = "SDL_GAMECONTROLLERTYPE" SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES = "SDL_GAMECONTROLLER_IGNORE_DEVICES" SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT = "SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT" SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS = "SDL_GAMECONTROLLER_USE_BUTTON_LABELS" SDL_HINT_GRAB_KEYBOARD = "SDL_GRAB_KEYBOARD" SDL_HINT_IDLE_TIMER_DISABLED = "SDL_IOS_IDLE_TIMER_DISABLED" SDL_HINT_IME_INTERNAL_EDITING = "SDL_IME_INTERNAL_EDITING" SDL_HINT_IME_SHOW_UI = "SDL_IME_SHOW_UI" SDL_HINT_IME_SUPPORT_EXTENDED_TEXT = "SDL_IME_SUPPORT_EXTENDED_TEXT" SDL_HINT_IOS_HIDE_HOME_INDICATOR = "SDL_IOS_HIDE_HOME_INDICATOR" SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS = "SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS" SDL_HINT_JOYSTICK_HIDAPI = "SDL_JOYSTICK_HIDAPI" SDL_HINT_JOYSTICK_HIDAPI_GAMECUBE = "SDL_JOYSTICK_HIDAPI_GAMECUBE" SDL_HINT_JOYSTICK_GAMECUBE_RUMBLE_BRAKE = "SDL_JOYSTICK_GAMECUBE_RUMBLE_BRAKE" SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS = "SDL_JOYSTICK_HIDAPI_JOY_CONS" SDL_HINT_JOYSTICK_HIDAPI_LUNA = "SDL_JOYSTICK_HIDAPI_LUNA" SDL_HINT_JOYSTICK_HIDAPI_PS4 = "SDL_JOYSTICK_HIDAPI_PS4" SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE = "SDL_JOYSTICK_HIDAPI_PS4_RUMBLE" SDL_HINT_JOYSTICK_HIDAPI_PS5 = "SDL_JOYSTICK_HIDAPI_PS5" SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED = "SDL_JOYSTICK_HIDAPI_PS5_PLAYER_LED" SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE = "SDL_JOYSTICK_HIDAPI_PS5_RUMBLE" SDL_HINT_JOYSTICK_HIDAPI_STADIA = "SDL_JOYSTICK_HIDAPI_STADIA" SDL_HINT_JOYSTICK_HIDAPI_STEAM = "SDL_JOYSTICK_HIDAPI_STEAM" SDL_HINT_JOYSTICK_HIDAPI_SWITCH = "SDL_JOYSTICK_HIDAPI_SWITCH" SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED = "SDL_JOYSTICK_HIDAPI_SWITCH_HOME_LED" SDL_HINT_JOYSTICK_HIDAPI_XBOX = "SDL_JOYSTICK_HIDAPI_XBOX" SDL_HINT_JOYSTICK_RAWINPUT = "SDL_JOYSTICK_RAWINPUT" SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT = "SDL_JOYSTICK_RAWINPUT_CORRELATE_XINPUT" SDL_HINT_JOYSTICK_ROG_CHAKRAM = "SDL_JOYSTICK_ROG_CHAKRAM" SDL_HINT_JOYSTICK_THREAD = "SDL_JOYSTICK_THREAD" SDL_HINT_KMSDRM_REQUIRE_DRM_MASTER = "SDL_KMSDRM_REQUIRE_DRM_MASTER" SDL_HINT_JOYSTICK_DEVICE = "SDL_JOYSTICK_DEVICE" SDL_HINT_LINUX_JOYSTICK_CLASSIC = "SDL_LINUX_JOYSTICK_CLASSIC" SDL_HINT_LINUX_JOYSTICK_DEADZONES = "SDL_LINUX_JOYSTICK_DEADZONES" SDL_HINT_MAC_BACKGROUND_APP = "SDL_MAC_BACKGROUND_APP" SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK = "SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK" SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS = "SDL_MOUSE_DOUBLE_CLICK_RADIUS" SDL_HINT_MOUSE_DOUBLE_CLICK_TIME = "SDL_MOUSE_DOUBLE_CLICK_TIME" SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH = "SDL_MOUSE_FOCUS_CLICKTHROUGH" SDL_HINT_MOUSE_NORMAL_SPEED_SCALE = "SDL_MOUSE_NORMAL_SPEED_SCALE" SDL_HINT_MOUSE_RELATIVE_MODE_CENTER = "SDL_MOUSE_RELATIVE_MODE_CENTER" SDL_HINT_MOUSE_RELATIVE_MODE_WARP = "SDL_MOUSE_RELATIVE_MODE_WARP" SDL_HINT_MOUSE_RELATIVE_SCALING = "SDL_MOUSE_RELATIVE_SCALING" SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE = "SDL_MOUSE_RELATIVE_SPEED_SCALE" SDL_HINT_MOUSE_TOUCH_EVENTS = "SDL_MOUSE_TOUCH_EVENTS" SDL_HINT_MOUSE_AUTO_CAPTURE = "SDL_MOUSE_AUTO_CAPTURE" SDL_HINT_NO_SIGNAL_HANDLERS = "SDL_NO_SIGNAL_HANDLERS" SDL_HINT_OPENGL_ES_DRIVER = "SDL_OPENGL_ES_DRIVER" SDL_HINT_ORIENTATIONS = "SDL_IOS_ORIENTATIONS" SDL_HINT_POLL_SENTINEL = "SDL_POLL_SENTINEL" SDL_HINT_PREFERRED_LOCALES = "SDL_PREFERRED_LOCALES" SDL_HINT_QTWAYLAND_CONTENT_ORIENTATION = "SDL_QTWAYLAND_CONTENT_ORIENTATION" SDL_HINT_QTWAYLAND_WINDOW_FLAGS = "SDL_QTWAYLAND_WINDOW_FLAGS" SDL_HINT_RENDER_BATCHING = "SDL_RENDER_BATCHING" SDL_HINT_RENDER_LINE_METHOD = "SDL_RENDER_LINE_METHOD" SDL_HINT_RENDER_DIRECT3D11_DEBUG = "SDL_RENDER_DIRECT3D11_DEBUG" SDL_HINT_RENDER_DIRECT3D_THREADSAFE = "SDL_RENDER_DIRECT3D_THREADSAFE" SDL_HINT_RENDER_DRIVER = "SDL_RENDER_DRIVER" SDL_HINT_RENDER_LOGICAL_SIZE_MODE = "SDL_RENDER_LOGICAL_SIZE_MODE" SDL_HINT_RENDER_OPENGL_SHADERS = "SDL_RENDER_OPENGL_SHADERS" SDL_HINT_RENDER_SCALE_QUALITY = "SDL_RENDER_SCALE_QUALITY" SDL_HINT_RENDER_VSYNC = "SDL_RENDER_VSYNC" SDL_HINT_RETURN_KEY_HIDES_IME = "SDL_RETURN_KEY_HIDES_IME" SDL_HINT_RPI_VIDEO_LAYER = "SDL_RPI_VIDEO_LAYER" SDL_HINT_SCREENSAVER_INHIBIT_ACTIVITY_NAME = "SDL_SCREENSAVER_INHIBIT_ACTIVITY_NAME" SDL_HINT_THREAD_FORCE_REALTIME_TIME_CRITICAL = "SDL_THREAD_FORCE_REALTIME_TIME_CRITICAL" SDL_HINT_THREAD_PRIORITY_POLICY = "SDL_THREAD_PRIORITY_POLICY" SDL_HINT_THREAD_STACK_SIZE = "SDL_THREAD_STACK_SIZE" SDL_HINT_TIMER_RESOLUTION = "SDL_TIMER_RESOLUTION" SDL_HINT_TOUCH_MOUSE_EVENTS = "SDL_TOUCH_MOUSE_EVENTS" SDL_HINT_VITA_TOUCH_MOUSE_DEVICE = "SDL_HINT_VITA_TOUCH_MOUSE_DEVICE" SDL_HINT_TV_REMOTE_AS_JOYSTICK = "SDL_TV_REMOTE_AS_JOYSTICK" SDL_HINT_VIDEO_ALLOW_SCREENSAVER = "SDL_VIDEO_ALLOW_SCREENSAVER" SDL_HINT_VIDEO_DOUBLE_BUFFER = "SDL_VIDEO_DOUBLE_BUFFER" SDL_HINT_VIDEO_EGL_ALLOW_TRANSPARENCY = "SDL_VIDEO_EGL_ALLOW_TRANSPARENCY" SDL_HINT_VIDEO_EXTERNAL_CONTEXT = "SDL_VIDEO_EXTERNAL_CONTEXT" SDL_HINT_VIDEO_HIGHDPI_DISABLED = "SDL_VIDEO_HIGHDPI_DISABLED" SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES = "SDL_VIDEO_MAC_FULLSCREEN_SPACES" SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS = "SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS" SDL_HINT_VIDEO_WAYLAND_ALLOW_LIBDECOR = "SDL_VIDEO_WAYLAND_ALLOW_LIBDECOR" SDL_HINT_VIDEO_WAYLAND_PREFER_LIBDECOR = "SDL_VIDEO_WAYLAND_PREFER_LIBDECOR" SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT = "SDL_VIDEO_WINDOW_SHARE_PIXEL_FORMAT" SDL_HINT_VIDEO_FOREIGN_WINDOW_OPENGL = "SDL_VIDEO_FOREIGN_WINDOW_OPENGL" SDL_HINT_VIDEO_FOREIGN_WINDOW_VULKAN = "SDL_VIDEO_FOREIGN_WINDOW_VULKAN" SDL_HINT_VIDEO_WIN_D3DCOMPILER = "SDL_VIDEO_WIN_D3DCOMPILER" SDL_HINT_VIDEO_X11_FORCE_EGL = "SDL_VIDEO_X11_FORCE_EGL" SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR = "SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR" SDL_HINT_VIDEO_X11_NET_WM_PING = "SDL_VIDEO_X11_NET_WM_PING" SDL_HINT_VIDEO_X11_WINDOW_VISUALID = "SDL_VIDEO_X11_WINDOW_VISUALID" SDL_HINT_VIDEO_X11_XINERAMA = "SDL_VIDEO_X11_XINERAMA" SDL_HINT_VIDEO_X11_XRANDR = "SDL_VIDEO_X11_XRANDR" SDL_HINT_VIDEO_X11_XVIDMODE = "SDL_VIDEO_X11_XVIDMODE" SDL_HINT_WAVE_FACT_CHUNK = "SDL_WAVE_FACT_CHUNK" SDL_HINT_WAVE_RIFF_CHUNK_SIZE = "SDL_WAVE_RIFF_CHUNK_SIZE" SDL_HINT_WAVE_TRUNCATION = "SDL_WAVE_TRUNCATION" SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING = "SDL_WINDOWS_DISABLE_THREAD_NAMING" SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP = "SDL_WINDOWS_ENABLE_MESSAGELOOP" SDL_HINT_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS = "SDL_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS" SDL_HINT_WINDOWS_FORCE_SEMAPHORE_KERNEL = "SDL_WINDOWS_FORCE_SEMAPHORE_KERNEL" SDL_HINT_WINDOWS_INTRESOURCE_ICON = "SDL_WINDOWS_INTRESOURCE_ICON" SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL = "SDL_WINDOWS_INTRESOURCE_ICON_SMALL" SDL_HINT_WINDOWS_NO_CLOSE_ON_ALT_F4 = "SDL_WINDOWS_NO_CLOSE_ON_ALT_F4" SDL_HINT_WINDOWS_USE_D3D9EX = "SDL_WINDOWS_USE_D3D9EX" SDL_HINT_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN = "SDL_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN" SDL_HINT_WINDOW_NO_ACTIVATION_WHEN_SHOWN = "SDL_WINDOW_NO_ACTIVATION_WHEN_SHOWN" SDL_HINT_WINRT_HANDLE_BACK_BUTTON = "SDL_WINRT_HANDLE_BACK_BUTTON" SDL_HINT_WINRT_PRIVACY_POLICY_LABEL = "SDL_WINRT_PRIVACY_POLICY_LABEL" SDL_HINT_WINRT_PRIVACY_POLICY_URL = "SDL_WINRT_PRIVACY_POLICY_URL" SDL_HINT_X11_FORCE_OVERRIDE_REDIRECT = "SDL_X11_FORCE_OVERRIDE_REDIRECT" SDL_HINT_XINPUT_ENABLED = "SDL_XINPUT_ENABLED" SDL_HINT_XINPUT_USE_OLD_JOYSTICK_MAPPING = "SDL_XINPUT_USE_OLD_JOYSTICK_MAPPING" SDL_HINT_AUDIO_INCLUDE_MONITORS = "SDL_AUDIO_INCLUDE_MONITORS" SDL_HINT_X11_WINDOW_TYPE = "SDL_X11_WINDOW_TYPE" SDL_HINT_QUIT_ON_LAST_WINDOW_CLOSE = "SDL_QUIT_ON_LAST_WINDOW_CLOSE" SDL_HINT_VIDEODRIVER = "SDL_VIDEODRIVER" SDL_HINT_AUDIODRIVER = "SDL_AUDIODRIVER" )
define
View Source
const ( SDL_JOYSTICK_AXIS_MAX = 32767 SDL_JOYSTICK_AXIS_MIN = -32768 SDL_HAT_CENTERED = 0x00 SDL_HAT_UP = 0x01 SDL_HAT_RIGHT = 0x02 SDL_HAT_DOWN = 0x04 SDL_HAT_LEFT = 0x08 SDL_HAT_RIGHTUP = SDL_HAT_RIGHT | SDL_HAT_UP SDL_HAT_RIGHTDOWN = SDL_HAT_RIGHT | SDL_HAT_DOWN SDL_HAT_LEFTUP = SDL_HAT_LEFT | SDL_HAT_UP SDL_HAT_LEFTDOWN = SDL_HAT_LEFT | SDL_HAT_DOWN )
define
View Source
const ( SDL_ALPHA_OPAQUE = 255 SDL_ALPHA_TRANSPARENT = 0 )
define
View Source
const ( SDL_RWOPS_UNKNOWN = 0 SDL_RWOPS_WINFILE = 1 SDL_RWOPS_STDFILE = 2 SDL_RWOPS_JNIFILE = 3 SDL_RWOPS_MEMORY = 4 SDL_RWOPS_MEMORY_RO = 5 SDL_RWOPS_VITAFILE = 6 RW_SEEK_SET = 0 RW_SEEK_CUR = 1 RW_SEEK_END = 2 )
define
View Source
const ( SDL_INIT_TIMER uint32 = 0x00000001 SDL_INIT_AUDIO uint32 = 0x00000010 SDL_INIT_VIDEO uint32 = 0x00000020 SDL_INIT_JOYSTICK uint32 = 0x00000200 SDL_INIT_HAPTIC uint32 = 0x00001000 SDL_INIT_GAMECONTROLLER uint32 = 0x00002000 SDL_INIT_EVENTS uint32 = 0x00004000 SDL_INIT_NOPARACHUTE uint32 = 0x00008000 SDL_INIT_SENSOR uint32 = 0x00100000 SDL_INIT_EVERYTHING uint32 = SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO | SDL_INIT_EVENTS | SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_GAMECONTROLLER | SDL_INIT_SENSOR )
define
View Source
const ( SDL_SWSURFACE = 0 SDL_PREALLOC = 0x00000001 SDL_RLEACCEL = 0x00000002 SDL_DONTFREE = 0x00000004 SDL_SIMD_ALIGNED = 0x00000008 )
define
View Source
const ( SDL_TOUCH_MOUSEID = math.MaxUint32 SDL_MOUSE_TOUCHID = int64(-1) )
define
View Source
const ( SDL_MAJOR_VERSION = 2 SDL_MINOR_VERSION = 0 SDL_PATCHLEVEL = 22 )
define
View Source
const (
SDL_CACHELINE_SIZE = 128
)
define
View Source
const (
SDL_GAMECONTROLLER_BUTTON_BIND_VALUE_SIZE = C.SDL_GAMECONTROLLER_BUTTON_BIND_VALUE_SIZE
)
define
View Source
const (
SDL_STANDARD_GRAVITY = 9.80665
)
define
Variables ¶
View Source
var ( SDL_AUDIO_MASK_BITSIZE = 0xFF SDL_AUDIO_MASK_DATATYPE = 1 << 8 SDL_AUDIO_MASK_ENDIAN = 1 << 12 SDL_AUDIO_MASK_SIGNED = 1 << 15 SDL_AUDIO_BITSIZE = func(x int) int { return x & SDL_AUDIO_MASK_BITSIZE } SDL_AUDIO_ISFLOAT = func(x int) bool { return (x & SDL_AUDIO_MASK_DATATYPE) != 0 } SDL_AUDIO_ISBIGENDIAN = func(x int) bool { return (x & SDL_AUDIO_MASK_ENDIAN) != 0 } SDL_AUDIO_ISSIGNED = func(x int) bool { return (x & SDL_AUDIO_MASK_SIGNED) != 0 } SDL_AUDIO_ISINT = func(x int) bool { return !SDL_AUDIO_ISFLOAT(x) } SDL_AUDIO_ISLITTLEENDIAN = func(x int) bool { return !SDL_AUDIO_ISBIGENDIAN(x) } SDL_AUDIO_ISUNSIGNED = func(x int) bool { return !SDL_AUDIO_ISSIGNED(x) } SDL_MIX_MAXVOLUME = 128 )
define
View Source
var ( AUDIO_U8 = 0x0008 AUDIO_S8 = 0x8008 AUDIO_U16LSB = 0x0010 AUDIO_S16LSB = 0x8010 AUDIO_U16MSB = 0x1010 AUDIO_S16MSB = 0x9010 AUDIO_U16 = AUDIO_U16LSB AUDIO_S16 = AUDIO_S16LSB AUDIO_S32LSB = 0x8020 AUDIO_S32MSB = 0x9020 AUDIO_S32 = AUDIO_S32LSB AUDIO_F32LSB = 0x8120 AUDIO_F32MSB = 0x9120 AUDIO_F32 = AUDIO_F32LSB AUDIO_U16SYS = func() int { if !IsLittleEndian() { return AUDIO_U16LSB } else { return AUDIO_U16MSB } }() AUDIO_S16SYS = func() int { if !IsLittleEndian() { return AUDIO_S16LSB } else { return AUDIO_S16MSB } }() AUDIO_S32SYS = func() int { if !IsLittleEndian() { return AUDIO_S32LSB } else { return AUDIO_S32MSB } }() AUDIO_F32SYS = func() int { if !IsLittleEndian() { return AUDIO_F32LSB } else { return AUDIO_F32MSB } }() )
View Source
var ( SDL_HAPTIC = func(x uint) uint { return 1 << x } SDL_HAPTIC_CONSTANT = SDL_HAPTIC(0) SDL_HAPTIC_SINE = SDL_HAPTIC(1) SDL_HAPTIC_LEFTRIGHT = SDL_HAPTIC(2) SDL_HAPTIC_TRIANGLE = SDL_HAPTIC(3) SDL_HAPTIC_SAWTOOTHUP = SDL_HAPTIC(4) SDL_HAPTIC_SAWTOOTHDOWN = SDL_HAPTIC(5) SDL_HAPTIC_RAMP = SDL_HAPTIC(6) SDL_HAPTIC_SPRING = SDL_HAPTIC(7) SDL_HAPTIC_DAMPER = SDL_HAPTIC(8) SDL_HAPTIC_INERTIA = SDL_HAPTIC(9) SDL_HAPTIC_FRICTION = SDL_HAPTIC(10) SDL_HAPTIC_CUSTOM = SDL_HAPTIC(11) SDL_HAPTIC_GAIN = SDL_HAPTIC(12) SDL_HAPTIC_AUTOCENTER = SDL_HAPTIC(13) SDL_HAPTIC_STATUS = SDL_HAPTIC(14) SDL_HAPTIC_PAUSE = SDL_HAPTIC(15) SDL_HAPTIC_POLAR = 0 SDL_HAPTIC_CARTESIAN = 1 SDL_HAPTIC_SPHERICAL = 2 SDL_HAPTIC_STEERING_AXIS = 3 SDL_HAPTIC_INFINITY = 0xFFFFFFFF )
define
View Source
var ( SDLK_SCANCODE_MASK = (1 << 30) SDL_SCANCODE_TO_KEYCODE = func(x int32) int32 { return x | int32(SDLK_SCANCODE_MASK) } )
define
View Source
var ( SDL_BUTTON = func(x int) int { return 1 << (x - 1) } SDL_BUTTON_LEFT = 1 SDL_BUTTON_MIDDLE = 2 SDL_BUTTON_RIGHT = 3 SDL_BUTTON_X1 = 4 SDL_BUTTON_X2 = 5 SDL_BUTTON_LMASK = SDL_BUTTON(SDL_BUTTON_LEFT) SDL_BUTTON_MMASK = SDL_BUTTON(SDL_BUTTON_MIDDLE) SDL_BUTTON_RMASK = SDL_BUTTON(SDL_BUTTON_RIGHT) SDL_BUTTON_X1MASK = SDL_BUTTON(SDL_BUTTON_X1) SDL_BUTTON_X2MASK = SDL_BUTTON(SDL_BUTTON_X2) )
define
View Source
var ( SDL_DEFINE_PIXELFOURCC = func(a, b, c, d byte) uint32 { var endian binary.ByteOrder if IsLittleEndian() { endian = binary.LittleEndian } else { endian = binary.BigEndian } arr := []byte{a, b, c, d} return endian.Uint32(arr) } SDL_PIXELFLAG = func(x int) uint32 { x2 := uint32(x); return (x2 >> 28) & 0x0F } SDL_PIXELTYPE = func(x int) int32 { x2 := int32(x); return (x2 >> 24) & 0x0F } SDL_PIXELORDER = func(x int) int32 { x2 := int32(x); return (x2 >> 20) & 0x0F } SDL_PIXELLAYOUT = func(x int) uint32 { x2 := uint32(x); return (x2 >> 16) & 0x0F } SDL_BITSPERPIXEL = func(x int) uint32 { x2 := uint32(x); return (x2 >> 8) & 0xFF } SDL_BYTESPERPIXEL = func(x int) uint32 { x2 := uint32(x) if SDL_ISPIXELFORMAT_FOURCC(x) { if x2 == SDL_PIXELFORMAT_YUY2 || x2 == SDL_PIXELFORMAT_UYVY || x2 == SDL_PIXELFORMAT_YVYU { return 2 } else { return 1 } } else { return (x2 >> 0) & 0xFF } } SDL_ISPIXELFORMAT_INDEXED = func(format int) bool { if !SDL_ISPIXELFORMAT_FOURCC(format) && (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX1 || SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX4 || SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX8) { return true } else { return false } } SDL_ISPIXELFORMAT_PACKED = func(format int) bool { if !SDL_ISPIXELFORMAT_FOURCC(format) && (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_PACKED8 || SDL_PIXELTYPE(format) == SDL_PIXELTYPE_PACKED16 || SDL_PIXELTYPE(format) == SDL_PIXELTYPE_PACKED32) { return true } else { return false } } SDL_ISPIXELFORMAT_ARRAY = func(format int) bool { if !SDL_ISPIXELFORMAT_FOURCC(format) && (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_ARRAYU8 || SDL_PIXELTYPE(format) == SDL_PIXELTYPE_ARRAYU16 || SDL_PIXELTYPE(format) == SDL_PIXELTYPE_ARRAYU32 || SDL_PIXELTYPE(format) == SDL_PIXELTYPE_ARRAYF16 || SDL_PIXELTYPE(format) == SDL_PIXELTYPE_ARRAYF32) { return true } else { return false } } SDL_ISPIXELFORMAT_ALPHA = func(format int) bool { if (SDL_ISPIXELFORMAT_PACKED(format) && (SDL_PIXELORDER(format) == SDL_PACKEDORDER_ARGB || SDL_PIXELORDER(format) == SDL_PACKEDORDER_RGBA || SDL_PIXELORDER(format) == SDL_PACKEDORDER_ABGR || SDL_PIXELORDER(format) == SDL_PACKEDORDER_BGRA)) || (SDL_ISPIXELFORMAT_ARRAY(format) && (SDL_PIXELORDER(format) == SDL_ARRAYORDER_ARGB || SDL_PIXELORDER(format) == SDL_ARRAYORDER_RGBA || SDL_PIXELORDER(format) == SDL_ARRAYORDER_ABGR || SDL_PIXELORDER(format) == SDL_ARRAYORDER_BGRA)) { return true } else { return false } } SDL_ISPIXELFORMAT_FOURCC = func(format int) bool { if SDL_PIXELFLAG(format) != 1 { return true } else { return false } } )
View Source
var ( RGB444Model color.Model = color.ModelFunc(rgb444Model) RGB332Model color.Model = color.ModelFunc(rgb332Model) RGB565Model color.Model = color.ModelFunc(rgb565Model) RGB555Model color.Model = color.ModelFunc(rgb555Model) BGR565Model color.Model = color.ModelFunc(bgr565Model) BGR555Model color.Model = color.ModelFunc(bgr555Model) RGB888Model color.Model = color.ModelFunc(rgb888Model) BGR888Model color.Model = color.ModelFunc(bgr888Model) ARGB4444Model color.Model = color.ModelFunc(argb4444Model) ABGR4444Model color.Model = color.ModelFunc(abgr4444Model) RGBA4444Model color.Model = color.ModelFunc(rgba4444Model) BGRA4444Model color.Model = color.ModelFunc(bgra4444Model) ARGB1555Model color.Model = color.ModelFunc(argb1555Model) RGBA5551Model color.Model = color.ModelFunc(rgba5551Model) ABGR1555Model color.Model = color.ModelFunc(abgr1555Model) BGRA5551Model color.Model = color.ModelFunc(bgra5551Model) RGBA8888Model color.Model = color.ModelFunc(rgba8888Model) BGRA8888Model color.Model = color.ModelFunc(bgra8888Model) ARGB8888Model color.Model = color.ModelFunc(argb8888Model) ABGR8888Model color.Model = color.ModelFunc(abgr8888Model) )
View Source
var ( SDL_WINDOWPOS_UNDEFINED_MASK = 0x1FFF0000 SDL_WINDOWPOS_UNDEFINED_DISPLAY = func(x int) int32 { return int32(SDL_WINDOWPOS_UNDEFINED_MASK) | int32(x) } SDL_WINDOWPOS_UNDEFINED = SDL_WINDOWPOS_UNDEFINED_DISPLAY(0) SDL_WINDOWPOS_ISUNDEFINED = func(x int) bool { return int32(x&0xFFFF0000) == int32(SDL_WINDOWPOS_UNDEFINED_MASK) } SDL_WINDOWPOS_CENTERED_MASK = 0x2FFF0000 SDL_WINDOWPOS_CENTERED_DISPLAY = func(x int) int32 { return int32(SDL_WINDOWPOS_CENTERED_MASK) | int32(x) } SDL_WINDOWPOS_CENTERED = SDL_WINDOWPOS_CENTERED_DISPLAY(0) SDL_WINDOWPOS_ISCENTERED = func(x int) bool { return int32(x&0xFFFF0000) == int32(SDL_WINDOWPOS_CENTERED_MASK) } )
define
View Source
var SDL_event_watchers []*SDL_EventWatcher
View Source
var SDL_event_watchers_count int = 0
View Source
var SDL_event_watchers_lock sync.Mutex
Functions ¶
func GetRevisionNumber ¶
func GetRevisionNumber() int
func IsLittleEndian ¶
func IsLittleEndian() bool
func MasksToPixelFormatEnum ¶
func SDL_AddEventWatch ¶
func SDL_AddEventWatch(filter SDL_EventFilterCallback, userdata any)
func SDL_AddHintCallback ¶
func SDL_AddHintCallback(name string, fn HintCallback, data interface{})
func SDL_AudioInit ¶
func SDL_AudioQuit ¶
func SDL_AudioQuit()
func SDL_AudioStreamAvailable ¶
func SDL_AudioStreamAvailable(stream *SDL_AudioStream) int
func SDL_AudioStreamClear ¶
func SDL_AudioStreamClear(stream *SDL_AudioStream)
func SDL_AudioStreamFlush ¶
func SDL_AudioStreamFlush(stream *SDL_AudioStream) int
func SDL_AudioStreamGet ¶
func SDL_AudioStreamGet(stream *SDL_AudioStream, buf []byte, bufLen int) int
func SDL_AudioStreamPut ¶
func SDL_AudioStreamPut(stream *SDL_AudioStream, buf []byte, bufLen int) int
func SDL_AudoiStreamFree ¶
func SDL_AudoiStreamFree(stream *SDL_AudioStream)
func SDL_BitsPerPixel ¶
func SDL_BlitScaled ¶
func SDL_BlitScaled(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
func SDL_BlitSurface ¶
func SDL_BlitSurface(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
func SDL_BuildAudioCVT ¶
func SDL_BuildAudioCVT(cvt *SDL_AudioCVT, srcFormat SDL_AudioFormat, srcChannels uint8, srcRate int, dstFormat SDL_AudioFormat, dstChannels uint8, dstRate int) (converted int)
func SDL_BytesPerPixel ¶
func SDL_COMPILEDVERSION ¶
func SDL_COMPILEDVERSION() int
func SDL_CalculateGammaRamp ¶
func SDL_CaptureMouse ¶
func SDL_ClearComposition ¶
func SDL_ClearComposition()
func SDL_ClearError ¶
func SDL_ClearError()
func SDL_ClearHints ¶
func SDL_ClearHints()
func SDL_ClearQueuedAudio ¶
func SDL_ClearQueuedAudio(dev SDL_AudioDeviceID)
func SDL_CloseAudio ¶
func SDL_CloseAudio()
func SDL_CloseAudioDevice ¶
func SDL_CloseAudioDevice(dev SDL_AudioDeviceID)
func SDL_ConvertAudio ¶
func SDL_ConvertAudio(cvt *SDL_AudioCVT) int
func SDL_ConvertPixels ¶
func SDL_CreateArrayDataStructures ¶
func SDL_CreateArrayDataStructures[T SDL_DataStructures](mp *PX_memorypool, d []T) *[]T
func SDL_CreateDataStructures ¶
func SDL_CreateDataStructures[T SDL_DataStructures](mp *PX_memorypool, d T) *T
func SDL_CreateWindowAndRenderer ¶
func SDL_CreateWindowAndRenderer(w, h int32, flags SDL_WindowFlags, window *SDL_Window, renderer *SDL_Renderer) int
func SDL_DEFINE_PIXELFORMAT ¶
func SDL_DelEventWatch ¶
func SDL_DelEventWatch(filter SDL_EventFilterCallback, userdata any)
func SDL_DelHintCallback ¶
func SDL_DelHintCallback(name string)
func SDL_DequeueAudio ¶
func SDL_DequeueAudio(dev SDL_AudioDeviceID, data []byte, len uint32) uint32
func SDL_DestroyArrayDataStructures ¶
func SDL_DestroyArrayDataStructures[T SDL_DataStructures](mp *PX_memorypool, d *[]T)
func SDL_DestroyDataStructures ¶
func SDL_DestroyDataStructures[T SDL_DataStructures](mp *PX_memorypool, d *T)
func SDL_DestroyRenderer ¶
func SDL_DestroyRenderer(renderer *SDL_Renderer)
func SDL_DestroyTexture ¶
func SDL_DestroyTexture(texture *SDL_Texture)
func SDL_DestroyWindow ¶
func SDL_DestroyWindow(window *SDL_Window)
func SDL_DisableScreenSaver ¶
func SDL_DisableScreenSaver()
func SDL_EnableScreenSaver ¶
func SDL_EnableScreenSaver()
func SDL_EncloseFPoints ¶
func SDL_EncloseFPoints(points []SDL_FPoint, count int32, clip *SDL_FRect, result *SDL_FRect) bool
func SDL_EnclosePoints ¶
func SDL_Error ¶
func SDL_Error(code SDL_errorcode)
func SDL_EventConvert ¶
func SDL_EventConvert[T SDL_EventStructures, T2 SDL_EventStructures](e *T, _ T2) *T2
func SDL_EventState ¶
func SDL_EventState(eventType SDL_EventType, state int) uint8
func SDL_FRectEmpty ¶
func SDL_FRectEquals ¶
func SDL_FRectEqualsEpsilon ¶
func SDL_FillRect ¶
func SDL_FillRect(surface *SDL_Surface, rect *SDL_Rect, color uint32) int
func SDL_FillRects ¶
func SDL_FillRects(surface *SDL_Surface, rects []SDL_Rect, color uint32) int
func SDL_FilterEvents ¶
func SDL_FilterEvents(filter SDL_EventFilterCallback, userdata any)
func SDL_FlashWindow ¶
func SDL_FlashWindow(window *SDL_Window, operation SDL_FlashOperation) int
func SDL_FlushEvent ¶
func SDL_FlushEvent(eventType SDL_EventType)
func SDL_FlushEvents ¶
func SDL_FlushEvents(minType SDL_EventType, maxType SDL_EventType)
func SDL_FreeCursor ¶
func SDL_FreeCursor(cursor *SDL_Cursor)
func SDL_FreeFormat ¶
func SDL_FreeFormat(format *SDL_PixelFormat)
func SDL_FreePalette ¶
func SDL_FreePalette(palette *SDL_Palette)
func SDL_FreeRW ¶
func SDL_FreeRW(rw *SDL_RWops)
func SDL_FreeSurface ¶
func SDL_FreeSurface(surface *SDL_Surface)
func SDL_FreeWAV ¶
func SDL_FreeWAV(audioBuf []uint8)
func SDL_GL_BindTexture ¶
func SDL_GL_BindTexture(texture *SDL_Texture, texw, texh *float32) int
func SDL_GL_DeleteContext ¶
func SDL_GL_DeleteContext(context SDL_GLContext)
func SDL_GL_GetAttribute ¶
func SDL_GL_GetAttribute(attr SDL_GLattr, value *int) int
func SDL_GL_GetDrawableSize ¶
func SDL_GL_GetDrawableSize(window *SDL_Window, w, h *int32)
func SDL_GL_GetProcAddress ¶
func SDL_GL_GetSwapInterval ¶
func SDL_GL_GetSwapInterval() int
func SDL_GL_LoadLibrary ¶
func SDL_GL_MakeCurrent ¶
func SDL_GL_MakeCurrent(window *SDL_Window, glcontext SDL_GLContext) int
func SDL_GL_SetAttribute ¶
func SDL_GL_SetAttribute(attr SDL_GLattr, value int) int
func SDL_GL_SetSwapInterval ¶
func SDL_GL_SwapWindow ¶
func SDL_GL_SwapWindow(window *SDL_Window)
func SDL_GL_UnbindTexture ¶
func SDL_GL_UnbindTexture(texture *SDL_Texture) int
func SDL_GL_UnloadLibrary ¶
func SDL_GL_UnloadLibrary()
func SDL_GUIDToString ¶
func SDL_GameControllerClose ¶
func SDL_GameControllerClose(ctrl *SDL_GameController)
func SDL_GameControllerGetAppleSFSymbolsNameForAxis ¶
func SDL_GameControllerGetAppleSFSymbolsNameForAxis(ctrl *SDL_GameController, axis SDL_GameControllerAxis) (sfSymbolsName string)
func SDL_GameControllerGetAppleSFSymbolsNameForButton ¶
func SDL_GameControllerGetAppleSFSymbolsNameForButton(ctrl *SDL_GameController, button SDL_GameControllerButton) (sfSymbolsName string)
func SDL_GameControllerGetAttached ¶
func SDL_GameControllerGetAttached(ctrl *SDL_GameController) bool
func SDL_GameControllerGetAxis ¶
func SDL_GameControllerGetAxis(ctrl *SDL_GameController, axis SDL_GameControllerAxis) int16
func SDL_GameControllerGetButton ¶
func SDL_GameControllerGetButton(ctrl *SDL_GameController, btn SDL_GameControllerButton) byte
func SDL_GameControllerGetFirmwareVersion ¶
func SDL_GameControllerGetFirmwareVersion(ctrl *SDL_GameController) uint16
func SDL_GameControllerGetNumTouchpadFingers ¶
func SDL_GameControllerGetNumTouchpadFingers(ctrl *SDL_GameController, touchpad int) int
func SDL_GameControllerGetNumTouchpads ¶
func SDL_GameControllerGetNumTouchpads(ctrl *SDL_GameController) int
func SDL_GameControllerGetPlayerIndex ¶
func SDL_GameControllerGetPlayerIndex(ctrl *SDL_GameController) int
func SDL_GameControllerGetProduct ¶
func SDL_GameControllerGetProduct(ctrl *SDL_GameController) int
func SDL_GameControllerGetProductVersion ¶
func SDL_GameControllerGetProductVersion(ctrl *SDL_GameController) int
func SDL_GameControllerGetSensorData ¶
func SDL_GameControllerGetSensorData(ctrl *SDL_GameController, typ SDL_SensorType, data []float32, numValues int) int
func SDL_GameControllerGetSensorDataRate ¶
func SDL_GameControllerGetSensorDataRate(ctrl *SDL_GameController, typ SDL_SensorType) (rate float32)
func SDL_GameControllerGetSerial ¶
func SDL_GameControllerGetSerial(ctrl *SDL_GameController) string
func SDL_GameControllerGetStringForAxis ¶
func SDL_GameControllerGetStringForAxis(axis SDL_GameControllerAxis) string
func SDL_GameControllerGetStringForButton ¶
func SDL_GameControllerGetStringForButton(btn SDL_GameControllerButton) string
func SDL_GameControllerGetTouchpadFinger ¶
func SDL_GameControllerGetTouchpadFinger(ctrl *SDL_GameController, touchpad, finger int, state *uint8, x, y, pressure *float32) int
func SDL_GameControllerGetVendor ¶
func SDL_GameControllerGetVendor(ctrl *SDL_GameController) int
func SDL_GameControllerHasAxis ¶
func SDL_GameControllerHasAxis(ctrl *SDL_GameController, axis SDL_GameControllerAxis) bool
func SDL_GameControllerHasButton ¶
func SDL_GameControllerHasButton(ctrl *SDL_GameController, btn SDL_GameControllerButton) bool
func SDL_GameControllerHasLED ¶
func SDL_GameControllerHasLED(ctrl *SDL_GameController) bool
func SDL_GameControllerHasRumble ¶
func SDL_GameControllerHasRumble(ctrl *SDL_GameController) bool
func SDL_GameControllerHasRumbleTriggers ¶
func SDL_GameControllerHasRumbleTriggers(ctrl *SDL_GameController) bool
func SDL_GameControllerHasSensor ¶
func SDL_GameControllerHasSensor(ctrl *SDL_GameController, typ SDL_SensorType) bool
func SDL_GameControllerIsSensorEnabled ¶
func SDL_GameControllerIsSensorEnabled(ctrl *SDL_GameController, typ SDL_SensorType) bool
func SDL_GameControllerMapping ¶
func SDL_GameControllerMapping(ctrl *SDL_GameController) string
func SDL_GameControllerMappingForGUID ¶
func SDL_GameControllerMappingForGUID(guid SDL_JoystickGUID) string
func SDL_GameControllerName ¶
func SDL_GameControllerName(ctrl *SDL_GameController) string
func SDL_GameControllerNumMappings ¶
func SDL_GameControllerNumMappings() int
func SDL_GameControllerPath ¶
func SDL_GameControllerPath(ctrl *SDL_GameController) string
func SDL_GameControllerRumble ¶
func SDL_GameControllerRumble(ctrl *SDL_GameController, lowFrequencyRumble, highFrequencyRumble uint16, durationMS uint32) int
func SDL_GameControllerRumbleTriggers ¶
func SDL_GameControllerRumbleTriggers(ctrl *SDL_GameController, leftRumble, rightRumble uint16, durationMS uint32) int
func SDL_GameControllerSendEffect ¶
func SDL_GameControllerSendEffect(ctrl *SDL_GameController, data []byte) int
func SDL_GameControllerSetLED ¶
func SDL_GameControllerSetLED(ctrl *SDL_GameController, red, green, blue uint8) int
func SDL_GameControllerSetPlayerIndex ¶
func SDL_GameControllerSetPlayerIndex(ctrl *SDL_GameController, playerIndex int)
func SDL_GameControllerSetSensorEnabled ¶
func SDL_GameControllerSetSensorEnabled(ctrl *SDL_GameController, typ SDL_SensorType, enabled bool) int
func SDL_GameControllerUpdate ¶
func SDL_GameControllerUpdate()
func SDL_GetAudioDeviceName ¶
func SDL_GetAudioDeviceSpec ¶
func SDL_GetAudioDeviceSpec(index int, isCapture int, spec *SDL_AudioSpec) int
func SDL_GetAudioDriver ¶
func SDL_GetBasePath ¶
func SDL_GetBasePath() string
func SDL_GetCPUCacheLineSize ¶
func SDL_GetCPUCacheLineSize() int
func SDL_GetCPUCount ¶
func SDL_GetCPUCount() int
func SDL_GetClipRect ¶
func SDL_GetClipRect(surface *SDL_Surface, rect *SDL_Rect)
func SDL_GetClipboardText ¶
func SDL_GetClipboardText() string
func SDL_GetColorKey ¶
func SDL_GetColorKey(surface *SDL_Surface, key *uint32) int
func SDL_GetCurrentAudioDriver ¶
func SDL_GetCurrentAudioDriver() string
func SDL_GetCurrentDisplayMode ¶
func SDL_GetCurrentDisplayMode(displayIndex int, mode *SDL_DisplayMode) int
func SDL_GetCurrentVideoDriver ¶
func SDL_GetCurrentVideoDriver() string
func SDL_GetDefaultAudioInfo ¶
func SDL_GetDefaultAudioInfo(name *[]byte, spec *SDL_AudioSpec, isCapture int) int
func SDL_GetDesktopDisplayMode ¶
func SDL_GetDesktopDisplayMode(displayIndex int, mode *SDL_DisplayMode) int
func SDL_GetDisplayBounds ¶
func SDL_GetDisplayDPI ¶
func SDL_GetDisplayMode ¶
func SDL_GetDisplayMode(displayIndex int, modeIndex int, mode *SDL_DisplayMode) int
func SDL_GetDisplayName ¶
func SDL_GetError ¶
func SDL_GetError() error
func SDL_GetErrorMsg ¶
func SDL_GetEventFilter ¶
func SDL_GetEventFilter(filter *SDL_EventFilterCallback, userdata *any) bool
func SDL_GetGlobalMouseState ¶
func SDL_GetHint ¶
func SDL_GetKeyName ¶
func SDL_GetKeyName(code SDL_Keycode) string
func SDL_GetKeyboardState ¶
func SDL_GetMemoryPool ¶
func SDL_GetMemoryPool() *PX_memorypool
func SDL_GetMouseState ¶
func SDL_GetNumAudioDevices ¶
func SDL_GetNumAudioDrivers ¶
func SDL_GetNumAudioDrivers() int
func SDL_GetNumDisplayModes ¶
func SDL_GetNumRenderDrivers ¶
func SDL_GetNumRenderDrivers() int
func SDL_GetNumTouchDevices ¶
func SDL_GetNumTouchDevices() int
func SDL_GetNumTouchFingers ¶
func SDL_GetNumTouchFingers(id SDL_TouchID) int
func SDL_GetNumVideoDisplays ¶
func SDL_GetNumVideoDisplays() int
func SDL_GetNumVideoDrivers ¶
func SDL_GetNumVideoDrivers() int
func SDL_GetPerformanceCounter ¶
func SDL_GetPerformanceCounter() uint64
func SDL_GetPerformanceFrequency ¶
func SDL_GetPerformanceFrequency() uint64
func SDL_GetPixelFormatName ¶
func SDL_GetPlatform ¶
func SDL_GetPlatform() string
func SDL_GetPrefPath ¶
func SDL_GetQueuedAudioSize ¶
func SDL_GetQueuedAudioSize(dev SDL_AudioDeviceID) uint32
func SDL_GetRGB ¶
func SDL_GetRGB(pixel uint32, format *SDL_PixelFormat, r, g, b *uint8)
func SDL_GetRGBA ¶
func SDL_GetRGBA(pixel uint32, format *SDL_PixelFormat, r, g, b, a *uint8)
func SDL_GetRectDisplayIndex ¶
func SDL_GetRelativeMouseMode ¶
func SDL_GetRelativeMouseMode() bool
func SDL_GetRenderDrawBlendMode ¶
func SDL_GetRenderDrawBlendMode(renderer *SDL_Renderer, bm *SDL_BlendMode) int
func SDL_GetRenderDrawColor ¶
func SDL_GetRenderDrawColor(renderer *SDL_Renderer, r, g, b, a *uint8) int
func SDL_GetRenderDriverInfo ¶
func SDL_GetRenderDriverInfo(index int, info *SDL_RendererInfo) int
func SDL_GetRendererInfo ¶
func SDL_GetRendererInfo(renderer *SDL_Renderer, info *SDL_RendererInfo) int
func SDL_GetRendererOutputSize ¶
func SDL_GetRendererOutputSize(renderer *SDL_Renderer, w, h *int32) int
func SDL_GetRevision ¶
func SDL_GetRevision() string
func SDL_GetScancodeName ¶
func SDL_GetScancodeName(code SDL_Scancode) string
func SDL_GetSurfaceAlphaMod ¶
func SDL_GetSurfaceAlphaMod(surface *SDL_Surface, alpha *uint8) int
func SDL_GetSurfaceBlendMode ¶
func SDL_GetSurfaceBlendMode(surface *SDL_Surface, bm *SDL_BlendMode) int
func SDL_GetSurfaceColorMod ¶
func SDL_GetSurfaceColorMod(surface *SDL_Surface, r, g, b *uint8) int
func SDL_GetSystemRAM ¶
func SDL_GetSystemRAM() int
func SDL_GetTextureAlphaMod ¶
func SDL_GetTextureAlphaMod(texture *SDL_Texture, alpha *uint8) int
func SDL_GetTextureBlendMode ¶
func SDL_GetTextureBlendMode(texture *SDL_Texture, bm *SDL_BlendMode) int
func SDL_GetTextureScaleMode ¶
func SDL_GetTextureScaleMode(texture *SDL_Texture, sm *SDL_ScaleMode) int
func SDL_GetTextureUserData ¶
func SDL_GetTextureUserData(texture *SDL_Texture) (userdata unsafe.Pointer)
func SDL_GetTicks ¶
func SDL_GetTicks() uint32
func SDL_GetVersion ¶
func SDL_GetVersion(v *SDL_version)
func SDL_GetVideoDriver ¶
func SDL_GetWindowBrightness ¶
func SDL_GetWindowBrightness(window *SDL_Window) float32
func SDL_GetWindowData ¶
func SDL_GetWindowData(window *SDL_Window, name string) unsafe.Pointer
func SDL_GetWindowDisplayIndex ¶
func SDL_GetWindowDisplayIndex(window *SDL_Window) int
func SDL_GetWindowDisplayMode ¶
func SDL_GetWindowDisplayMode(window *SDL_Window, mode *SDL_DisplayMode) int
func SDL_GetWindowGammaRamp ¶
func SDL_GetWindowGammaRamp(window *SDL_Window, red, green, blue *[256]uint16) int
func SDL_GetWindowGrab ¶
func SDL_GetWindowGrab(window *SDL_Window) bool
func SDL_GetWindowICCProfile ¶
func SDL_GetWindowICCProfile(window *SDL_Window, size *uint) unsafe.Pointer
func SDL_GetWindowID ¶
func SDL_GetWindowID(window *SDL_Window) uint32
func SDL_GetWindowKeyboardGrab ¶
func SDL_GetWindowKeyboardGrab(window *SDL_Window, grabbed SDL_bool)
func SDL_GetWindowMaximumSize ¶
func SDL_GetWindowMaximumSize(window *SDL_Window, w, h *int32)
func SDL_GetWindowMinimumSize ¶
func SDL_GetWindowMinimumSize(window *SDL_Window, w, h *int32)
func SDL_GetWindowOpacity ¶
func SDL_GetWindowOpacity(window *SDL_Window, opacity *float32) int
func SDL_GetWindowPixelFormat ¶
func SDL_GetWindowPixelFormat(window *SDL_Window) uint32
func SDL_GetWindowPosition ¶
func SDL_GetWindowPosition(window *SDL_Window, x, y *int32)
func SDL_GetWindowSize ¶
func SDL_GetWindowSize(window *SDL_Window, w, h *int32)
func SDL_GetWindowTitle ¶
func SDL_GetWindowTitle(window *SDL_Window) string
func SDL_HapticClose ¶
func SDL_HapticClose(h *SDL_Haptic)
func SDL_HapticDestroyEffect ¶
func SDL_HapticDestroyEffect(h *SDL_Haptic, effect int)
func SDL_HapticEffectSupported ¶
func SDL_HapticEffectSupported(h *SDL_Haptic, he SDL_HapticEffect) bool
func SDL_HapticGetEffectStatus ¶
func SDL_HapticGetEffectStatus(h *SDL_Haptic, effect int) int
func SDL_HapticIndex ¶
func SDL_HapticIndex(h *SDL_Haptic) int
func SDL_HapticName ¶
func SDL_HapticNewEffect ¶
func SDL_HapticNewEffect(h *SDL_Haptic, he SDL_HapticEffect) int
func SDL_HapticNumAxes ¶
func SDL_HapticNumAxes(h *SDL_Haptic) int
func SDL_HapticNumEffects ¶
func SDL_HapticNumEffects(h *SDL_Haptic) int
func SDL_HapticNumEffectsPlaying ¶
func SDL_HapticNumEffectsPlaying(h *SDL_Haptic) int
func SDL_HapticOpened ¶
func SDL_HapticPause ¶
func SDL_HapticPause(h *SDL_Haptic) int
func SDL_HapticQuery ¶
func SDL_HapticQuery(h *SDL_Haptic) uint32
func SDL_HapticRumbleInit ¶
func SDL_HapticRumbleInit(h *SDL_Haptic) int
func SDL_HapticRumblePlay ¶
func SDL_HapticRumblePlay(h *SDL_Haptic, strength float32, length uint32) int
func SDL_HapticRumbleStop ¶
func SDL_HapticRumbleStop(h *SDL_Haptic) int
func SDL_HapticRumbleSupported ¶
func SDL_HapticRumbleSupported(h *SDL_Haptic) bool
func SDL_HapticRunEffect ¶
func SDL_HapticRunEffect(h *SDL_Haptic, effect int, iterations uint32) int
func SDL_HapticSetAutocenter ¶
func SDL_HapticSetAutocenter(h *SDL_Haptic, autocenter int) int
func SDL_HapticSetGain ¶
func SDL_HapticSetGain(h *SDL_Haptic, gain int) int
func SDL_HapticStopAll ¶
func SDL_HapticStopAll(h *SDL_Haptic) int
func SDL_HapticStopEffect ¶
func SDL_HapticStopEffect(h *SDL_Haptic, effect int) int
func SDL_HapticUnpause ¶
func SDL_HapticUnpause(h *SDL_Haptic) int
func SDL_HapticUpdateEffect ¶
func SDL_HapticUpdateEffect(h *SDL_Haptic, effect int, data SDL_HapticEffect) int
func SDL_Has3DNow ¶
func SDL_Has3DNow() bool
func SDL_HasARMSIMD ¶
func SDL_HasARMSIMD() bool
func SDL_HasAVX ¶
func SDL_HasAVX() bool
func SDL_HasAVX2 ¶
func SDL_HasAVX2() bool
func SDL_HasAVX512F ¶
func SDL_HasAVX512F() bool
func SDL_HasAltiVec ¶
func SDL_HasAltiVec() bool
func SDL_HasClipboardText ¶
func SDL_HasClipboardText() bool
func SDL_HasEvent ¶
func SDL_HasEvent(eventType SDL_EventType) bool
func SDL_HasEvents ¶
func SDL_HasEvents(minType SDL_EventType, maxType SDL_EventType) bool
func SDL_HasIntersection ¶
func SDL_HasIntersectionF ¶
func SDL_HasMMX ¶
func SDL_HasMMX() bool
func SDL_HasNEON ¶
func SDL_HasNEON() bool
func SDL_HasRDTSC ¶
func SDL_HasRDTSC() bool
func SDL_HasSSE ¶
func SDL_HasSSE() bool
func SDL_HasSSE2 ¶
func SDL_HasSSE2() bool
func SDL_HasSSE3 ¶
func SDL_HasSSE3() bool
func SDL_HasSSE41 ¶
func SDL_HasSSE41() bool
func SDL_HasSSE42 ¶
func SDL_HasSSE42() bool
func SDL_HasScreenKeyboardSupport ¶
func SDL_HasScreenKeyboardSupport() bool
func SDL_HasSurfaceRLE ¶
func SDL_HasSurfaceRLE(surface *SDL_Surface) bool
func SDL_HideWindow ¶
func SDL_HideWindow(window *SDL_Window)
func SDL_InitSubSystem ¶
func SDL_IntersectFRect ¶
func SDL_InvalidParamError ¶
func SDL_InvalidParamError(param string)
func SDL_IsGameController ¶
func SDL_IsScreenKeyboardShown ¶
func SDL_IsScreenKeyboardShown(window *SDL_Window) bool
func SDL_IsScreenSaverEnabled ¶
func SDL_IsScreenSaverEnabled() bool
func SDL_IsTextInputActive ¶
func SDL_IsTextInputActive() bool
func SDL_IsTextInputShown ¶
func SDL_IsTextInputShown() bool
func SDL_JoystickAttachVirtual ¶
func SDL_JoystickAttachVirtual(typ SDL_JoystickType, naxes, nbuttons, nhats int) (deviceIndex int)
func SDL_JoystickAttachVirtualEx ¶
func SDL_JoystickAttachVirtualEx(desc *C.SDL_VirtualJoystickDesc) (deviceIndex int)
func SDL_JoystickClose ¶
func SDL_JoystickClose(joy *SDL_Joystick)
func SDL_JoystickEventState ¶
func SDL_JoystickGetAttached ¶
func SDL_JoystickGetAttached(joy *SDL_Joystick) bool
func SDL_JoystickGetAxis ¶
func SDL_JoystickGetAxis(joy *SDL_Joystick, axis int) int16
func SDL_JoystickGetAxisInitialState ¶
func SDL_JoystickGetAxisInitialState(joy *SDL_Joystick, axis int, state *int16) (ok bool)
func SDL_JoystickGetBall ¶
func SDL_JoystickGetBall(joy *SDL_Joystick, ball int, dx, dy *int32) int
func SDL_JoystickGetButton ¶
func SDL_JoystickGetButton(joy *SDL_Joystick, button int) byte
func SDL_JoystickGetFirmwareVersion ¶
func SDL_JoystickGetFirmwareVersion(joy *SDL_Joystick) uint16
func SDL_JoystickGetGUIDString ¶
func SDL_JoystickGetGUIDString(guid SDL_JoystickGUID, pszGUID []byte, cbGUID int) string
func SDL_JoystickGetHat ¶
func SDL_JoystickGetHat(joy *SDL_Joystick, hat int) byte
func SDL_JoystickGetPlayerIndex ¶
func SDL_JoystickGetPlayerIndex(joy *SDL_Joystick) int
func SDL_JoystickGetProduct ¶
func SDL_JoystickGetProduct(joy *SDL_Joystick) int
func SDL_JoystickGetProductVersion ¶
func SDL_JoystickGetProductVersion(joy *SDL_Joystick) int
func SDL_JoystickGetSerial ¶
func SDL_JoystickGetSerial(joy *SDL_Joystick) string
func SDL_JoystickGetVendor ¶
func SDL_JoystickGetVendor(joy *SDL_Joystick) int
func SDL_JoystickHasLED ¶
func SDL_JoystickHasLED(joy *SDL_Joystick) bool
func SDL_JoystickHasRumble ¶
func SDL_JoystickHasRumble(joy *SDL_Joystick) bool
func SDL_JoystickHasRumbleTriggers ¶
func SDL_JoystickHasRumbleTriggers(joy *SDL_Joystick) bool
func SDL_JoystickIsHaptic ¶
func SDL_JoystickIsHaptic(joy *SDL_Joystick) bool
func SDL_JoystickIsVirtual ¶
func SDL_JoystickName ¶
func SDL_JoystickName(joy *SDL_Joystick) string
func SDL_JoystickNumAxes ¶
func SDL_JoystickNumAxes(joy *SDL_Joystick) int
func SDL_JoystickNumBalls ¶
func SDL_JoystickNumBalls(joy *SDL_Joystick) int
func SDL_JoystickNumButtons ¶
func SDL_JoystickNumButtons(joy *SDL_Joystick) int
func SDL_JoystickNumHats ¶
func SDL_JoystickNumHats(joy *SDL_Joystick) int
func SDL_JoystickPath ¶
func SDL_JoystickPath(joy *SDL_Joystick) string
func SDL_JoystickRumble ¶
func SDL_JoystickRumble(joy *SDL_Joystick, lowFrequencyRumble, highFrequencyRumble uint16, durationMS uint32) int
func SDL_JoystickRumbleTriggers ¶
func SDL_JoystickRumbleTriggers(joy *SDL_Joystick, leftRumble, rightRumble uint16, durationMS uint32) int
func SDL_JoystickSetLED ¶
func SDL_JoystickSetLED(joy *SDL_Joystick, red, green, blue uint8) int
func SDL_JoystickSetPlayerIndex ¶
func SDL_JoystickSetPlayerIndex(joy *SDL_Joystick, playerIndex int)
func SDL_JoystickSetVirtualAxis ¶
func SDL_JoystickSetVirtualAxis(joy *SDL_Joystick, axis int, value int16) int
func SDL_JoystickSetVirtualButton ¶
func SDL_JoystickSetVirtualButton(joy *SDL_Joystick, button int, value uint8) int
func SDL_JoystickSetVirtualHat ¶
func SDL_JoystickSetVirtualHat(joy *SDL_Joystick, hat int, value uint8) int
func SDL_JoystickUpdate ¶
func SDL_JoystickUpdate()
func SDL_LoadDollarTemplates ¶
func SDL_LoadDollarTemplates(t SDL_TouchID, src *SDL_RWops) int
func SDL_LoadFile ¶
func SDL_LoadFile_RW ¶
func SDL_LoadFunction ¶
func SDL_LoadFunction(handle SharedObject, name string) unsafe.Pointer
func SDL_LockAudio ¶
func SDL_LockAudio()
func SDL_LockAudioDevice ¶
func SDL_LockAudioDevice(dev SDL_AudioDeviceID)
func SDL_LockJoysticks ¶
func SDL_LockJoysticks()
func SDL_LockSensors ¶
func SDL_LockSensors()
func SDL_LockSurface ¶
func SDL_LockSurface(surface *SDL_Surface) int
func SDL_LockTexture ¶
func SDL_LockTexture[T SDL_PixelsArray](texture *SDL_Texture, rect *SDL_Rect, pixels *T, pitch *int32) int
func SDL_LockTextureToSurface ¶
func SDL_LockTextureToSurface(texture *SDL_Texture, rect *SDL_Rect, surface *SDL_Surface) int
func SDL_LogCritical ¶
func SDL_LogCritical(category SDL_LogCategory, str string, args ...any)
func SDL_LogDebug ¶
func SDL_LogDebug(category SDL_LogCategory, str string, args ...any)
func SDL_LogError ¶
func SDL_LogError(category SDL_LogCategory, str string, args ...any)
func SDL_LogInfo ¶
func SDL_LogInfo(category SDL_LogCategory, str string, args ...any)
func SDL_LogMessage ¶
func SDL_LogMessage(category SDL_LogCategory, pri SDL_LogPriority, str string, args ...any)
func SDL_LogResetPriorities ¶
func SDL_LogResetPriorities()
func SDL_LogSetAllPriority ¶
func SDL_LogSetAllPriority(p SDL_LogPriority)
func SDL_LogSetOutputFunction ¶
func SDL_LogSetOutputFunction(f LogOutputFunction, data any)
func SDL_LogSetPriority ¶
func SDL_LogSetPriority(category SDL_LogCategory, p SDL_LogPriority)
func SDL_LogVerbose ¶
func SDL_LogVerbose(category SDL_LogCategory, str string, args ...any)
func SDL_LogWarn ¶
func SDL_LogWarn(category SDL_LogCategory, str string, args ...any)
func SDL_LowerBlit ¶
func SDL_LowerBlit(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
func SDL_LowerBlitScaled ¶
func SDL_LowerBlitScaled(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
func SDL_MapRGB ¶
func SDL_MapRGB(format *SDL_PixelFormat, r, g, b uint8) uint32
func SDL_MapRGBA ¶
func SDL_MapRGBA(format *SDL_PixelFormat, r, g, b, a uint8) uint32
func SDL_MaximizeWindow ¶
func SDL_MaximizeWindow(window *SDL_Window)
func SDL_MinimizeWindow ¶
func SDL_MinimizeWindow(window *SDL_Window)
func SDL_MixAudio ¶
func SDL_MixAudioFormat ¶
func SDL_MixAudioFormat(dst, src *uint8, format SDL_AudioFormat, len uint32, volume int)
func SDL_MouseIsHaptic ¶
func SDL_MouseIsHaptic() bool
func SDL_NumHaptics ¶
func SDL_NumHaptics() int
func SDL_NumJoysticks ¶
func SDL_NumJoysticks() int
func SDL_NumSensors ¶
func SDL_NumSensors() int
func SDL_OpenAudio ¶
func SDL_OpenAudio(desired, obtained *SDL_AudioSpec) int
func SDL_OpenURL ¶
func SDL_OutOfMemory ¶
func SDL_OutOfMemory()
func SDL_PauseAudio ¶
func SDL_PauseAudio(pauseOn int32)
func SDL_PauseAudioDevice ¶
func SDL_PauseAudioDevice(dev SDL_AudioDeviceID, pauseOn int32)
func SDL_PeepEvents ¶
func SDL_PeepEvents(events []SDL_Event, numevents int, action SDL_eventaction, minType SDL_EventType, maxType SDL_EventType) int
func SDL_PointInFRect ¶
func SDL_PointInFRect(p *SDL_FPoint, r *SDL_FRect) bool
func SDL_PointInRect ¶
func SDL_PollEvent ¶
func SDL_PremultiplyAlpha ¶
func SDL_PumpEvents ¶
func SDL_PumpEvents()
func SDL_PushEvent ¶
func SDL_PushEvent(event *SDL_Event)
func SDL_QueryTexture ¶
func SDL_QueueAudio ¶
func SDL_QueueAudio(dev SDL_AudioDeviceID, data []byte, len uint32) int
func SDL_QuitSubSystem ¶
func SDL_QuitSubSystem(flags uint32)
func SDL_RWclose ¶
func SDL_RWread ¶
func SDL_RWsize ¶
func SDL_RWtell ¶
func SDL_RWwrite ¶
func SDL_RaiseWindow ¶
func SDL_RaiseWindow(window *SDL_Window)
func SDL_ReadBE16 ¶
func SDL_ReadBE32 ¶
func SDL_ReadBE64 ¶
func SDL_ReadLE16 ¶
func SDL_ReadLE32 ¶
func SDL_ReadLE64 ¶
func SDL_ReadU8 ¶
func SDL_RecordGesture ¶
func SDL_RecordGesture(t SDL_TouchID) int
func SDL_RectEmpty ¶
func SDL_RectEquals ¶
func SDL_RegisterEvents ¶
func SDL_RenderClear ¶
func SDL_RenderClear(renderer *SDL_Renderer) int
func SDL_RenderCopy ¶
func SDL_RenderCopy(renderer *SDL_Renderer, texture *SDL_Texture, src, dst *SDL_Rect) int
func SDL_RenderCopyEx ¶
func SDL_RenderCopyEx(renderer *SDL_Renderer, texture *SDL_Texture, src, dst *SDL_Rect, angle float64, center *SDL_Point, flip SDL_RendererFlip) int
func SDL_RenderCopyExF ¶
func SDL_RenderCopyExF(renderer *SDL_Renderer, texture *SDL_Texture, src *SDL_Rect, dst *SDL_FRect, angle float64, center *SDL_FPoint, flip SDL_RendererFlip) int
func SDL_RenderCopyF ¶
func SDL_RenderCopyF(renderer *SDL_Renderer, texture *SDL_Texture, src *SDL_Rect, dst *SDL_FRect) int
func SDL_RenderDrawLine ¶
func SDL_RenderDrawLine(renderer *SDL_Renderer, x1, y1, x2, y2 int32) int
func SDL_RenderDrawLineF ¶
func SDL_RenderDrawLineF(renderer *SDL_Renderer, x1, y1, x2, y2 float32) int
func SDL_RenderDrawLines ¶
func SDL_RenderDrawLines(renderer *SDL_Renderer, points []SDL_Point, count int) int
func SDL_RenderDrawLinesF ¶
func SDL_RenderDrawLinesF(renderer *SDL_Renderer, points []SDL_FPoint, count int) int
func SDL_RenderDrawPoint ¶
func SDL_RenderDrawPoint(renderer *SDL_Renderer, x, y int32) int
func SDL_RenderDrawPointF ¶
func SDL_RenderDrawPointF(renderer *SDL_Renderer, x, y float32) int
func SDL_RenderDrawPoints ¶
func SDL_RenderDrawPoints(renderer *SDL_Renderer, points []SDL_Point, count int) int
func SDL_RenderDrawPointsF ¶
func SDL_RenderDrawPointsF(renderer *SDL_Renderer, points []SDL_FPoint, count int) int
func SDL_RenderDrawRect ¶
func SDL_RenderDrawRect(renderer *SDL_Renderer, rect *SDL_Rect) int
func SDL_RenderDrawRectF ¶
func SDL_RenderDrawRectF(renderer *SDL_Renderer, rect *SDL_FRect) int
func SDL_RenderDrawRects ¶
func SDL_RenderDrawRects(renderer *SDL_Renderer, rects []SDL_Rect, count int) int
func SDL_RenderDrawRectsF ¶
func SDL_RenderDrawRectsF(renderer *SDL_Renderer, rects []SDL_FRect, count int) int
func SDL_RenderFillRect ¶
func SDL_RenderFillRect(renderer *SDL_Renderer, rect *SDL_Rect) int
func SDL_RenderFillRectF ¶
func SDL_RenderFillRectF(renderer *SDL_Renderer, rect *SDL_FRect) int
func SDL_RenderFillRects ¶
func SDL_RenderFillRects(renderer *SDL_Renderer, rects []SDL_Rect, count int) int
func SDL_RenderFillRectsF ¶
func SDL_RenderFillRectsF(renderer *SDL_Renderer, rects []SDL_FRect, count int) int
func SDL_RenderFlush ¶
func SDL_RenderFlush(renderer *SDL_Renderer) int
func SDL_RenderGeometry ¶
func SDL_RenderGeometry(renderer *SDL_Renderer, texture *SDL_Texture, vertices []SDL_Vertex, indices []int32) int
func SDL_RenderGeometryRaw ¶
func SDL_RenderGetClipRect ¶
func SDL_RenderGetClipRect(renderer *SDL_Renderer, rect *SDL_Rect)
func SDL_RenderGetIntegerScale ¶
func SDL_RenderGetIntegerScale(renderer *SDL_Renderer) bool
func SDL_RenderGetLogicalSize ¶
func SDL_RenderGetLogicalSize(renderer *SDL_Renderer, w, h *int32)
func SDL_RenderGetMetalCommandEncoder ¶
func SDL_RenderGetMetalCommandEncoder(renderer *SDL_Renderer) (encoder unsafe.Pointer)
func SDL_RenderGetMetalLayer ¶
func SDL_RenderGetMetalLayer(renderer *SDL_Renderer) (layer unsafe.Pointer)
func SDL_RenderGetScale ¶
func SDL_RenderGetScale(renderer *SDL_Renderer, scaleX, scaleY *float32)
func SDL_RenderGetViewport ¶
func SDL_RenderGetViewport(renderer *SDL_Renderer, rect *SDL_Rect)
func SDL_RenderIsClipEnabled ¶
func SDL_RenderIsClipEnabled(renderer *SDL_Renderer) bool
func SDL_RenderLogicalToWindow ¶
func SDL_RenderLogicalToWindow(renderer *SDL_Renderer, logicalX, logicalY float32, windowX, windowY *int)
func SDL_RenderPresent ¶
func SDL_RenderPresent(renderer *SDL_Renderer)
func SDL_RenderReadPixels ¶
func SDL_RenderSetClipRect ¶
func SDL_RenderSetClipRect(renderer *SDL_Renderer, rect *SDL_Rect) int
func SDL_RenderSetIntegerScale ¶
func SDL_RenderSetIntegerScale(renderer *SDL_Renderer, v SDL_bool) int
func SDL_RenderSetLogicalSize ¶
func SDL_RenderSetLogicalSize(renderer *SDL_Renderer, w, h int32) int
func SDL_RenderSetScale ¶
func SDL_RenderSetScale(renderer *SDL_Renderer, scaleX, scaleY float32) int
func SDL_RenderSetVSync ¶
func SDL_RenderSetVSync(renderer *SDL_Renderer, vsync SDL_bool) int
func SDL_RenderSetViewport ¶
func SDL_RenderSetViewport(renderer *SDL_Renderer, rect *SDL_Rect) int
func SDL_RenderTargetSupported ¶
func SDL_RenderTargetSupported(renderer *SDL_Renderer) bool
func SDL_RenderWindowToLogical ¶
func SDL_RenderWindowToLogical(renderer *SDL_Renderer, windowX, windowY int, logicalX, logicalY *float32)
func SDL_ResetHint ¶
func SDL_RestoreWindow ¶
func SDL_RestoreWindow(window *SDL_Window)
func SDL_SIMDAlloc ¶
func SDL_SIMDFree ¶
func SDL_SIMDGetAlignment ¶
func SDL_SIMDGetAlignment() int
func SDL_SaveBMP_RW ¶
func SDL_SaveBMP_RW(surface *SDL_Surface, dst *SDL_RWops, freeDst SDL_bool) int
func SDL_SaveDollarTemplate ¶
func SDL_SaveDollarTemplate(g SDL_GestureID, src *SDL_RWops) int
func SDL_SensorClose ¶
func SDL_SensorClose(sensor *SDL_Sensor)
func SDL_SensorGetData ¶
func SDL_SensorGetData(sensor *SDL_Sensor, data []float32, numValues int) int
func SDL_SensorGetDeviceName ¶
func SDL_SensorGetName ¶
func SDL_SensorGetName(sensor *SDL_Sensor) string
func SDL_SensorGetNonPortableType ¶
func SDL_SensorGetNonPortableType(sensor *SDL_Sensor) int
func SDL_SensorUpdate ¶
func SDL_SensorUpdate()
func SDL_SetAudioCallback ¶
func SDL_SetAudioCallback(audioSpec *SDL_AudioSpec, callback SDL_AudioCallback, userdata any)
func SDL_SetClipRect ¶
func SDL_SetClipRect(surface *SDL_Surface, rect *SDL_Rect) bool
func SDL_SetClipboardText ¶
func SDL_SetColorKey ¶
func SDL_SetColorKey(surface *SDL_Surface, flag SDL_bool, key uint32) int
func SDL_SetCursor ¶
func SDL_SetCursor(cursor *SDL_Cursor)
func SDL_SetError ¶
func SDL_SetError(err error)
func SDL_SetEventFilter ¶
func SDL_SetEventFilter(filter SDL_EventFilterCallback, userdata any)
func SDL_SetHint ¶
func SDL_SetHintWithPriority ¶
func SDL_SetHintWithPriority(name, value string, hp SDL_HintPriority) bool
func SDL_SetModState ¶
func SDL_SetModState(mod SDL_Keymod)
func SDL_SetPaletteColors ¶
func SDL_SetPaletteColors(palette *SDL_Palette, colors []SDL_Color) int
func SDL_SetPixelFormatPalette ¶
func SDL_SetPixelFormatPalette(format *SDL_PixelFormat, palette *SDL_Palette) int
func SDL_SetRenderDrawBlendMode ¶
func SDL_SetRenderDrawBlendMode(renderer *SDL_Renderer, bm SDL_BlendMode) int
func SDL_SetRenderDrawColor ¶
func SDL_SetRenderDrawColor(renderer *SDL_Renderer, r, g, b, a uint8) int
func SDL_SetRenderTarget ¶
func SDL_SetRenderTarget(renderer *SDL_Renderer, texture *SDL_Texture) int
func SDL_SetSurfaceAlphaMod ¶
func SDL_SetSurfaceAlphaMod(surface *SDL_Surface, alpha uint8) int
func SDL_SetSurfaceBlendMode ¶
func SDL_SetSurfaceBlendMode(surface *SDL_Surface, bm SDL_BlendMode) int
func SDL_SetSurfaceColorMod ¶
func SDL_SetSurfaceColorMod(surface *SDL_Surface, r, g, b uint8) int
func SDL_SetSurfacePalette ¶
func SDL_SetSurfacePalette(surface *SDL_Surface, palette *SDL_Palette) int
func SDL_SetSurfaceRLE ¶
func SDL_SetSurfaceRLE(surface *SDL_Surface, flag SDL_bool) int
func SDL_SetTextInputRect ¶
func SDL_SetTextInputRect(rect *SDL_Rect)
func SDL_SetTextureAlphaMod ¶
func SDL_SetTextureAlphaMod(texture *SDL_Texture, alpha uint8) int
func SDL_SetTextureBlendMode ¶
func SDL_SetTextureBlendMode(texture *SDL_Texture, bm SDL_BlendMode) int
func SDL_SetTextureColorMod ¶
func SDL_SetTextureColorMod(texture *SDL_Texture, r uint8, g uint8, b uint8) int
func SDL_SetTextureScaleMode ¶
func SDL_SetTextureScaleMode(texture *SDL_Texture, sm SDL_ScaleMode) int
func SDL_SetTextureUserData ¶
func SDL_SetTextureUserData(texture *SDL_Texture, userdata unsafe.Pointer) int
func SDL_SetWindowAlwaysOnTop ¶
func SDL_SetWindowAlwaysOnTop(window *SDL_Window, onTop SDL_bool)
func SDL_SetWindowBordered ¶
func SDL_SetWindowBordered(window *SDL_Window, bordered SDL_bool)
func SDL_SetWindowBrightness ¶
func SDL_SetWindowBrightness(window *SDL_Window, brightness float32) int
func SDL_SetWindowData ¶
func SDL_SetWindowDisplayMode ¶
func SDL_SetWindowDisplayMode(window *SDL_Window, mode *SDL_DisplayMode) int
func SDL_SetWindowFullscreen ¶
func SDL_SetWindowFullscreen(window *SDL_Window, flags uint32) int
func SDL_SetWindowGammaRamp ¶
func SDL_SetWindowGammaRamp(window *SDL_Window, red, green, blue *[256]uint16) int
func SDL_SetWindowGrab ¶
func SDL_SetWindowGrab(window *SDL_Window, grabbed SDL_bool)
func SDL_SetWindowIcon ¶
func SDL_SetWindowIcon(window *SDL_Window, icon *SDL_Surface)
func SDL_SetWindowMaximumSize ¶
func SDL_SetWindowMaximumSize(window *SDL_Window, maxW, maxH int32)
func SDL_SetWindowMinimumSize ¶
func SDL_SetWindowMinimumSize(window *SDL_Window, minW, minH int32)
func SDL_SetWindowMouseRect ¶
func SDL_SetWindowMouseRect(window *SDL_Window, rect *SDL_Rect) int
func SDL_SetWindowOpacity ¶
func SDL_SetWindowOpacity(window *SDL_Window, opacity float32) int
func SDL_SetWindowPosition ¶
func SDL_SetWindowPosition(window *SDL_Window, x, y int32)
func SDL_SetWindowResizable ¶
func SDL_SetWindowResizable(window *SDL_Window, resizable SDL_bool)
func SDL_SetWindowSize ¶
func SDL_SetWindowSize(window *SDL_Window, w, h int32)
func SDL_SetWindowTitle ¶
func SDL_SetWindowTitle(window *SDL_Window, title string)
func SDL_ShowCursor ¶
func SDL_ShowMessageBox ¶
func SDL_ShowMessageBox(data *MessageBoxData) (buttonid int32)
func SDL_ShowSimpleMessageBox ¶
func SDL_ShowSimpleMessageBox(flags SDL_MessageBoxFlags, title, message string, window *SDL_Window) int
func SDL_ShowWindow ¶
func SDL_ShowWindow(window *SDL_Window)
func SDL_SoftStretch ¶
func SDL_SoftStretch(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
func SDL_SoftStretchLinear ¶
func SDL_SoftStretchLinear(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
func SDL_StartTextInput ¶
func SDL_StartTextInput()
func SDL_StopTextInput ¶
func SDL_StopTextInput()
func SDL_UnionFRect ¶
func SDL_UnionRect ¶
func SDL_UnloadObject ¶
func SDL_UnloadObject(handle SharedObject)
func SDL_UnlockAudio ¶
func SDL_UnlockAudio()
func SDL_UnlockAudioDevice ¶
func SDL_UnlockAudioDevice(dev SDL_AudioDeviceID)
func SDL_UnlockJoysticks ¶
func SDL_UnlockJoysticks()
func SDL_UnlockSensors ¶
func SDL_UnlockSensors()
func SDL_UnlockSurface ¶
func SDL_UnlockSurface(surface *SDL_Surface)
func SDL_UnlockTexture ¶
func SDL_UnlockTexture(texture *SDL_Texture)
func SDL_Unsupported ¶
func SDL_Unsupported()
func SDL_UpdateNVTexture ¶
func SDL_UpdateTexture ¶
func SDL_UpdateTexture[T SDL_PixelsArray](texture *SDL_Texture, rect *SDL_Rect, pixels T, pitch int) int
func SDL_UpdateWindowSurface ¶
func SDL_UpdateWindowSurface(window *SDL_Window) int
func SDL_UpdateWindowSurfaceRects ¶
func SDL_UpdateWindowSurfaceRects(window *SDL_Window, rects []SDL_Rect) int
func SDL_UpdateYUVTexture ¶
func SDL_UpperBlit ¶
func SDL_UpperBlit(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
func SDL_UpperBlitScaled ¶
func SDL_UpperBlitScaled(surface *SDL_Surface, srcRect *SDL_Rect, dst *SDL_Surface, dstRect *SDL_Rect) int
func SDL_VERSION ¶
func SDL_VERSION(v *SDL_version)
func SDL_VERSIONNUM ¶
func SDL_VERSION_ATLEAST ¶
func SDL_VideoInit ¶
func SDL_VideoQuit ¶
func SDL_VideoQuit()
func SDL_WaitEvent ¶
func SDL_WaitEventTimeout ¶
func SDL_WarpMouseGlobal ¶
func SDL_WarpMouseInWindow ¶
func SDL_WarpMouseInWindow(window *SDL_Window, x, y int32)
func SDL_WasInit ¶
func SDL_WriteBE16 ¶
func SDL_WriteBE32 ¶
func SDL_WriteBE64 ¶
func SDL_WriteLE16 ¶
func SDL_WriteLE32 ¶
func SDL_WriteLE64 ¶
func SDL_WriteU8 ¶
func SDL_hid_ble_scan ¶
func SDL_hid_ble_scan(device *SDL_hid_device, active bool)
func SDL_hid_close ¶
func SDL_hid_close(device *SDL_hid_device)
func SDL_hid_device_change_count ¶
func SDL_hid_device_change_count() (n uint32)
func SDL_hid_exit ¶
func SDL_hid_exit() int
func SDL_hid_free_enumeration ¶
func SDL_hid_free_enumeration(info *SDL_hid_device_info)
func SDL_hid_get_feature_report ¶
func SDL_hid_get_feature_report(device *SDL_hid_device, data []byte) int
func SDL_hid_get_manufacturer_string ¶
func SDL_hid_get_manufacturer_string[T []uint16 | []int32](device *SDL_hid_device, str T, maxlen uint) int
func SDL_hid_get_product_string ¶
func SDL_hid_get_product_string[T []uint16 | []int32](device *SDL_hid_device, str T, maxlen uint) int
func SDL_hid_get_serial_number_string ¶
func SDL_hid_get_serial_number_string[T []uint16 | []int32](device *SDL_hid_device, str T, maxlen uint) int
func SDL_hid_init ¶
func SDL_hid_init() int
func SDL_hid_read ¶
func SDL_hid_read(device *SDL_hid_device, data []byte) int
func SDL_hid_read_timeout ¶
func SDL_hid_read_timeout(device *SDL_hid_device, data []byte, milliseconds int) int
func SDL_hid_send_feature_report ¶
func SDL_hid_send_feature_report(device *SDL_hid_device, data []byte) int
func SDL_hid_set_nonblocking ¶
func SDL_hid_set_nonblocking(device *SDL_hid_device, nonblock SDL_bool) int
func SDL_hid_write ¶
func SDL_hid_write(device *SDL_hid_device, data []byte) int
func SDL_malloc ¶
func SetDrawColorArray ¶
func SetDrawColorArray(renderer *SDL_Renderer, bs ...uint8) int
func SetYUVConversionMode ¶
func SetYUVConversionMode(mode SDL_YUV_CONVERSION_MODE)
Types ¶
type HintCallback ¶
type HintCallback func(data interface{}, name, oldValue, newValue string)
type HintCallbackAndData ¶
type HintCallbackAndData struct {
// contains filtered or unexported fields
}
struct
type LogOutputFunction ¶
type LogOutputFunction func(data any, category SDL_LogCategory, pri SDL_LogPriority, message string)
func SDL_LogGetOutputFunction ¶
func SDL_LogGetOutputFunction() (LogOutputFunction, any)
type MessageBoxButtonData ¶
type MessageBoxData ¶
type MessageBoxData struct { Flags uint32 Window *SDL_Window Title string Message string Buttons []MessageBoxButtonData ColorScheme *SDL_MessageBoxColorScheme }
type SDL_ArrayOrder ¶
type SDL_ArrayOrder = int32
const ( SDL_ARRAYORDER_NONE SDL_ArrayOrder = 0 SDL_ARRAYORDER_RGB SDL_ArrayOrder = 1 SDL_ARRAYORDER_RGBA SDL_ArrayOrder = 2 SDL_ARRAYORDER_ARGB SDL_ArrayOrder = 3 SDL_ARRAYORDER_BGR SDL_ArrayOrder = 4 SDL_ARRAYORDER_BGRA SDL_ArrayOrder = 5 SDL_ARRAYORDER_ABGR SDL_ArrayOrder = 6 )
type SDL_AudioCVT ¶
type SDL_AudioCVT struct { Needed int32 SrcFormat uint16 DstFormat uint16 RateIncr float64 Buf *uint8 Len int32 LenCVT int32 LenMult int32 LenRatio float64 Filters [10]func(*SDL_AudioCVT, uint16) FilterIndex int32 }
func (*SDL_AudioCVT) BufAlloc ¶
func (cvt *SDL_AudioCVT) BufAlloc(size uintptr)
func (SDL_AudioCVT) BufAsSlice ¶
func (cvt SDL_AudioCVT) BufAsSlice() []byte
BufAsSlice方法返回的切片, 禁止使用append扩容, 会导致内存泄露
func (*SDL_AudioCVT) BufFree ¶
func (cvt *SDL_AudioCVT) BufFree()
type SDL_AudioCallback ¶
type SDL_AudioDeviceEvent ¶
type SDL_AudioDeviceID ¶
type SDL_AudioDeviceID = uint32
func SDL_OpenAudioDevice ¶
func SDL_OpenAudioDevice(device string, isCapture int32, desired, obtained *SDL_AudioSpec, allowedChanges int32) SDL_AudioDeviceID
type SDL_AudioFilter ¶
type SDL_AudioFilter = func(*SDL_AudioCVT, uint16)
type SDL_AudioSpec ¶
type SDL_AudioSpec struct { Freq int32 Format uint16 Channels uint8 Silence uint8 Samples uint16 Padding uint16 Size uint32 // contains filtered or unexported fields }
struct
func SDL_LoadWAV ¶
func SDL_LoadWAV(file string, spec *SDL_AudioSpec, audioBuf *[]uint8) *SDL_AudioSpec
func SDL_LoadWAV_RW ¶
func SDL_LoadWAV_RW(src *SDL_RWops, freeSrc int32, spec *SDL_AudioSpec, audioBuf *[]uint8, audioLen *uint32) *SDL_AudioSpec
type SDL_AudioStatus ¶
type SDL_AudioStatus = int32
const ( SDL_AUDIO_STOPPED SDL_AudioStatus = 0 SDL_AUDIO_PLAYING SDL_AudioStatus = 1 SDL_AUDIO_PAUSED SDL_AudioStatus = 2 )
enum
func SDL_GetAudioDeviceStatus ¶
func SDL_GetAudioDeviceStatus(dev SDL_AudioDeviceID) SDL_AudioStatus
func SDL_GetAudioStatus ¶
func SDL_GetAudioStatus() SDL_AudioStatus
type SDL_AudioStream ¶
type SDL_AudioStream C.SDL_AudioStream
c struct
func SDL_NewAudioStream ¶
func SDL_NewAudioStream(srcFormat SDL_AudioFormat, srcChannels uint8, srcRate int, dstFormat SDL_AudioFormat, dstChannels uint8, dstRate int) (stream *SDL_AudioStream)
type SDL_AudioWatcher ¶
type SDL_AudioWatcher struct {
// contains filtered or unexported fields
}
var SDL_AudioOK SDL_AudioWatcher
type SDL_BitmapOrder ¶
type SDL_BitmapOrder = int32
const ( SDL_BITMAPORDER_NONE SDL_BitmapOrder = 0 SDL_BITMAPORDER_4321 SDL_BitmapOrder = 1 SDL_BITMAPORDER_1234 SDL_BitmapOrder = 2 )
type SDL_BlendFactor ¶
type SDL_BlendFactor = int32
const ( SDL_BLENDFACTOR_ZERO SDL_BlendFactor = 1 SDL_BLENDFACTOR_ONE SDL_BlendFactor = 2 SDL_BLENDFACTOR_SRC_COLOR SDL_BlendFactor = 3 SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR SDL_BlendFactor = 4 SDL_BLENDFACTOR_SRC_ALPHA SDL_BlendFactor = 5 SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA SDL_BlendFactor = 6 SDL_BLENDFACTOR_DST_COLOR SDL_BlendFactor = 7 SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR SDL_BlendFactor = 8 SDL_BLENDFACTOR_DST_ALPHA SDL_BlendFactor = 9 SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA SDL_BlendFactor = 10 )
type SDL_BlendMode ¶
type SDL_BlendMode = int32
typedef
const ( SDL_BLENDMODE_NONE SDL_BlendMode = 0 SDL_BLENDMODE_BLEND SDL_BlendMode = 1 SDL_BLENDMODE_ADD SDL_BlendMode = 2 SDL_BLENDMODE_MOD SDL_BlendMode = 4 SDL_BLENDMODE_MUL SDL_BlendMode = 8 SDL_BLENDMODE_INVALID SDL_BlendMode = 0x7FFFFFFF )
enum
func SDL_ComposeCustomBlendMode ¶
func SDL_ComposeCustomBlendMode(srcColorFactor, dstColorFactor SDL_BlendFactor, colorOperation SDL_BlendOperation, srcAlphaFactor, dstAlphaFactor SDL_BlendFactor, alphaOperation SDL_BlendOperation) SDL_BlendMode
type SDL_BlendOperation ¶
type SDL_BlendOperation = int32
const ( SDL_BLENDOPERATION_ADD SDL_BlendOperation = 1 SDL_BLENDOPERATION_SUBTRACT SDL_BlendOperation = 2 SDL_BLENDOPERATION_REV_SUBTRACT SDL_BlendOperation = 3 SDL_BLENDOPERATION_MINIMUM SDL_BlendOperation = 4 SDL_BLENDOPERATION_MAXIMUM SDL_BlendOperation = 5 )
type SDL_ControllerAxisEvent ¶
type SDL_Cursor ¶
type SDL_Cursor C.SDL_Cursor
c struct
func SDL_CreateColorCursor ¶
func SDL_CreateColorCursor(surface *SDL_Surface, hotX, hotY int32) *SDL_Cursor
func SDL_CreateCursor ¶
func SDL_CreateCursor(data, mask *uint8, w, h, hotX, hotY int32) *SDL_Cursor
func SDL_CreateSystemCursor ¶
func SDL_CreateSystemCursor(id SDL_SystemCursor) *SDL_Cursor
func SDL_GetCursor ¶
func SDL_GetCursor() *SDL_Cursor
func SDL_GetDefaultCursor ¶
func SDL_GetDefaultCursor() *SDL_Cursor
type SDL_DataStructures ¶
type SDL_DataStructures interface { SDL_DisplayMode | SDL_WindowShapeParams | SDL_WindowShapeMode | SDL_Window | SDL_Texture | SDL_Renderer | SDL_Surface | SDL_RWops | SDL_RendererInfo | SDL_Vertex | SDL_Point | SDL_Rect | SDL_FPoint | SDL_FRect | SDL_PixelFormat | SDL_Palette | SDL_CommonEvent | SDL_DisplayEvent | SDL_WindowEvent | SDL_KeyboardEvent | SDL_TextEditingEvent | SDL_TextEditingExtEvent | SDL_TextInputEvent | SDL_MouseMotionEvent | SDL_MouseButtonEvent | SDL_MouseWheelEvent | SDL_JoyAxisEvent | SDL_JoyBallEvent | SDL_JoyHatEvent | SDL_JoyButtonEvent | SDL_JoyDeviceEvent | SDL_ControllerAxisEvent | SDL_ControllerButtonEvent | SDL_ControllerDeviceEvent | SDL_ControllerTouchpadEvent | SDL_ControllerSensorEvent | SDL_AudioDeviceEvent | SDL_TouchFingerEvent | SDL_MultiGestureEvent | SDL_DollarGestureEvent | SDL_DropEvent | SDL_SensorEvent | SDL_QuitEvent | SDL_OSEvent | SDL_UserEvent | SDL_SysWMEvent | SDL_Event | SDL_EventWatcher | SDL_AudioSpec | SDL_AudioCVT | SDL_AudioStream | SDL_AudioWatcher }
type SDL_DisplayEvent ¶
type SDL_DisplayEventID ¶
type SDL_DisplayEventID = int32
const ( SDL_DISPLAYEVENT_NONE SDL_DisplayEventID = 0 SDL_DISPLAYEVENT_ORIENTATION SDL_DisplayEventID = 1 SDL_DISPLAYEVENT_CONNECTED SDL_DisplayEventID = 2 SDL_DISPLAYEVENT_DISCONNECTED SDL_DisplayEventID = 3 )
type SDL_DisplayMode ¶
type SDL_DisplayMode struct { Format uint32 W int32 H int32 RefreshRate int32 Driverdata unsafe.Pointer }
struct
func SDL_GetClosestDisplayMode ¶
func SDL_GetClosestDisplayMode(displayIndex int, mode *SDL_DisplayMode, closest *SDL_DisplayMode) *SDL_DisplayMode
type SDL_DisplayOrientation ¶
type SDL_DisplayOrientation = int32
const ( SDL_ORIENTATION_UNKNOWN SDL_DisplayOrientation = 0 SDL_ORIENTATION_LANDSCAPE SDL_DisplayOrientation = 1 SDL_ORIENTATION_LANDSCAPE_FLIPPED SDL_DisplayOrientation = 2 SDL_ORIENTATION_PORTRAIT SDL_DisplayOrientation = 3 SDL_ORIENTATION_PORTRAIT_FLIPPED SDL_DisplayOrientation = 4 )
type SDL_DollarGestureEvent ¶
type SDL_DropEvent ¶
func (SDL_DropEvent) FileAsString ¶
func (event SDL_DropEvent) FileAsString() string
type SDL_EventFilterCallback ¶
type SDL_EventStructures ¶
type SDL_EventStructures interface { SDL_CommonEvent | SDL_DisplayEvent | SDL_WindowEvent | SDL_KeyboardEvent | SDL_TextEditingEvent | SDL_TextEditingExtEvent | SDL_TextInputEvent | SDL_MouseMotionEvent | SDL_MouseButtonEvent | SDL_MouseWheelEvent | SDL_JoyAxisEvent | SDL_JoyBallEvent | SDL_JoyHatEvent | SDL_JoyButtonEvent | SDL_JoyDeviceEvent | SDL_ControllerAxisEvent | SDL_ControllerButtonEvent | SDL_ControllerDeviceEvent | SDL_ControllerTouchpadEvent | SDL_ControllerSensorEvent | SDL_AudioDeviceEvent | SDL_TouchFingerEvent | SDL_MultiGestureEvent | SDL_DollarGestureEvent | SDL_DropEvent | SDL_SensorEvent | SDL_QuitEvent | SDL_OSEvent | SDL_UserEvent | SDL_SysWMEvent | SDL_Event }
type SDL_EventType ¶
type SDL_EventType = uint32
typedef
const ( SDL_FIRSTEVENT SDL_EventType = 0 SDL_QUIT SDL_EventType = 0x100 SDL_APP_TERMINATING SDL_EventType = 0x101 SDL_APP_LOWMEMORY SDL_EventType = 0x102 SDL_APP_WILLENTERBACKGROUND SDL_EventType = 0x103 SDL_APP_DIDENTERBACKGROUND SDL_EventType = 0x104 SDL_APP_WILLENTERFOREGROUND SDL_EventType = 0x105 SDL_APP_DIDENTERFOREGROUND SDL_EventType = 0x106 SDL_LOCALECHANGED SDL_EventType = 0x107 SDL_DISPLAYEVENT SDL_EventType = 0x150 SDL_WINDOWEVENT SDL_EventType = 0x200 SDL_SYSWMEVENT SDL_EventType = 0x201 SDL_KEYDOWN SDL_EventType = 0x300 SDL_KEYUP SDL_EventType = 0x301 SDL_TEXTEDITING SDL_EventType = 0x302 SDL_TEXTINPUT SDL_EventType = 0x303 SDL_KEYMAPCHANGED SDL_EventType = 0x304 SDL_TEXTEDITING_EXT SDL_EventType = 0x305 SDL_MOUSEMOTION SDL_EventType = 0x400 SDL_MOUSEBUTTONDOWN SDL_EventType = 0x401 SDL_MOUSEBUTTONUP SDL_EventType = 0x402 SDL_MOUSEWHEEL SDL_EventType = 0x403 SDL_JOYAXISMOTION SDL_EventType = 0x600 SDL_JOYBALLMOTION SDL_EventType = 0x601 SDL_JOYHATMOTION SDL_EventType = 0x602 SDL_JOYBUTTONDOWN SDL_EventType = 0x603 SDL_JOYBUTTONUP SDL_EventType = 0x604 SDL_JOYDEVICEADDED SDL_EventType = 0x605 SDL_JOYDEVICEREMOVED SDL_EventType = 0x606 SDL_JOYBATTERYUPDATED SDL_EventType = 0x607 SDL_CONTROLLERAXISMOTION SDL_EventType = 0x650 SDL_CONTROLLERBUTTONDOWN SDL_EventType = 0x651 SDL_CONTROLLERBUTTONUP SDL_EventType = 0x652 SDL_CONTROLLERDEVICEADDED SDL_EventType = 0x653 SDL_CONTROLLERDEVICEREMOVED SDL_EventType = 0x654 SDL_CONTROLLERDEVICEREMAPPED SDL_EventType = 0x655 SDL_CONTROLLERTOUCHPADDOWN SDL_EventType = 0x656 SDL_CONTROLLERTOUCHPADMOTION SDL_EventType = 0x657 SDL_CONTROLLERTOUCHPADUP SDL_EventType = 0x658 SDL_CONTROLLERSENSORUPDATE SDL_EventType = 0x659 SDL_FINGERDOWN SDL_EventType = 0x700 SDL_FINGERUP SDL_EventType = 0x701 SDL_FINGERMOTION SDL_EventType = 0x702 SDL_DOLLARGESTURE SDL_EventType = 0x800 SDL_DOLLARRECORD SDL_EventType = 0x801 SDL_MULTIGESTURE SDL_EventType = 0x802 SDL_CLIPBOARDUPDATE SDL_EventType = 0x900 SDL_DROPFILE SDL_EventType = 0x1000 SDL_DROPTEXT SDL_EventType = 0x1001 SDL_DROPBEGIN SDL_EventType = 0x1002 SDL_DROPCOMPLETE SDL_EventType = 0x1003 SDL_AUDIODEVICEADDED SDL_EventType = 0x1100 SDL_AUDIODEVICEREMOVED SDL_EventType = 0x1101 SDL_SENSORUPDATE SDL_EventType = 0x1200 SDL_RENDER_TARGETS_RESET SDL_EventType = 0x2000 SDL_RENDER_DEVICE_RESET SDL_EventType = 0x2001 SDL_POLLSENTINEL SDL_EventType = 0x7F00 SDL_USEREVENT SDL_EventType = 0x8000 SDL_LASTEVENT SDL_EventType = 0xFFFF )
enum
type SDL_EventWatcher ¶
type SDL_EventWatcher struct {
// contains filtered or unexported fields
}
var SDL_EventOK SDL_EventWatcher
var SDL_EventSpecific SDL_EventWatcher
func SDL_event_watchers_delete ¶
func SDL_event_watchers_delete(watchers []*SDL_EventWatcher, watcher *SDL_EventWatcher) []*SDL_EventWatcher
type SDL_FPoint ¶
type SDL_Finger ¶
struct
func SDL_GetTouchFinger ¶
func SDL_GetTouchFinger(id SDL_TouchID, index int) *SDL_Finger
type SDL_FingerID ¶
type SDL_FingerID = int64
type SDL_FlashOperation ¶
type SDL_FlashOperation = int32
const ( SDL_FLASH_CANCEL SDL_FlashOperation = 0 SDL_FLASH_BRIEFLY SDL_FlashOperation = 1 SDL_FLASH_UNTIL_FOCUSED SDL_FlashOperation = 2 )
type SDL_GLContext ¶
func SDL_GL_CreateContext ¶
func SDL_GL_CreateContext(window *SDL_Window) SDL_GLContext
type SDL_GLContextResetNotification ¶
type SDL_GLContextResetNotification = int32
const ( SDL_GL_CONTEXT_RESET_NO_NOTIFICATION SDL_GLContextResetNotification = 0 SDL_GL_CONTEXT_RESET_LOSE_CONTEXT SDL_GLContextResetNotification = 1 )
type SDL_GLattr ¶
type SDL_GLattr = int32
const ( SDL_GL_RED_SIZE SDL_GLattr = 0 SDL_GL_GREEN_SIZE SDL_GLattr = 1 SDL_GL_BLUE_SIZE SDL_GLattr = 2 SDL_GL_ALPHA_SIZE SDL_GLattr = 3 SDL_GL_BUFFER_SIZE SDL_GLattr = 4 SDL_GL_DOUBLEBUFFER SDL_GLattr = 5 SDL_GL_DEPTH_SIZE SDL_GLattr = 6 SDL_GL_STENCIL_SIZE SDL_GLattr = 7 SDL_GL_ACCUM_RED_SIZE SDL_GLattr = 8 SDL_GL_ACCUM_GREEN_SIZE SDL_GLattr = 9 SDL_GL_ACCUM_BLUE_SIZE SDL_GLattr = 10 SDL_GL_ACCUM_ALPHA_SIZE SDL_GLattr = 11 SDL_GL_STEREO SDL_GLattr = 12 SDL_GL_MULTISAMPLEBUFFERS SDL_GLattr = 13 SDL_GL_MULTISAMPLESAMPLES SDL_GLattr = 14 SDL_GL_ACCELERATED_VISUAL SDL_GLattr = 15 SDL_GL_RETAINED_BACKING SDL_GLattr = 16 SDL_GL_CONTEXT_MAJOR_VERSION SDL_GLattr = 17 SDL_GL_CONTEXT_MINOR_VERSION SDL_GLattr = 18 SDL_GL_CONTEXT_EGL SDL_GLattr = 19 SDL_GL_CONTEXT_FLAGS SDL_GLattr = 20 SDL_GL_CONTEXT_PROFILE_MASK SDL_GLattr = 21 SDL_GL_SHARE_WITH_CURRENT_CONTEXT SDL_GLattr = 22 SDL_GL_FRAMEBUFFER_SRGB_CAPABLE SDL_GLattr = 23 SDL_GL_CONTEXT_RELEASE_BEHAVIOR SDL_GLattr = 24 SDL_GL_CONTEXT_RESET_NOTIFICATION SDL_GLattr = 25 SDL_GL_CONTEXT_NO_ERROR SDL_GLattr = 26 SDL_GL_FLOATBUFFERS SDL_GLattr = 27 )
type SDL_GLcontextFlag ¶
type SDL_GLcontextFlag = int32
const ( SDL_GL_CONTEXT_DEBUG_FLAG SDL_GLcontextFlag = 1 SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG SDL_GLcontextFlag = 2 SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG SDL_GLcontextFlag = 4 SDL_GL_CONTEXT_RESET_ISOLATION_FLAG SDL_GLcontextFlag = 8 )
type SDL_GLcontextReleaseFlag ¶
type SDL_GLcontextReleaseFlag = int32
const ( SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE SDL_GLcontextReleaseFlag = 0 SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH SDL_GLcontextReleaseFlag = 1 )
type SDL_GLprofile ¶
type SDL_GLprofile = int32
const ( SDL_GL_CONTEXT_PROFILE_CORE SDL_GLprofile = 1 SDL_GL_CONTEXT_PROFILE_COMPATIBILITY SDL_GLprofile = 2 SDL_GL_CONTEXT_PROFILE_ES SDL_GLprofile = 4 )
type SDL_GameController ¶
type SDL_GameController C.SDL_GameController
c struct
func SDL_GameControllerFromInstanceID ¶
func SDL_GameControllerFromInstanceID(joyid SDL_JoystickID) *SDL_GameController
func SDL_GameControllerFromPlayerIndex ¶
func SDL_GameControllerFromPlayerIndex(playerIndex int) *SDL_GameController
func SDL_GameControllerOpen ¶
func SDL_GameControllerOpen(index int) *SDL_GameController
type SDL_GameControllerAxis ¶
type SDL_GameControllerAxis = int32
const ( SDL_CONTROLLER_AXIS_INVALID SDL_GameControllerAxis = -1 SDL_CONTROLLER_AXIS_LEFTX SDL_GameControllerAxis = 0 SDL_CONTROLLER_AXIS_LEFTY SDL_GameControllerAxis = 1 SDL_CONTROLLER_AXIS_RIGHTX SDL_GameControllerAxis = 2 SDL_CONTROLLER_AXIS_RIGHTY SDL_GameControllerAxis = 3 SDL_CONTROLLER_AXIS_TRIGGERLEFT SDL_GameControllerAxis = 4 SDL_CONTROLLER_AXIS_TRIGGERRIGHT SDL_GameControllerAxis = 5 SDL_CONTROLLER_AXIS_MAX SDL_GameControllerAxis = 6 )
func SDL_GameControllerGetAxisFromString ¶
func SDL_GameControllerGetAxisFromString(pchString string) SDL_GameControllerAxis
type SDL_GameControllerBindType ¶
type SDL_GameControllerBindType = int32
const ( SDL_CONTROLLER_BINDTYPE_NONE SDL_GameControllerBindType = 0 SDL_CONTROLLER_BINDTYPE_BUTTON SDL_GameControllerBindType = 1 SDL_CONTROLLER_BINDTYPE_AXIS SDL_GameControllerBindType = 2 SDL_CONTROLLER_BINDTYPE_HAT SDL_GameControllerBindType = 3 )
type SDL_GameControllerButton ¶
type SDL_GameControllerButton = int32
const ( SDL_CONTROLLER_BUTTON_INVALID SDL_GameControllerButton = -1 SDL_CONTROLLER_BUTTON_A SDL_GameControllerButton = 0 SDL_CONTROLLER_BUTTON_B SDL_GameControllerButton = 1 SDL_CONTROLLER_BUTTON_X SDL_GameControllerButton = 2 SDL_CONTROLLER_BUTTON_Y SDL_GameControllerButton = 3 SDL_CONTROLLER_BUTTON_BACK SDL_GameControllerButton = 4 SDL_CONTROLLER_BUTTON_GUIDE SDL_GameControllerButton = 5 SDL_CONTROLLER_BUTTON_START SDL_GameControllerButton = 6 SDL_CONTROLLER_BUTTON_LEFTSTICK SDL_GameControllerButton = 7 SDL_CONTROLLER_BUTTON_RIGHTSTICK SDL_GameControllerButton = 8 SDL_CONTROLLER_BUTTON_LEFTSHOULDER SDL_GameControllerButton = 9 SDL_CONTROLLER_BUTTON_RIGHTSHOULDER SDL_GameControllerButton = 10 SDL_CONTROLLER_BUTTON_DPAD_UP SDL_GameControllerButton = 11 SDL_CONTROLLER_BUTTON_DPAD_DOWN SDL_GameControllerButton = 12 SDL_CONTROLLER_BUTTON_DPAD_LEFT SDL_GameControllerButton = 13 SDL_CONTROLLER_BUTTON_DPAD_RIGHT SDL_GameControllerButton = 14 SDL_CONTROLLER_BUTTON_MISC1 SDL_GameControllerButton = 15 SDL_CONTROLLER_BUTTON_PADDLE1 SDL_GameControllerButton = 16 SDL_CONTROLLER_BUTTON_PADDLE2 SDL_GameControllerButton = 17 SDL_CONTROLLER_BUTTON_PADDLE3 SDL_GameControllerButton = 18 SDL_CONTROLLER_BUTTON_PADDLE4 SDL_GameControllerButton = 19 SDL_CONTROLLER_BUTTON_TOUCHPAD SDL_GameControllerButton = 20 SDL_CONTROLLER_BUTTON_MAX SDL_GameControllerButton = 21 )
func SDL_GameControllerGetButtonFromString ¶
func SDL_GameControllerGetButtonFromString(pchString string) SDL_GameControllerButton
type SDL_GameControllerButtonBind ¶
type SDL_GameControllerButtonBind struct { BindType int32 Value [SDL_GAMECONTROLLER_BUTTON_BIND_VALUE_SIZE]byte }
struct
func SDL_GameControllerGetBindForAxis ¶
func SDL_GameControllerGetBindForAxis(ctrl *SDL_GameController, axis SDL_GameControllerAxis) SDL_GameControllerButtonBind
func SDL_GameControllerGetBindForButton ¶
func SDL_GameControllerGetBindForButton(ctrl *SDL_GameController, btn SDL_GameControllerButton) SDL_GameControllerButtonBind
func (*SDL_GameControllerButtonBind) Axis ¶
func (bind *SDL_GameControllerButtonBind) Axis() int
func (*SDL_GameControllerButtonBind) Button ¶
func (bind *SDL_GameControllerButtonBind) Button() int
func (*SDL_GameControllerButtonBind) Hat ¶
func (bind *SDL_GameControllerButtonBind) Hat() int
func (*SDL_GameControllerButtonBind) HatMask ¶
func (bind *SDL_GameControllerButtonBind) HatMask() int
func (*SDL_GameControllerButtonBind) Type ¶
func (bind *SDL_GameControllerButtonBind) Type() int
type SDL_GameControllerType ¶
type SDL_GameControllerType = int32
typedef
const ( SDL_CONTROLLER_TYPE_UNKNOWN SDL_GameControllerType = 0 SDL_CONTROLLER_TYPE_XBOX360 SDL_GameControllerType = 1 SDL_CONTROLLER_TYPE_XBOXONE SDL_GameControllerType = 2 SDL_CONTROLLER_TYPE_PS3 SDL_GameControllerType = 3 SDL_CONTROLLER_TYPE_PS4 SDL_GameControllerType = 4 SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO SDL_GameControllerType = 5 SDL_CONTROLLER_TYPE_VIRTUAL SDL_GameControllerType = 6 SDL_CONTROLLER_TYPE_PS5 SDL_GameControllerType = 7 SDL_CONTROLLER_TYPE_AMAZON_LUNA SDL_GameControllerType = 8 SDL_CONTROLLER_TYPE_GOOGLE_STADIA SDL_GameControllerType = 9 )
enum
func SDL_GameControllerGetType ¶
func SDL_GameControllerGetType(ctrl *SDL_GameController) SDL_GameControllerType
func SDL_GameControllerTypeForIndex ¶
func SDL_GameControllerTypeForIndex(index int) SDL_GameControllerType
type SDL_Haptic ¶
type SDL_Haptic C.SDL_Haptic
c struct
func SDL_HapticOpen ¶
func SDL_HapticOpen(index int) *SDL_Haptic
func SDL_HapticOpenFromJoystick ¶
func SDL_HapticOpenFromJoystick(joy *SDL_Joystick) *SDL_Haptic
func SDL_HapticOpenFromMouse ¶
func SDL_HapticOpenFromMouse() *SDL_Haptic
type SDL_HapticCondition ¶
type SDL_HapticConstant ¶
type SDL_HapticCustom ¶
type SDL_HapticEffect ¶
type SDL_HapticEffect struct {
// contains filtered or unexported fields
}
type SDL_HapticLeftRight ¶
type SDL_HapticPeriodic ¶
type SDL_HapticRamp ¶
type SDL_HintPriority ¶
type SDL_HintPriority = int32
typedef
const ( SDL_HINT_DEFAULT SDL_HintPriority = 0 SDL_HINT_NORMAL SDL_HintPriority = 1 SDL_HINT_OVERRIDE SDL_HintPriority = 2 )
enum
type SDL_HitTest ¶
type SDL_HitTest = func(*SDL_Window, *SDL_Point, unsafe.Pointer) int32
type SDL_HitTestResult ¶
type SDL_HitTestResult = int32
const ( SDL_HITTEST_NORMAL SDL_HitTestResult = 0 SDL_HITTEST_DRAGGABLE SDL_HitTestResult = 1 SDL_HITTEST_RESIZE_TOPLEFT SDL_HitTestResult = 2 SDL_HITTEST_RESIZE_TOP SDL_HitTestResult = 3 SDL_HITTEST_RESIZE_TOPRIGHT SDL_HitTestResult = 4 SDL_HITTEST_RESIZE_RIGHT SDL_HitTestResult = 5 SDL_HITTEST_RESIZE_BOTTOMRIGHT SDL_HitTestResult = 6 SDL_HITTEST_RESIZE_BOTTOM SDL_HitTestResult = 7 SDL_HITTEST_RESIZE_BOTTOMLEFT SDL_HitTestResult = 8 SDL_HITTEST_RESIZE_LEFT SDL_HitTestResult = 9 )
type SDL_JoyAxisEvent ¶
type SDL_JoyBallEvent ¶
type SDL_JoyBatteryEvent ¶
type SDL_JoyButtonEvent ¶
type SDL_JoyDeviceEvent ¶
type SDL_JoyHatEvent ¶
type SDL_Joystick ¶
type SDL_Joystick C.SDL_Joystick
c struct
func SDL_GameControllerGetJoystick ¶
func SDL_GameControllerGetJoystick(ctrl *SDL_GameController) *SDL_Joystick
func SDL_JoystickFromInstanceID ¶
func SDL_JoystickFromInstanceID(joyid SDL_JoystickID) *SDL_Joystick
func SDL_JoystickFromPlayerIndex ¶
func SDL_JoystickFromPlayerIndex(playerIndex int) *SDL_Joystick
func SDL_JoystickOpen ¶
func SDL_JoystickOpen(index int) *SDL_Joystick
type SDL_JoystickGUID ¶
type SDL_JoystickGUID struct {
Data [16]uint8
}
struct
func SDL_JoystickGetDeviceGUID ¶
func SDL_JoystickGetDeviceGUID(index int) SDL_JoystickGUID
func SDL_JoystickGetGUID ¶
func SDL_JoystickGetGUID(joy *SDL_Joystick) SDL_JoystickGUID
func SDL_JoystickGetGUIDFromString ¶
func SDL_JoystickGetGUIDFromString(pchGUID string) SDL_JoystickGUID
type SDL_JoystickID ¶
type SDL_JoystickID = int32
func SDL_JoystickGetDeviceInstanceID ¶
func SDL_JoystickGetDeviceInstanceID(index int) SDL_JoystickID
func SDL_JoystickInstanceID ¶
func SDL_JoystickInstanceID(joy *SDL_Joystick) SDL_JoystickID
type SDL_JoystickPowerLevel ¶
type SDL_JoystickPowerLevel = int32
const ( SDL_JOYSTICK_POWER_UNKNOWN SDL_JoystickPowerLevel = -1 SDL_JOYSTICK_POWER_EMPTY SDL_JoystickPowerLevel = 0 SDL_JOYSTICK_POWER_LOW SDL_JoystickPowerLevel = 1 SDL_JOYSTICK_POWER_MEDIUM SDL_JoystickPowerLevel = 2 SDL_JOYSTICK_POWER_FULL SDL_JoystickPowerLevel = 3 SDL_JOYSTICK_POWER_WIRED SDL_JoystickPowerLevel = 4 SDL_JOYSTICK_POWER_MAX SDL_JoystickPowerLevel = 5 )
func SDL_JoystickCurrentPowerLevel ¶
func SDL_JoystickCurrentPowerLevel(joy *SDL_Joystick) SDL_JoystickPowerLevel
type SDL_JoystickType ¶
type SDL_JoystickType = int32
const ( SDL_JOYSTICK_TYPE_UNKNOWN SDL_JoystickType = 0 SDL_JOYSTICK_TYPE_GAMECONTROLLER SDL_JoystickType = 1 SDL_JOYSTICK_TYPE_WHEEL SDL_JoystickType = 2 SDL_JOYSTICK_TYPE_ARCADE_STICK SDL_JoystickType = 3 SDL_JOYSTICK_TYPE_FLIGHT_STICK SDL_JoystickType = 4 SDL_JOYSTICK_TYPE_DANCE_PAD SDL_JoystickType = 5 SDL_JOYSTICK_TYPE_GUITAR SDL_JoystickType = 6 SDL_JOYSTICK_TYPE_DRUM_KIT SDL_JoystickType = 7 SDL_JOYSTICK_TYPE_ARCADE_PAD SDL_JoystickType = 8 SDL_JOYSTICK_TYPE_THROTTLE SDL_JoystickType = 9 )
enum
func SDL_JoystickGetDeviceType ¶
func SDL_JoystickGetDeviceType(index int) SDL_JoystickType
func SDL_JoystickGetType ¶
func SDL_JoystickGetType(joy *SDL_Joystick) SDL_JoystickType
type SDL_KeyCode ¶
type SDL_KeyCode = int32
var ( SDLK_UNKNOWN = 0 SDLK_RETURN SDL_KeyCode = '\r' SDLK_ESCAPE SDL_KeyCode = '\x1B' SDLK_BACKSPACE SDL_KeyCode = '\b' SDLK_TAB SDL_KeyCode = '\t' SDLK_SPACE SDL_KeyCode = ' ' SDLK_EXCLAIM SDL_KeyCode = '!' SDLK_QUOTEDBL SDL_KeyCode = '"' SDLK_HASH SDL_KeyCode = '#' SDLK_PERCENT SDL_KeyCode = '%' SDLK_DOLLAR SDL_KeyCode = '$' SDLK_AMPERSAND SDL_KeyCode = '&' SDLK_QUOTE SDL_KeyCode = '\'' SDLK_LEFTPAREN SDL_KeyCode = '(' SDLK_RIGHTPAREN SDL_KeyCode = ')' SDLK_ASTERISK SDL_KeyCode = '*' SDLK_PLUS SDL_KeyCode = '+' SDLK_COMMA SDL_KeyCode = ',' SDLK_MINUS SDL_KeyCode = '-' SDLK_PERIOD SDL_KeyCode = '.' SDLK_SLASH SDL_KeyCode = '/' SDLK_0 SDL_KeyCode = '0' SDLK_1 SDL_KeyCode = '1' SDLK_2 SDL_KeyCode = '2' SDLK_3 SDL_KeyCode = '3' SDLK_4 SDL_KeyCode = '4' SDLK_5 SDL_KeyCode = '5' SDLK_6 SDL_KeyCode = '6' SDLK_7 SDL_KeyCode = '7' SDLK_8 SDL_KeyCode = '8' SDLK_9 SDL_KeyCode = '9' SDLK_COLON SDL_KeyCode = ':' SDLK_SEMICOLON SDL_KeyCode = ';' SDLK_LESS SDL_KeyCode = '<' SDLK_EQUALS SDL_KeyCode = '=' SDLK_GREATER SDL_KeyCode = '>' SDLK_QUESTION SDL_KeyCode = '?' SDLK_AT SDL_KeyCode = '@' // Skip uppercase letters SDLK_LEFTBRACKET SDL_KeyCode = '[' SDLK_BACKSLASH SDL_KeyCode = '\\' SDLK_RIGHTBRACKET SDL_KeyCode = ']' SDLK_CARET SDL_KeyCode = '^' SDLK_UNDERSCORE SDL_KeyCode = '_' SDLK_BACKQUOTE SDL_KeyCode = '`' SDLK_a SDL_KeyCode = 'a' SDLK_b SDL_KeyCode = 'b' SDLK_c SDL_KeyCode = 'c' SDLK_d SDL_KeyCode = 'd' SDLK_e SDL_KeyCode = 'e' SDLK_f SDL_KeyCode = 'f' SDLK_g SDL_KeyCode = 'g' SDLK_h SDL_KeyCode = 'h' SDLK_i SDL_KeyCode = 'i' SDLK_j SDL_KeyCode = 'j' SDLK_k SDL_KeyCode = 'k' SDLK_l SDL_KeyCode = 'l' SDLK_m SDL_KeyCode = 'm' SDLK_n SDL_KeyCode = 'n' SDLK_o SDL_KeyCode = 'o' SDLK_p SDL_KeyCode = 'p' SDLK_q SDL_KeyCode = 'q' SDLK_r SDL_KeyCode = 'r' SDLK_s SDL_KeyCode = 's' SDLK_t SDL_KeyCode = 't' SDLK_u SDL_KeyCode = 'u' SDLK_v SDL_KeyCode = 'v' SDLK_w SDL_KeyCode = 'w' SDLK_x SDL_KeyCode = 'x' SDLK_y SDL_KeyCode = 'y' SDLK_z SDL_KeyCode = 'z' SDLK_CAPSLOCK SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CAPSLOCK) SDLK_F1 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F1) SDLK_F2 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F2) SDLK_F3 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F3) SDLK_F4 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F4) SDLK_F5 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F5) SDLK_F6 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F6) SDLK_F7 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F7) SDLK_F8 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F8) SDLK_F9 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F9) SDLK_F10 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F10) SDLK_F11 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F11) SDLK_F12 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F12) SDLK_PRINTSCREEN SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRINTSCREEN) SDLK_SCROLLLOCK SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SCROLLLOCK) SDLK_PAUSE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAUSE) SDLK_INSERT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_INSERT) SDLK_HOME SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HOME) SDLK_PAGEUP SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEUP) SDLK_DELETE SDL_KeyCode = '\x7F' SDLK_END SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_END) SDLK_PAGEDOWN SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEDOWN) SDLK_RIGHT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RIGHT) SDLK_LEFT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LEFT) SDLK_DOWN SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DOWN) SDLK_UP SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UP) SDLK_NUMLOCKCLEAR SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_NUMLOCKCLEAR) SDLK_KP_DIVIDE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DIVIDE) SDLK_KP_MULTIPLY SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MULTIPLY) SDLK_KP_MINUS SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MINUS) SDLK_KP_PLUS SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUS) SDLK_KP_ENTER SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_ENTER) SDLK_KP_1 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_1) SDLK_KP_2 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_2) SDLK_KP_3 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_3) SDLK_KP_4 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_4) SDLK_KP_5 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_5) SDLK_KP_6 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_6) SDLK_KP_7 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_7) SDLK_KP_8 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_8) SDLK_KP_9 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_9) SDLK_KP_0 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_0) SDLK_KP_PERIOD SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERIOD) SDLK_APPLICATION SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APPLICATION) SDLK_POWER SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_POWER) SDLK_KP_EQUALS SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALS) SDLK_F13 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F13) SDLK_F14 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F14) SDLK_F15 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F15) SDLK_F16 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F16) SDLK_F17 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F17) SDLK_F18 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F18) SDLK_F19 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F19) SDLK_F20 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F20) SDLK_F21 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F21) SDLK_F22 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F22) SDLK_F23 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F23) SDLK_F24 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F24) SDLK_EXECUTE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXECUTE) SDLK_HELP SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HELP) SDLK_MENU SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MENU) SDLK_SELECT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SELECT) SDLK_STOP SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_STOP) SDLK_AGAIN SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AGAIN) SDLK_UNDO SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UNDO) SDLK_CUT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CUT) SDLK_COPY SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COPY) SDLK_PASTE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PASTE) SDLK_FIND SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_FIND) SDLK_MUTE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MUTE) SDLK_VOLUMEUP SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEUP) SDLK_VOLUMEDOWN SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEDOWN) SDLK_KP_COMMA SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COMMA) SDLK_KP_EQUALSAS400 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALSAS400) SDLK_ALTERASE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_ALTERASE) SDLK_SYSREQ SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SYSREQ) SDLK_CANCEL SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CANCEL) SDLK_CLEAR SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEAR) SDLK_PRIOR SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRIOR) SDLK_RETURN2 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RETURN2) SDLK_SEPARATOR SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SEPARATOR) SDLK_OUT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OUT) SDLK_OPER SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OPER) SDLK_CLEARAGAIN SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEARAGAIN) SDLK_CRSEL SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CRSEL) SDLK_EXSEL SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXSEL) SDLK_KP_00 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_00) SDLK_KP_000 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_000) SDLK_THOUSANDSSEPARATOR SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_THOUSANDSSEPARATOR) SDLK_DECIMALSEPARATOR SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DECIMALSEPARATOR) SDLK_CURRENCYUNIT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYUNIT) SDLK_CURRENCYSUBUNIT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYSUBUNIT) SDLK_KP_LEFTPAREN SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTPAREN) SDLK_KP_RIGHTPAREN SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTPAREN) SDLK_KP_LEFTBRACE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTBRACE) SDLK_KP_RIGHTBRACE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTBRACE) SDLK_KP_TAB SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_TAB) SDLK_KP_BACKSPACE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BACKSPACE) SDLK_KP_A SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_A) SDLK_KP_B SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_B) SDLK_KP_C SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_C) SDLK_KP_D SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_D) SDLK_KP_E SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_E) SDLK_KP_F SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_F) SDLK_KP_XOR SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_XOR) SDLK_KP_POWER SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_POWER) SDLK_KP_PERCENT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERCENT) SDLK_KP_LESS SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LESS) SDLK_KP_GREATER SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_GREATER) SDLK_KP_AMPERSAND SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AMPERSAND) SDLK_KP_DBLAMPERSAND SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLAMPERSAND) SDLK_KP_VERTICALBAR SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_VERTICALBAR) SDLK_KP_DBLVERTICALBAR SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLVERTICALBAR) SDLK_KP_COLON SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COLON) SDLK_KP_HASH SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HASH) SDLK_KP_SPACE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_SPACE) SDLK_KP_AT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AT) SDLK_KP_EXCLAM SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EXCLAM) SDLK_KP_MEMSTORE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSTORE) SDLK_KP_MEMRECALL SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMRECALL) SDLK_KP_MEMCLEAR SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMCLEAR) SDLK_KP_MEMADD SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMADD) SDLK_KP_MEMSUBTRACT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSUBTRACT) SDLK_KP_MEMMULTIPLY SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMMULTIPLY) SDLK_KP_MEMDIVIDE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMDIVIDE) SDLK_KP_PLUSMINUS SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUSMINUS) SDLK_KP_CLEAR SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEAR) SDLK_KP_CLEARENTRY SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEARENTRY) SDLK_KP_BINARY SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BINARY) SDLK_KP_OCTAL SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_OCTAL) SDLK_KP_DECIMAL SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DECIMAL) SDLK_KP_HEXADECIMAL SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HEXADECIMAL) SDLK_LCTRL SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LCTRL) SDLK_LSHIFT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LSHIFT) SDLK_LALT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LALT) SDLK_LGUI SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LGUI) SDLK_RCTRL SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RCTRL) SDLK_RSHIFT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RSHIFT) SDLK_RALT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RALT) SDLK_RGUI SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RGUI) SDLK_MODE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MODE) SDLK_AUDIONEXT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIONEXT) SDLK_AUDIOPREV SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPREV) SDLK_AUDIOSTOP SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOSTOP) SDLK_AUDIOPLAY SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPLAY) SDLK_AUDIOMUTE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOMUTE) SDLK_MEDIASELECT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MEDIASELECT) SDLK_WWW SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_WWW) SDLK_MAIL SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MAIL) SDLK_CALCULATOR SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CALCULATOR) SDLK_COMPUTER SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COMPUTER) SDLK_AC_SEARCH SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_SEARCH) SDLK_AC_HOME SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_HOME) SDLK_AC_BACK SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BACK) SDLK_AC_FORWARD SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_FORWARD) SDLK_AC_STOP SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_STOP) SDLK_AC_REFRESH SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_REFRESH) SDLK_AC_BOOKMARKS SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BOOKMARKS) SDLK_BRIGHTNESSDOWN SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSDOWN) SDLK_BRIGHTNESSUP SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSUP) SDLK_DISPLAYSWITCH SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DISPLAYSWITCH) SDLK_KBDILLUMTOGGLE SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMTOGGLE) SDLK_KBDILLUMDOWN SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMDOWN) SDLK_KBDILLUMUP SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMUP) SDLK_EJECT SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EJECT) SDLK_SLEEP SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SLEEP) SDLK_APP1 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP1) SDLK_APP2 SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP2) SDLK_AUDIOREWIND SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOREWIND) SDLK_AUDIOFASTFORWARD SDL_KeyCode = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOFASTFORWARD) )
type SDL_KeyboardEvent ¶
type SDL_Keycode ¶
type SDL_Keycode = int32
func SDL_GetKeyFromName ¶
func SDL_GetKeyFromName(name string) SDL_Keycode
func SDL_GetKeyFromScancode ¶
func SDL_GetKeyFromScancode(code SDL_Scancode) SDL_Keycode
type SDL_Keymod ¶
type SDL_Keymod = uint32
const ( KMOD_NONE SDL_Keymod = 0x0000 KMOD_LSHIFT SDL_Keymod = 0x0001 KMOD_RSHIFT SDL_Keymod = 0x0002 KMOD_LCTRL SDL_Keymod = 0x0040 KMOD_RCTRL SDL_Keymod = 0x0080 KMOD_LALT SDL_Keymod = 0x0100 KMOD_RALT SDL_Keymod = 0x0200 KMOD_LGUI SDL_Keymod = 0x0400 KMOD_RGUI SDL_Keymod = 0x0800 KMOD_NUM SDL_Keymod = 0x1000 KMOD_CAPS SDL_Keymod = 0x2000 KMOD_MODE SDL_Keymod = 0x4000 KMOD_SCROLL SDL_Keymod = 0x8000 KMOD_CTRL SDL_Keymod = KMOD_LCTRL | KMOD_RCTRL KMOD_SHIFT SDL_Keymod = KMOD_LSHIFT | KMOD_RSHIFT KMOD_ALT SDL_Keymod = KMOD_LALT | KMOD_RALT KMOD_GUI SDL_Keymod = KMOD_LGUI | KMOD_RGUI KMOD_RESERVED SDL_Keymod = KMOD_SCROLL )
func SDL_GetModState ¶
func SDL_GetModState() SDL_Keymod
type SDL_Keysym ¶
struct
type SDL_Locale ¶
type SDL_Locale struct { Language string // A language name, like "en" for English. Country string // A country, like "US" for America. Can be empty. }
struct
func SDL_GetPreferredLocales ¶
func SDL_GetPreferredLocales() (locale *SDL_Locale)
type SDL_LogCategory ¶
type SDL_LogCategory = int32
typedef
const ( SDL_LOG_CATEGORY_APPLICATION SDL_LogCategory = 0 SDL_LOG_CATEGORY_ERROR SDL_LogCategory = 1 SDL_LOG_CATEGORY_ASSERT SDL_LogCategory = 2 SDL_LOG_CATEGORY_SYSTEM SDL_LogCategory = 3 SDL_LOG_CATEGORY_AUDIO SDL_LogCategory = 4 SDL_LOG_CATEGORY_VIDEO SDL_LogCategory = 5 SDL_LOG_CATEGORY_RENDER SDL_LogCategory = 6 SDL_LOG_CATEGORY_INPUT SDL_LogCategory = 7 SDL_LOG_CATEGORY_TEST SDL_LogCategory = 8 SDL_LOG_CATEGORY_RESERVED1 SDL_LogCategory = 9 SDL_LOG_CATEGORY_RESERVED2 SDL_LogCategory = 10 SDL_LOG_CATEGORY_RESERVED3 SDL_LogCategory = 11 SDL_LOG_CATEGORY_RESERVED4 SDL_LogCategory = 12 SDL_LOG_CATEGORY_RESERVED5 SDL_LogCategory = 13 SDL_LOG_CATEGORY_RESERVED6 SDL_LogCategory = 14 SDL_LOG_CATEGORY_RESERVED7 SDL_LogCategory = 15 SDL_LOG_CATEGORY_RESERVED8 SDL_LogCategory = 16 SDL_LOG_CATEGORY_RESERVED9 SDL_LogCategory = 17 SDL_LOG_CATEGORY_RESERVED10 SDL_LogCategory = 18 SDL_LOG_CATEGORY_CUSTOM SDL_LogCategory = 19 )
enum
type SDL_LogPriority ¶
type SDL_LogPriority = int32
const ( SDL_LOG_PRIORITY_VERBOSE SDL_LogPriority = 1 SDL_LOG_PRIORITY_DEBUG SDL_LogPriority = 2 SDL_LOG_PRIORITY_INFO SDL_LogPriority = 3 SDL_LOG_PRIORITY_WARN SDL_LogPriority = 4 SDL_LOG_PRIORITY_ERROR SDL_LogPriority = 5 SDL_LOG_PRIORITY_CRITICAL SDL_LogPriority = 6 SDL_NUM_LOG_PRIORITIES SDL_LogPriority = 7 )
func SDL_LogGetPriority ¶
func SDL_LogGetPriority(category SDL_LogCategory) SDL_LogPriority
type SDL_MessageBoxButtonData ¶
struct
func (*SDL_MessageBoxButtonData) TextAsString ¶
func (button *SDL_MessageBoxButtonData) TextAsString() string
type SDL_MessageBoxButtonFlags ¶
type SDL_MessageBoxButtonFlags = int32
const ( SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT SDL_MessageBoxButtonFlags = 1 SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT SDL_MessageBoxButtonFlags = 2 )
type SDL_MessageBoxColor ¶
type SDL_MessageBoxColorScheme ¶
type SDL_MessageBoxColorScheme struct {
Colors [5]SDL_MessageBoxColor
}
type SDL_MessageBoxColorType ¶
type SDL_MessageBoxColorType = int32
const ( SDL_MESSAGEBOX_COLOR_BACKGROUND SDL_MessageBoxColorType = 0 SDL_MESSAGEBOX_COLOR_TEXT SDL_MessageBoxColorType = 1 SDL_MESSAGEBOX_COLOR_BUTTON_BORDER SDL_MessageBoxColorType = 2 SDL_MESSAGEBOX_COLOR_BUTTON_BACKGROUND SDL_MessageBoxColorType = 3 SDL_MESSAGEBOX_COLOR_BUTTON_SELECTED SDL_MessageBoxColorType = 4 SDL_MESSAGEBOX_COLOR_MAX SDL_MessageBoxColorType = 5 )
type SDL_MessageBoxData ¶
type SDL_MessageBoxData struct { Flags uint32 Window *SDL_Window Title *int8 Message *int8 Buttons *SDL_MessageBoxButtonData ColorScheme *SDL_MessageBoxColorScheme }
func (*SDL_MessageBoxData) ButtonsAsSlice ¶
func (data *SDL_MessageBoxData) ButtonsAsSlice() []SDL_MessageBoxButtonData
func (*SDL_MessageBoxData) MessageAsString ¶
func (data *SDL_MessageBoxData) MessageAsString() string
func (*SDL_MessageBoxData) TitleAsString ¶
func (data *SDL_MessageBoxData) TitleAsString() string
type SDL_MessageBoxFlags ¶
type SDL_MessageBoxFlags = int32
typedef
const ( SDL_MESSAGEBOX_ERROR SDL_MessageBoxFlags = 16 SDL_MESSAGEBOX_WARNING SDL_MessageBoxFlags = 32 SDL_MESSAGEBOX_INFORMATION SDL_MessageBoxFlags = 64 SDL_MESSAGEBOX_BUTTONS_LEFT_TO_RIGHT SDL_MessageBoxFlags = 128 SDL_MESSAGEBOX_BUTTONS_RIGHT_TO_LEFT SDL_MessageBoxFlags = 256 )
enum
type SDL_MetalView ¶
type SDL_MouseButtonEvent ¶
type SDL_MouseMotionEvent ¶
type SDL_MouseWheelDirection ¶
type SDL_MouseWheelDirection = int32
const ( SDL_MOUSEWHEEL_NORMAL SDL_MouseWheelDirection = 0 SDL_MOUSEWHEEL_FLIPPED SDL_MouseWheelDirection = 1 )
type SDL_MouseWheelEvent ¶
type SDL_MultiGestureEvent ¶
type SDL_OSEvent ¶
type SDL_PackedLayout ¶
type SDL_PackedLayout = int32
const ( SDL_PACKEDLAYOUT_NONE SDL_PackedLayout = 0 SDL_PACKEDLAYOUT_332 SDL_PackedLayout = 1 SDL_PACKEDLAYOUT_4444 SDL_PackedLayout = 2 SDL_PACKEDLAYOUT_1555 SDL_PackedLayout = 3 SDL_PACKEDLAYOUT_5551 SDL_PackedLayout = 4 SDL_PACKEDLAYOUT_565 SDL_PackedLayout = 5 SDL_PACKEDLAYOUT_8888 SDL_PackedLayout = 6 SDL_PACKEDLAYOUT_2101010 SDL_PackedLayout = 7 SDL_PACKEDLAYOUT_1010102 SDL_PackedLayout = 8 )
type SDL_PackedOrder ¶
type SDL_PackedOrder = int32
const ( SDL_PACKEDORDER_NONE SDL_PackedOrder = 0 SDL_PACKEDORDER_XRGB SDL_PackedOrder = 1 SDL_PACKEDORDER_RGBX SDL_PackedOrder = 2 SDL_PACKEDORDER_ARGB SDL_PackedOrder = 3 SDL_PACKEDORDER_RGBA SDL_PackedOrder = 4 SDL_PACKEDORDER_XBGR SDL_PackedOrder = 5 SDL_PACKEDORDER_BGRX SDL_PackedOrder = 6 SDL_PACKEDORDER_ABGR SDL_PackedOrder = 7 SDL_PACKEDORDER_BGRA SDL_PackedOrder = 8 )
type SDL_Palette ¶
func SDL_AllocPalette ¶
func SDL_AllocPalette(ncolors int) *SDL_Palette
type SDL_PixelFormat ¶
type SDL_PixelFormat struct { Format uint32 Palette *SDL_Palette BitsPerPixel uint8 BytesPerPixel uint8 Padding [2]uint8 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 int32 Next *SDL_PixelFormat }
func SDL_AllocFormat ¶
func SDL_AllocFormat(format uint32) *SDL_PixelFormat
type SDL_PixelFormatEnum ¶
type SDL_PixelFormatEnum = uint32
var ( SDL_PIXELFORMAT_UNKNOWN SDL_PixelFormatEnum = 0 SDL_PIXELFORMAT_INDEX1LSB SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX1, SDL_BITMAPORDER_4321, 0, 1, 0) SDL_PIXELFORMAT_INDEX1MSB SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX1, SDL_BITMAPORDER_1234, 0, 1, 0) SDL_PIXELFORMAT_INDEX4LSB SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX4, SDL_BITMAPORDER_4321, 0, 4, 0) SDL_PIXELFORMAT_INDEX4MSB SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX4, SDL_BITMAPORDER_1234, 0, 4, 0) SDL_PIXELFORMAT_INDEX8 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_INDEX8, 0, 0, 8, 1) SDL_PIXELFORMAT_RGB332 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED8, SDL_PACKEDORDER_XRGB, SDL_PACKEDLAYOUT_332, 8, 1) SDL_PIXELFORMAT_XRGB4444 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XRGB, SDL_PACKEDLAYOUT_4444, 12, 2) SDL_PIXELFORMAT_RGB444 SDL_PixelFormatEnum = SDL_PIXELFORMAT_XRGB4444 SDL_PIXELFORMAT_XBGR4444 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XBGR, SDL_PACKEDLAYOUT_4444, 12, 2) SDL_PIXELFORMAT_BGR444 SDL_PixelFormatEnum = SDL_PIXELFORMAT_XBGR4444 SDL_PIXELFORMAT_XRGB1555 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XRGB, SDL_PACKEDLAYOUT_1555, 15, 2) SDL_PIXELFORMAT_RGB555 SDL_PixelFormatEnum = SDL_PIXELFORMAT_XRGB1555 SDL_PIXELFORMAT_XBGR1555 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XBGR, SDL_PACKEDLAYOUT_1555, 15, 2) SDL_PIXELFORMAT_BGR555 SDL_PixelFormatEnum = SDL_PIXELFORMAT_XBGR1555 SDL_PIXELFORMAT_ARGB4444 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ARGB, SDL_PACKEDLAYOUT_4444, 16, 2) SDL_PIXELFORMAT_RGBA4444 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_RGBA, SDL_PACKEDLAYOUT_4444, 16, 2) SDL_PIXELFORMAT_ABGR4444 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ABGR, SDL_PACKEDLAYOUT_4444, 16, 2) SDL_PIXELFORMAT_BGRA4444 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_BGRA, SDL_PACKEDLAYOUT_4444, 16, 2) SDL_PIXELFORMAT_ARGB1555 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ARGB, SDL_PACKEDLAYOUT_1555, 16, 2) SDL_PIXELFORMAT_RGBA5551 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_RGBA, SDL_PACKEDLAYOUT_5551, 16, 2) SDL_PIXELFORMAT_ABGR1555 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_ABGR, SDL_PACKEDLAYOUT_1555, 16, 2) SDL_PIXELFORMAT_BGRA5551 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_BGRA, SDL_PACKEDLAYOUT_5551, 16, 2) SDL_PIXELFORMAT_RGB565 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XRGB, SDL_PACKEDLAYOUT_565, 16, 2) SDL_PIXELFORMAT_BGR565 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED16, SDL_PACKEDORDER_XBGR, SDL_PACKEDLAYOUT_565, 16, 2) SDL_PIXELFORMAT_RGB24 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU8, SDL_ARRAYORDER_RGB, 0, 24, 3) SDL_PIXELFORMAT_BGR24 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_ARRAYU8, SDL_ARRAYORDER_BGR, 0, 24, 3) SDL_PIXELFORMAT_XRGB8888 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_XRGB, SDL_PACKEDLAYOUT_8888, 24, 4) SDL_PIXELFORMAT_RGB888 SDL_PixelFormatEnum = SDL_PIXELFORMAT_XRGB8888 SDL_PIXELFORMAT_RGBX8888 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_RGBX, SDL_PACKEDLAYOUT_8888, 24, 4) SDL_PIXELFORMAT_XBGR8888 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_XBGR, SDL_PACKEDLAYOUT_8888, 24, 4) SDL_PIXELFORMAT_BGR888 SDL_PixelFormatEnum = SDL_PIXELFORMAT_XBGR8888 SDL_PIXELFORMAT_BGRX8888 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_BGRX, SDL_PACKEDLAYOUT_8888, 24, 4) SDL_PIXELFORMAT_ARGB8888 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ARGB, SDL_PACKEDLAYOUT_8888, 32, 4) SDL_PIXELFORMAT_RGBA8888 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_RGBA, SDL_PACKEDLAYOUT_8888, 32, 4) SDL_PIXELFORMAT_ABGR8888 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ABGR, SDL_PACKEDLAYOUT_8888, 32, 4) SDL_PIXELFORMAT_BGRA8888 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_BGRA, SDL_PACKEDLAYOUT_8888, 32, 4) SDL_PIXELFORMAT_ARGB2101010 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ARGB, SDL_PACKEDLAYOUT_2101010, 32, 4) SDL_PIXELFORMAT_RGBA32 SDL_PixelFormatEnum = func() uint32 { if !IsLittleEndian() { return SDL_PIXELFORMAT_RGBA8888 } else { return SDL_PIXELFORMAT_ABGR8888 } }() SDL_PIXELFORMAT_ARGB32 SDL_PixelFormatEnum = func() uint32 { if !IsLittleEndian() { return SDL_PIXELFORMAT_ARGB8888 } else { return SDL_PIXELFORMAT_BGRA8888 } }() SDL_PIXELFORMAT_BGRA32 SDL_PixelFormatEnum = func() uint32 { if !IsLittleEndian() { return SDL_PIXELFORMAT_BGRA8888 } else { return SDL_PIXELFORMAT_ARGB8888 } }() SDL_PIXELFORMAT_ABGR32 SDL_PixelFormatEnum = func() uint32 { if !IsLittleEndian() { return SDL_PIXELFORMAT_ABGR8888 } else { return SDL_PIXELFORMAT_RGBA8888 } }() SDL_PIXELFORMAT_YV12 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFOURCC('Y', 'V', '1', '2') SDL_PIXELFORMAT_IYUV SDL_PixelFormatEnum = SDL_DEFINE_PIXELFOURCC('I', 'Y', 'U', 'V') SDL_PIXELFORMAT_YUY2 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFOURCC('Y', 'U', 'Y', '2') SDL_PIXELFORMAT_UYVY SDL_PixelFormatEnum = SDL_DEFINE_PIXELFOURCC('U', 'Y', 'V', 'Y') SDL_PIXELFORMAT_YVYU SDL_PixelFormatEnum = SDL_DEFINE_PIXELFOURCC('Y', 'V', 'Y', 'U') SDL_PIXELFORMAT_NV12 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFOURCC('N', 'V', '1', '2') SDL_PIXELFORMAT_NV21 SDL_PixelFormatEnum = SDL_DEFINE_PIXELFOURCC('N', 'V', '2', '1') SDL_PIXELFORMAT_EXTERNAL_OES SDL_PixelFormatEnum = SDL_DEFINE_PIXELFOURCC('O', 'E', 'S', ' ') )
type SDL_PixelType ¶
type SDL_PixelType = int32
typedef
const ( SDL_PIXELTYPE_UNKNOWN SDL_PixelType = 0 SDL_PIXELTYPE_INDEX1 SDL_PixelType = 1 SDL_PIXELTYPE_INDEX4 SDL_PixelType = 2 SDL_PIXELTYPE_INDEX8 SDL_PixelType = 3 SDL_PIXELTYPE_PACKED8 SDL_PixelType = 4 SDL_PIXELTYPE_PACKED16 SDL_PixelType = 5 SDL_PIXELTYPE_PACKED32 SDL_PixelType = 6 SDL_PIXELTYPE_ARRAYU8 SDL_PixelType = 7 SDL_PIXELTYPE_ARRAYU16 SDL_PixelType = 8 SDL_PIXELTYPE_ARRAYU32 SDL_PixelType = 9 SDL_PIXELTYPE_ARRAYF16 SDL_PixelType = 10 SDL_PIXELTYPE_ARRAYF32 SDL_PixelType = 11 )
enum
type SDL_PixelsArray ¶
type SDL_PowerState ¶
type SDL_PowerState = int32
typedef
const ( SDL_POWERSTATE_UNKNOWN SDL_PowerState = 0 SDL_POWERSTATE_ON_BATTERY SDL_PowerState = 1 SDL_POWERSTATE_NO_BATTERY SDL_PowerState = 2 SDL_POWERSTATE_CHARGING SDL_PowerState = 3 SDL_POWERSTATE_CHARGED SDL_PowerState = 4 )
enum
func SDL_GetPowerInfo ¶
func SDL_GetPowerInfo(secs, pct *int) SDL_PowerState
type SDL_QuitEvent ¶
type SDL_RWops ¶
c struct
func SDL_AllocRW ¶
func SDL_AllocRW() *SDL_RWops
func SDL_RWFromFile ¶
func SDL_RWFromMem ¶
type SDL_Rect ¶
func SDL_GetWindowMouseRect ¶
func SDL_GetWindowMouseRect(window *SDL_Window) (rect *SDL_Rect)
type SDL_Renderer ¶
type SDL_Renderer C.SDL_Renderer
c struct
func SDL_CreateRenderer ¶
func SDL_CreateRenderer(window *SDL_Window, index int, flags SDL_RendererFlags) *SDL_Renderer
func SDL_CreateSoftwareRenderer ¶
func SDL_CreateSoftwareRenderer(surface *SDL_Surface) *SDL_Renderer
func SDL_GetRenderer ¶
func SDL_GetRenderer(window *SDL_Window) *SDL_Renderer
type SDL_RendererFlags ¶
type SDL_RendererFlags = int32
typedef
const ( SDL_RENDERER_SOFTWARE SDL_RendererFlags = 1 SDL_RENDERER_ACCELERATED SDL_RendererFlags = 2 SDL_RENDERER_PRESENTVSYNC SDL_RendererFlags = 4 SDL_RENDERER_TARGETTEXTURE SDL_RendererFlags = 8 )
enum
type SDL_RendererFlip ¶
type SDL_RendererFlip = int32
const ( SDL_FLIP_NONE SDL_RendererFlip = 0 SDL_FLIP_HORIZONTAL SDL_RendererFlip = 1 SDL_FLIP_VERTICAL SDL_RendererFlip = 2 )
type SDL_RendererInfo ¶
type SDL_RendererInfo struct { Name *int8 Flags uint32 NumTextureFormats uint32 TextureFormats [16]uint32 MaxTextureWidth int32 MaxTextureHeight int32 }
struct
type SDL_ScaleMode ¶
type SDL_ScaleMode = int32
const ( SDL_ScaleModeNearest SDL_ScaleMode = 0 SDL_ScaleModeLinear SDL_ScaleMode = 1 SDL_ScaleModeBest SDL_ScaleMode = 2 )
type SDL_Scancode ¶
type SDL_Scancode = int32
typedef
const ( SDL_SCANCODE_UNKNOWN SDL_Scancode = 0 SDL_SCANCODE_A SDL_Scancode = 4 SDL_SCANCODE_B SDL_Scancode = 5 SDL_SCANCODE_C SDL_Scancode = 6 SDL_SCANCODE_D SDL_Scancode = 7 SDL_SCANCODE_E SDL_Scancode = 8 SDL_SCANCODE_F SDL_Scancode = 9 SDL_SCANCODE_G SDL_Scancode = 10 SDL_SCANCODE_H SDL_Scancode = 11 SDL_SCANCODE_I SDL_Scancode = 12 SDL_SCANCODE_J SDL_Scancode = 13 SDL_SCANCODE_K SDL_Scancode = 14 SDL_SCANCODE_L SDL_Scancode = 15 SDL_SCANCODE_M SDL_Scancode = 16 SDL_SCANCODE_N SDL_Scancode = 17 SDL_SCANCODE_O SDL_Scancode = 18 SDL_SCANCODE_P SDL_Scancode = 19 SDL_SCANCODE_Q SDL_Scancode = 20 SDL_SCANCODE_R SDL_Scancode = 21 SDL_SCANCODE_S SDL_Scancode = 22 SDL_SCANCODE_T SDL_Scancode = 23 SDL_SCANCODE_U SDL_Scancode = 24 SDL_SCANCODE_V SDL_Scancode = 25 SDL_SCANCODE_W SDL_Scancode = 26 SDL_SCANCODE_X SDL_Scancode = 27 SDL_SCANCODE_Y SDL_Scancode = 28 SDL_SCANCODE_Z SDL_Scancode = 29 SDL_SCANCODE_1 SDL_Scancode = 30 SDL_SCANCODE_2 SDL_Scancode = 31 SDL_SCANCODE_3 SDL_Scancode = 32 SDL_SCANCODE_4 SDL_Scancode = 33 SDL_SCANCODE_5 SDL_Scancode = 34 SDL_SCANCODE_6 SDL_Scancode = 35 SDL_SCANCODE_7 SDL_Scancode = 36 SDL_SCANCODE_8 SDL_Scancode = 37 SDL_SCANCODE_9 SDL_Scancode = 38 SDL_SCANCODE_0 SDL_Scancode = 39 SDL_SCANCODE_RETURN SDL_Scancode = 40 SDL_SCANCODE_ESCAPE SDL_Scancode = 41 SDL_SCANCODE_BACKSPACE SDL_Scancode = 42 SDL_SCANCODE_TAB SDL_Scancode = 43 SDL_SCANCODE_SPACE SDL_Scancode = 44 SDL_SCANCODE_MINUS SDL_Scancode = 45 SDL_SCANCODE_EQUALS SDL_Scancode = 46 SDL_SCANCODE_LEFTBRACKET SDL_Scancode = 47 SDL_SCANCODE_RIGHTBRACKET SDL_Scancode = 48 SDL_SCANCODE_BACKSLASH SDL_Scancode = 49 SDL_SCANCODE_NONUSHASH SDL_Scancode = 50 SDL_SCANCODE_SEMICOLON SDL_Scancode = 51 SDL_SCANCODE_APOSTROPHE SDL_Scancode = 52 SDL_SCANCODE_GRAVE SDL_Scancode = 53 SDL_SCANCODE_COMMA SDL_Scancode = 54 SDL_SCANCODE_PERIOD SDL_Scancode = 55 SDL_SCANCODE_SLASH SDL_Scancode = 56 SDL_SCANCODE_CAPSLOCK SDL_Scancode = 57 SDL_SCANCODE_F1 SDL_Scancode = 58 SDL_SCANCODE_F2 SDL_Scancode = 59 SDL_SCANCODE_F3 SDL_Scancode = 60 SDL_SCANCODE_F4 SDL_Scancode = 61 SDL_SCANCODE_F5 SDL_Scancode = 62 SDL_SCANCODE_F6 SDL_Scancode = 63 SDL_SCANCODE_F7 SDL_Scancode = 64 SDL_SCANCODE_F8 SDL_Scancode = 65 SDL_SCANCODE_F9 SDL_Scancode = 66 SDL_SCANCODE_F10 SDL_Scancode = 67 SDL_SCANCODE_F11 SDL_Scancode = 68 SDL_SCANCODE_F12 SDL_Scancode = 69 SDL_SCANCODE_PRINTSCREEN SDL_Scancode = 70 SDL_SCANCODE_SCROLLLOCK SDL_Scancode = 71 SDL_SCANCODE_PAUSE SDL_Scancode = 72 SDL_SCANCODE_INSERT SDL_Scancode = 73 SDL_SCANCODE_HOME SDL_Scancode = 74 SDL_SCANCODE_PAGEUP SDL_Scancode = 75 SDL_SCANCODE_DELETE SDL_Scancode = 76 SDL_SCANCODE_END SDL_Scancode = 77 SDL_SCANCODE_PAGEDOWN SDL_Scancode = 78 SDL_SCANCODE_RIGHT SDL_Scancode = 79 SDL_SCANCODE_LEFT SDL_Scancode = 80 SDL_SCANCODE_DOWN SDL_Scancode = 81 SDL_SCANCODE_UP SDL_Scancode = 82 SDL_SCANCODE_NUMLOCKCLEAR SDL_Scancode = 83 SDL_SCANCODE_KP_DIVIDE SDL_Scancode = 84 SDL_SCANCODE_KP_MULTIPLY SDL_Scancode = 85 SDL_SCANCODE_KP_MINUS SDL_Scancode = 86 SDL_SCANCODE_KP_PLUS SDL_Scancode = 87 SDL_SCANCODE_KP_ENTER SDL_Scancode = 88 SDL_SCANCODE_KP_1 SDL_Scancode = 89 SDL_SCANCODE_KP_2 SDL_Scancode = 90 SDL_SCANCODE_KP_3 SDL_Scancode = 91 SDL_SCANCODE_KP_4 SDL_Scancode = 92 SDL_SCANCODE_KP_5 SDL_Scancode = 93 SDL_SCANCODE_KP_6 SDL_Scancode = 94 SDL_SCANCODE_KP_7 SDL_Scancode = 95 SDL_SCANCODE_KP_8 SDL_Scancode = 96 SDL_SCANCODE_KP_9 SDL_Scancode = 97 SDL_SCANCODE_KP_0 SDL_Scancode = 98 SDL_SCANCODE_KP_PERIOD SDL_Scancode = 99 SDL_SCANCODE_NONUSBACKSLASH SDL_Scancode = 100 SDL_SCANCODE_APPLICATION SDL_Scancode = 101 SDL_SCANCODE_POWER SDL_Scancode = 102 SDL_SCANCODE_KP_EQUALS SDL_Scancode = 103 SDL_SCANCODE_F13 SDL_Scancode = 104 SDL_SCANCODE_F14 SDL_Scancode = 105 SDL_SCANCODE_F15 SDL_Scancode = 106 SDL_SCANCODE_F16 SDL_Scancode = 107 SDL_SCANCODE_F17 SDL_Scancode = 108 SDL_SCANCODE_F18 SDL_Scancode = 109 SDL_SCANCODE_F19 SDL_Scancode = 110 SDL_SCANCODE_F20 SDL_Scancode = 111 SDL_SCANCODE_F21 SDL_Scancode = 112 SDL_SCANCODE_F22 SDL_Scancode = 113 SDL_SCANCODE_F23 SDL_Scancode = 114 SDL_SCANCODE_F24 SDL_Scancode = 115 SDL_SCANCODE_EXECUTE SDL_Scancode = 116 SDL_SCANCODE_HELP SDL_Scancode = 117 SDL_SCANCODE_MENU SDL_Scancode = 118 SDL_SCANCODE_SELECT SDL_Scancode = 119 SDL_SCANCODE_STOP SDL_Scancode = 120 SDL_SCANCODE_AGAIN SDL_Scancode = 121 SDL_SCANCODE_UNDO SDL_Scancode = 122 SDL_SCANCODE_CUT SDL_Scancode = 123 SDL_SCANCODE_COPY SDL_Scancode = 124 SDL_SCANCODE_PASTE SDL_Scancode = 125 SDL_SCANCODE_FIND SDL_Scancode = 126 SDL_SCANCODE_MUTE SDL_Scancode = 127 SDL_SCANCODE_VOLUMEUP SDL_Scancode = 128 SDL_SCANCODE_VOLUMEDOWN SDL_Scancode = 129 SDL_SCANCODE_KP_COMMA SDL_Scancode = 133 SDL_SCANCODE_KP_EQUALSAS400 SDL_Scancode = 134 SDL_SCANCODE_INTERNATIONAL1 SDL_Scancode = 135 SDL_SCANCODE_INTERNATIONAL2 SDL_Scancode = 136 SDL_SCANCODE_INTERNATIONAL3 SDL_Scancode = 137 SDL_SCANCODE_INTERNATIONAL4 SDL_Scancode = 138 SDL_SCANCODE_INTERNATIONAL5 SDL_Scancode = 139 SDL_SCANCODE_INTERNATIONAL6 SDL_Scancode = 140 SDL_SCANCODE_INTERNATIONAL7 SDL_Scancode = 141 SDL_SCANCODE_INTERNATIONAL8 SDL_Scancode = 142 SDL_SCANCODE_INTERNATIONAL9 SDL_Scancode = 143 SDL_SCANCODE_LANG1 SDL_Scancode = 144 SDL_SCANCODE_LANG2 SDL_Scancode = 145 SDL_SCANCODE_LANG3 SDL_Scancode = 146 SDL_SCANCODE_LANG4 SDL_Scancode = 147 SDL_SCANCODE_LANG5 SDL_Scancode = 148 SDL_SCANCODE_LANG6 SDL_Scancode = 149 SDL_SCANCODE_LANG7 SDL_Scancode = 150 SDL_SCANCODE_LANG8 SDL_Scancode = 151 SDL_SCANCODE_LANG9 SDL_Scancode = 152 SDL_SCANCODE_ALTERASE SDL_Scancode = 153 SDL_SCANCODE_SYSREQ SDL_Scancode = 154 SDL_SCANCODE_CANCEL SDL_Scancode = 155 SDL_SCANCODE_CLEAR SDL_Scancode = 156 SDL_SCANCODE_PRIOR SDL_Scancode = 157 SDL_SCANCODE_RETURN2 SDL_Scancode = 158 SDL_SCANCODE_SEPARATOR SDL_Scancode = 159 SDL_SCANCODE_OUT SDL_Scancode = 160 SDL_SCANCODE_OPER SDL_Scancode = 161 SDL_SCANCODE_CLEARAGAIN SDL_Scancode = 162 SDL_SCANCODE_CRSEL SDL_Scancode = 163 SDL_SCANCODE_EXSEL SDL_Scancode = 164 SDL_SCANCODE_KP_00 SDL_Scancode = 176 SDL_SCANCODE_KP_000 SDL_Scancode = 177 SDL_SCANCODE_THOUSANDSSEPARATOR SDL_Scancode = 178 SDL_SCANCODE_DECIMALSEPARATOR SDL_Scancode = 179 SDL_SCANCODE_CURRENCYUNIT SDL_Scancode = 180 SDL_SCANCODE_CURRENCYSUBUNIT SDL_Scancode = 181 SDL_SCANCODE_KP_LEFTPAREN SDL_Scancode = 182 SDL_SCANCODE_KP_RIGHTPAREN SDL_Scancode = 183 SDL_SCANCODE_KP_LEFTBRACE SDL_Scancode = 184 SDL_SCANCODE_KP_RIGHTBRACE SDL_Scancode = 185 SDL_SCANCODE_KP_TAB SDL_Scancode = 186 SDL_SCANCODE_KP_BACKSPACE SDL_Scancode = 187 SDL_SCANCODE_KP_A SDL_Scancode = 188 SDL_SCANCODE_KP_B SDL_Scancode = 189 SDL_SCANCODE_KP_C SDL_Scancode = 190 SDL_SCANCODE_KP_D SDL_Scancode = 191 SDL_SCANCODE_KP_E SDL_Scancode = 192 SDL_SCANCODE_KP_F SDL_Scancode = 193 SDL_SCANCODE_KP_XOR SDL_Scancode = 194 SDL_SCANCODE_KP_POWER SDL_Scancode = 195 SDL_SCANCODE_KP_PERCENT SDL_Scancode = 196 SDL_SCANCODE_KP_LESS SDL_Scancode = 197 SDL_SCANCODE_KP_GREATER SDL_Scancode = 198 SDL_SCANCODE_KP_AMPERSAND SDL_Scancode = 199 SDL_SCANCODE_KP_DBLAMPERSAND SDL_Scancode = 200 SDL_SCANCODE_KP_VERTICALBAR SDL_Scancode = 201 SDL_SCANCODE_KP_DBLVERTICALBAR SDL_Scancode = 202 SDL_SCANCODE_KP_COLON SDL_Scancode = 203 SDL_SCANCODE_KP_HASH SDL_Scancode = 204 SDL_SCANCODE_KP_SPACE SDL_Scancode = 205 SDL_SCANCODE_KP_AT SDL_Scancode = 206 SDL_SCANCODE_KP_EXCLAM SDL_Scancode = 207 SDL_SCANCODE_KP_MEMSTORE SDL_Scancode = 208 SDL_SCANCODE_KP_MEMRECALL SDL_Scancode = 209 SDL_SCANCODE_KP_MEMCLEAR SDL_Scancode = 210 SDL_SCANCODE_KP_MEMADD SDL_Scancode = 211 SDL_SCANCODE_KP_MEMSUBTRACT SDL_Scancode = 212 SDL_SCANCODE_KP_MEMMULTIPLY SDL_Scancode = 213 SDL_SCANCODE_KP_MEMDIVIDE SDL_Scancode = 214 SDL_SCANCODE_KP_PLUSMINUS SDL_Scancode = 215 SDL_SCANCODE_KP_CLEAR SDL_Scancode = 216 SDL_SCANCODE_KP_CLEARENTRY SDL_Scancode = 217 SDL_SCANCODE_KP_BINARY SDL_Scancode = 218 SDL_SCANCODE_KP_OCTAL SDL_Scancode = 219 SDL_SCANCODE_KP_DECIMAL SDL_Scancode = 220 SDL_SCANCODE_KP_HEXADECIMAL SDL_Scancode = 221 SDL_SCANCODE_LCTRL SDL_Scancode = 224 SDL_SCANCODE_LSHIFT SDL_Scancode = 225 SDL_SCANCODE_LALT SDL_Scancode = 226 SDL_SCANCODE_LGUI SDL_Scancode = 227 SDL_SCANCODE_RCTRL SDL_Scancode = 228 SDL_SCANCODE_RSHIFT SDL_Scancode = 229 SDL_SCANCODE_RALT SDL_Scancode = 230 SDL_SCANCODE_RGUI SDL_Scancode = 231 SDL_SCANCODE_MODE SDL_Scancode = 257 SDL_SCANCODE_AUDIONEXT SDL_Scancode = 258 SDL_SCANCODE_AUDIOPREV SDL_Scancode = 259 SDL_SCANCODE_AUDIOSTOP SDL_Scancode = 260 SDL_SCANCODE_AUDIOPLAY SDL_Scancode = 261 SDL_SCANCODE_AUDIOMUTE SDL_Scancode = 262 SDL_SCANCODE_MEDIASELECT SDL_Scancode = 263 SDL_SCANCODE_WWW SDL_Scancode = 264 SDL_SCANCODE_MAIL SDL_Scancode = 265 SDL_SCANCODE_CALCULATOR SDL_Scancode = 266 SDL_SCANCODE_COMPUTER SDL_Scancode = 267 SDL_SCANCODE_AC_SEARCH SDL_Scancode = 268 SDL_SCANCODE_AC_HOME SDL_Scancode = 269 SDL_SCANCODE_AC_BACK SDL_Scancode = 270 SDL_SCANCODE_AC_FORWARD SDL_Scancode = 271 SDL_SCANCODE_AC_STOP SDL_Scancode = 272 SDL_SCANCODE_AC_REFRESH SDL_Scancode = 273 SDL_SCANCODE_AC_BOOKMARKS SDL_Scancode = 274 SDL_SCANCODE_BRIGHTNESSDOWN SDL_Scancode = 275 SDL_SCANCODE_BRIGHTNESSUP SDL_Scancode = 276 SDL_SCANCODE_DISPLAYSWITCH SDL_Scancode = 277 SDL_SCANCODE_KBDILLUMTOGGLE SDL_Scancode = 278 SDL_SCANCODE_KBDILLUMDOWN SDL_Scancode = 279 SDL_SCANCODE_KBDILLUMUP SDL_Scancode = 280 SDL_SCANCODE_EJECT SDL_Scancode = 281 SDL_SCANCODE_SLEEP SDL_Scancode = 282 SDL_SCANCODE_APP1 SDL_Scancode = 283 SDL_SCANCODE_APP2 SDL_Scancode = 284 SDL_SCANCODE_AUDIOREWIND SDL_Scancode = 285 SDL_SCANCODE_AUDIOFASTFORWARD SDL_Scancode = 286 SDL_SCANCODE_SOFTLEFT SDL_Scancode = 287 SDL_SCANCODE_SOFTRIGHT SDL_Scancode = 288 SDL_SCANCODE_CALL SDL_Scancode = 289 SDL_SCANCODE_ENDCALL SDL_Scancode = 290 SDL_NUM_SCANCODES SDL_Scancode = 512 )
enum
func SDL_GetScancodeFromKey ¶
func SDL_GetScancodeFromKey(code SDL_Keycode) SDL_Scancode
func SDL_GetScancodeFromName ¶
func SDL_GetScancodeFromName(name string) SDL_Scancode
type SDL_Sensor ¶
type SDL_Sensor C.SDL_Sensor
c struct
func SDL_SensorFromInstanceID ¶
func SDL_SensorFromInstanceID(id SDL_SensorID) *SDL_Sensor
func SDL_SensorOpen ¶
func SDL_SensorOpen(deviceIndex int) *SDL_Sensor
type SDL_SensorEvent ¶
type SDL_SensorID ¶
type SDL_SensorID = int32
typedef
func SDL_SensorGetDeviceInstanceID ¶
func SDL_SensorGetDeviceInstanceID(deviceIndex int) SDL_SensorID
func SDL_SensorGetInstanceID ¶
func SDL_SensorGetInstanceID(sensor *SDL_Sensor) SDL_SensorID
type SDL_SensorType ¶
type SDL_SensorType = int32
const ( SDL_SENSOR_INVALID SDL_SensorType = -1 SDL_SENSOR_UNKNOWN SDL_SensorType = 0 SDL_SENSOR_ACCEL SDL_SensorType = 1 SDL_SENSOR_GYRO SDL_SensorType = 2 )
enum
func SDL_SensorGetDeviceType ¶
func SDL_SensorGetDeviceType(deviceIndex int) SDL_SensorType
func SDL_SensorGetType ¶
func SDL_SensorGetType(sensor *SDL_Sensor) SDL_SensorType
type SDL_Surface ¶
type SDL_Surface struct { Flags uint32 Format *SDL_PixelFormat W int32 H int32 Pitch int32 Pixels unsafe.Pointer Userdata unsafe.Pointer Locked int32 ListBlitmap unsafe.Pointer ClipRect SDL_Rect Map *SDL_BlitMap Refcount int32 }
struct
func SDL_ConvertSurface ¶
func SDL_ConvertSurface(surface *SDL_Surface, fmt *SDL_PixelFormat, flags uint32) *SDL_Surface
func SDL_ConvertSurfaceFormat ¶
func SDL_ConvertSurfaceFormat(surface *SDL_Surface, pixelFormat uint32, flags uint32) *SDL_Surface
func SDL_CreateRGBSurface ¶
func SDL_CreateRGBSurface(flags uint32, width, height, depth int32, Rmask, Gmask, Bmask, Amask uint32) *SDL_Surface
func SDL_CreateRGBSurfaceWithFormat ¶
func SDL_CreateRGBSurfaceWithFormat(flags uint32, width, height, depth int32, format uint32) *SDL_Surface
func SDL_CreateRGBSurfaceWithFormatFrom ¶
func SDL_CreateRGBSurfaceWithFormatFrom(pixels unsafe.Pointer, width, height, depth, pitch int32, format uint32) *SDL_Surface
func SDL_DuplicateSurface ¶
func SDL_DuplicateSurface(surface *SDL_Surface) (newSurface *SDL_Surface)
func SDL_GetWindowSurface ¶
func SDL_GetWindowSurface(window *SDL_Window) *SDL_Surface
func SDL_LoadBMP ¶
func SDL_LoadBMP(file string) *SDL_Surface
func SDL_LoadBMP_RW ¶
func SDL_LoadBMP_RW(src *SDL_RWops, freeSrc SDL_bool) *SDL_Surface
func (*SDL_Surface) Bounds ¶
func (surface *SDL_Surface) Bounds() image.Rectangle
func (*SDL_Surface) BytesPerPixel ¶
func (surface *SDL_Surface) BytesPerPixel() int
func (*SDL_Surface) ColorModel ¶
func (surface *SDL_Surface) ColorModel() color.Model
func (*SDL_Surface) Data ¶
func (surface *SDL_Surface) Data() []byte
func (*SDL_Surface) HasColorKey ¶
func (surface *SDL_Surface) HasColorKey() bool
func (*SDL_Surface) MustLock ¶
func (surface *SDL_Surface) MustLock() bool
func (*SDL_Surface) PixelNum ¶
func (surface *SDL_Surface) PixelNum() int
func (*SDL_Surface) SaveBMP ¶
func (surface *SDL_Surface) SaveBMP(file string) int
type SDL_SysWMEvent ¶
type SDL_SysWMEvent struct { Type uint32 Timestamp uint32 Msg *SDL_SysWMmsg }
type SDL_SystemCursor ¶
type SDL_SystemCursor = int32
typedef
const ( SDL_SYSTEM_CURSOR_ARROW SDL_SystemCursor = 0 SDL_SYSTEM_CURSOR_IBEAM SDL_SystemCursor = 1 SDL_SYSTEM_CURSOR_WAIT SDL_SystemCursor = 2 SDL_SYSTEM_CURSOR_CROSSHAIR SDL_SystemCursor = 3 SDL_SYSTEM_CURSOR_WAITARROW SDL_SystemCursor = 4 SDL_SYSTEM_CURSOR_SIZENWSE SDL_SystemCursor = 5 SDL_SYSTEM_CURSOR_SIZENESW SDL_SystemCursor = 6 SDL_SYSTEM_CURSOR_SIZEWE SDL_SystemCursor = 7 SDL_SYSTEM_CURSOR_SIZENS SDL_SystemCursor = 8 SDL_SYSTEM_CURSOR_SIZEALL SDL_SystemCursor = 9 SDL_SYSTEM_CURSOR_NO SDL_SystemCursor = 10 SDL_SYSTEM_CURSOR_HAND SDL_SystemCursor = 11 SDL_NUM_SYSTEM_CURSORS SDL_SystemCursor = 12 )
enum
type SDL_TextEditingEvent ¶
type SDL_TextEditingExtEvent ¶
type SDL_TextEditingExtEvent struct { Type uint32 Timestamp uint32 WindowID uint32 Text *int8 Start int32 Length int32 }
func (SDL_TextEditingExtEvent) TextAsString ¶
func (event SDL_TextEditingExtEvent) TextAsString() string
type SDL_TextInputEvent ¶
type SDL_Texture ¶
type SDL_Texture C.SDL_Texture
c struct
func SDL_CreateTexture ¶
func SDL_CreateTexture(renderer *SDL_Renderer, format uint32, access SDL_TextureAccess, w, h int32) *SDL_Texture
func SDL_CreateTextureFromSurface ¶
func SDL_CreateTextureFromSurface(renderer *SDL_Renderer, surface *SDL_Surface) *SDL_Texture
func SDL_GetRenderTarget ¶
func SDL_GetRenderTarget(renderer *SDL_Renderer) *SDL_Texture
type SDL_TextureAccess ¶
type SDL_TextureAccess = int32
const ( SDL_TEXTUREACCESS_STATIC SDL_TextureAccess = 0 SDL_TEXTUREACCESS_STREAMING SDL_TextureAccess = 1 SDL_TEXTUREACCESS_TARGET SDL_TextureAccess = 2 )
type SDL_TextureModulate ¶
type SDL_TextureModulate = int32
const ( SDL_TEXTUREMODULATE_NONE SDL_TextureModulate = 0 SDL_TEXTUREMODULATE_COLOR SDL_TextureModulate = 1 SDL_TEXTUREMODULATE_ALPHA SDL_TextureModulate = 2 )
type SDL_TimerID ¶
type SDL_TimerID = int32
type SDL_TouchDeviceType ¶
type SDL_TouchDeviceType = int32
const ( SDL_TOUCH_DEVICE_INVALID SDL_TouchDeviceType = -1 SDL_TOUCH_DEVICE_DIRECT SDL_TouchDeviceType = 0 SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE SDL_TouchDeviceType = 1 SDL_TOUCH_DEVICE_INDIRECT_RELATIVE SDL_TouchDeviceType = 2 )
enum
func SDL_GetTouchDeviceType ¶
func SDL_GetTouchDeviceType(id SDL_TouchID) SDL_TouchDeviceType
type SDL_TouchFingerEvent ¶
type SDL_TouchID ¶
type SDL_TouchID = int64
typedef
func SDL_GetTouchDevice ¶
func SDL_GetTouchDevice(index int) SDL_TouchID
type SDL_UserEvent ¶
type SDL_Vertex ¶
type SDL_Vertex struct { Position SDL_FPoint Color SDL_Color TexCoord SDL_FPoint }
type SDL_Window ¶
type SDL_Window C.SDL_Window
c struct
func SDL_CreateWindow ¶
func SDL_CreateWindow(title string, x, y, w, h int32, flags SDL_WindowFlags) *SDL_Window
func SDL_CreateWindowFrom ¶
func SDL_CreateWindowFrom(data unsafe.Pointer) *SDL_Window
func SDL_GetKeyboardFocus ¶
func SDL_GetKeyboardFocus() *SDL_Window
func SDL_GetMouseFocus ¶
func SDL_GetMouseFocus() *SDL_Window
func SDL_GetWindowFromID ¶
func SDL_GetWindowFromID(id uint32) *SDL_Window
func SDL_RenderGetWindow ¶
func SDL_RenderGetWindow(renderer *SDL_Renderer) (window *SDL_Window)
type SDL_WindowEvent ¶
type SDL_WindowEventID ¶
type SDL_WindowEventID = int32
const ( SDL_WINDOWEVENT_NONE SDL_WindowEventID = 0 SDL_WINDOWEVENT_SHOWN SDL_WindowEventID = 1 SDL_WINDOWEVENT_HIDDEN SDL_WindowEventID = 2 SDL_WINDOWEVENT_EXPOSED SDL_WindowEventID = 3 SDL_WINDOWEVENT_MOVED SDL_WindowEventID = 4 SDL_WINDOWEVENT_RESIZED SDL_WindowEventID = 5 SDL_WINDOWEVENT_SIZE_CHANGED SDL_WindowEventID = 6 SDL_WINDOWEVENT_MINIMIZED SDL_WindowEventID = 7 SDL_WINDOWEVENT_MAXIMIZED SDL_WindowEventID = 8 SDL_WINDOWEVENT_RESTORED SDL_WindowEventID = 9 SDL_WINDOWEVENT_ENTER SDL_WindowEventID = 10 SDL_WINDOWEVENT_LEAVE SDL_WindowEventID = 11 SDL_WINDOWEVENT_FOCUS_GAINED SDL_WindowEventID = 12 SDL_WINDOWEVENT_FOCUS_LOST SDL_WindowEventID = 13 SDL_WINDOWEVENT_CLOSE SDL_WindowEventID = 14 SDL_WINDOWEVENT_TAKE_FOCUS SDL_WindowEventID = 15 SDL_WINDOWEVENT_HIT_TEST SDL_WindowEventID = 16 SDL_WINDOWEVENT_ICCPROF_CHANGED SDL_WindowEventID = 17 SDL_WINDOWEVENT_DISPLAY_CHANGED SDL_WindowEventID = 18 )
type SDL_WindowFlags ¶
type SDL_WindowFlags = uint32
typedef
const ( SDL_WINDOW_FULLSCREEN SDL_WindowFlags = 0x00000001 SDL_WINDOW_OPENGL SDL_WindowFlags = 0x00000002 SDL_WINDOW_SHOWN SDL_WindowFlags = 0x00000004 SDL_WINDOW_HIDDEN SDL_WindowFlags = 0x00000008 SDL_WINDOW_BORDERLESS SDL_WindowFlags = 0x00000010 SDL_WINDOW_RESIZABLE SDL_WindowFlags = 0x00000020 SDL_WINDOW_MINIMIZED SDL_WindowFlags = 0x00000040 SDL_WINDOW_MAXIMIZED SDL_WindowFlags = 0x00000080 SDL_WINDOW_MOUSE_GRABBED SDL_WindowFlags = 0x00000100 SDL_WINDOW_INPUT_FOCUS SDL_WindowFlags = 0x00000200 SDL_WINDOW_MOUSE_FOCUS SDL_WindowFlags = 0x00000400 SDL_WINDOW_FULLSCREEN_DESKTOP SDL_WindowFlags = SDL_WINDOW_FULLSCREEN | 0x00001000 SDL_WINDOW_FOREIGN SDL_WindowFlags = 0x00000800 SDL_WINDOW_ALLOW_HIGHDPI SDL_WindowFlags = 0x00002000 SDL_WINDOW_MOUSE_CAPTURE SDL_WindowFlags = 0x00004000 SDL_WINDOW_ALWAYS_ON_TOP SDL_WindowFlags = 0x00008000 SDL_WINDOW_SKIP_TASKBAR SDL_WindowFlags = 0x00010000 SDL_WINDOW_UTILITY SDL_WindowFlags = 0x00020000 SDL_WINDOW_TOOLTIP SDL_WindowFlags = 0x00040000 SDL_WINDOW_POPUP_MENU SDL_WindowFlags = 0x00080000 SDL_WINDOW_KEYBOARD_GRABBED SDL_WindowFlags = 0x00100000 SDL_WINDOW_VULKAN SDL_WindowFlags = 0x10000000 SDL_WINDOW_METAL SDL_WindowFlags = 0x20000000 SDL_WINDOW_INPUT_GRABBED SDL_WindowFlags = SDL_WINDOW_MOUSE_GRABBED )
enum
func SDL_GetWindowFlags ¶
func SDL_GetWindowFlags(window *SDL_Window) SDL_WindowFlags
type SDL_WindowShapeMode ¶
type SDL_WindowShapeMode struct { Mode int32 Parameters SDL_WindowShapeParams }
type SDL_YUV_CONVERSION_MODE ¶
type SDL_YUV_CONVERSION_MODE = int32
typedef
const ( SDL_YUV_CONVERSION_JPEG SDL_YUV_CONVERSION_MODE = 0 SDL_YUV_CONVERSION_BT601 SDL_YUV_CONVERSION_MODE = 1 SDL_YUV_CONVERSION_BT709 SDL_YUV_CONVERSION_MODE = 2 SDL_YUV_CONVERSION_AUTOMATIC SDL_YUV_CONVERSION_MODE = 3 )
enum
func GetYUVConversionMode ¶
func GetYUVConversionMode() SDL_YUV_CONVERSION_MODE
func GetYUVConversionModeForResolution ¶
func GetYUVConversionModeForResolution(width, height int) SDL_YUV_CONVERSION_MODE
type SDL_blit ¶
type SDL_blit = func(*SDL_Surface, *SDL_Rect, *SDL_Surface, *SDL_Rect) int32
type SDL_errorcode ¶
type SDL_errorcode = int32
typedef
const ( SDL_ENOMEM SDL_errorcode = 0 SDL_EFREAD SDL_errorcode = 1 SDL_EFWRITE SDL_errorcode = 2 SDL_EFSEEK SDL_errorcode = 3 SDL_UNSUPPORTED SDL_errorcode = 4 SDL_LASTERROR SDL_errorcode = 5 )
enum
type SDL_eventaction ¶
type SDL_eventaction = int32
const ( SDL_ADDEVENT SDL_eventaction = 0 SDL_PEEKEVENT SDL_eventaction = 1 SDL_GETEVENT SDL_eventaction = 2 )
type SDL_hid_device ¶
type SDL_hid_device C.SDL_hid_device
c struct
func SDL_hid_open ¶
func SDL_hid_open[T []uint16 | []int32](vendorID, productID uint16, serialNumber T) *SDL_hid_device
func SDL_hid_open_path ¶
func SDL_hid_open_path(path string, exclusive SDL_bool) *SDL_hid_device
type SDL_hid_device_info ¶
type SDL_hid_device_info struct { Path *int8 VendorId uint16 ProductId uint16 SerialNumber *int32 ReleaseNumber uint16 ManufacturerString *int32 ProductString *int32 UsagePage uint16 Usage uint16 InterfaceNumber int32 InterfaceClass int32 InterfaceSubclass int32 InterfaceProtocol int32 Next *SDL_hid_device_info }
struct
func SDL_hid_enumerate ¶
func SDL_hid_enumerate(vendorID, productID uint16) *SDL_hid_device_info
func (*SDL_hid_device_info) PathAsString ¶
func (info *SDL_hid_device_info) PathAsString() string
type WindowShapeMode ¶
type WindowShapeMode = int32
typedef
const ( ShapeModeDefault WindowShapeMode = 0 ShapeModeBinarizeAlpha WindowShapeMode = 1 ShapeModeReverseBinarizeAlpha WindowShapeMode = 2 ShapeModeColorKey WindowShapeMode = 3 )
struct
Source Files ¶
- audio.go
- blendmode.go
- clipboard.go
- cpuinfo.go
- error.go
- events.go
- filesystem.go
- gamecontroller.go
- gesture.go
- guid.go
- haptic.go
- helpers.go
- hidapi.go
- hints.go
- joystick.go
- keyboard.go
- keycode.go
- loadso.go
- locale.go
- log.go
- memorypool.go
- messagebox.go
- misc.go
- mouse.go
- pixels.go
- power.go
- rect.go
- render.go
- rwops.go
- sdl.go
- sdl_cgo.go
- sensor.go
- shape.go
- surface.go
- timer.go
- touch.go
- type.go
- version.go
- video.go
Click to show internal directories.
Click to hide internal directories.