sdl: github.com/DeedleFake/sdl Index | Files | Directories

package sdl

import "github.com/DeedleFake/sdl"

Index

Package Files

audio.go blendmode.go clipboard.go cpuinfo.go error.go events.go gesture.go hints.go keyboard.go keycode.go log.go mouse.go pixels.go rect.go render.go rwops.go scancode.go sdl.go surface.go touch.go version.go video.go

Constants

const (
    AUDIO_MASK_BITSIZE  = C.SDL_AUDIO_MASK_BITSIZE
    AUDIO_MASK_DATATYPE = C.SDL_AUDIO_MASK_DATATYPE
    AUDIO_MASK_ENDIAN   = C.SDL_AUDIO_MASK_ENDIAN
    AUDIO_MASK_SIGNED   = C.SDL_AUDIO_MASK_SIGNED
)
const (
    AUDIO_U8     = C.AUDIO_U8
    AUDIO_S8     = C.AUDIO_S8
    AUDIO_U16LSB = C.AUDIO_U16LSB
    AUDIO_S16LSB = C.AUDIO_S16LSB
    AUDIO_U16MSB = C.AUDIO_U16MSB
    AUDIO_S16MSB = C.AUDIO_S16MSB
    AUDIO_U16    = C.AUDIO_U16
    AUDIO_S16    = C.AUDIO_S16
)
const (
    AUDIO_S32LSB = C.AUDIO_S32LSB
    AUDIO_S32MSB = C.AUDIO_S32MSB
    AUDIO_S32    = C.AUDIO_S32
)
const (
    AUDIO_F32LSB = C.AUDIO_F32LSB
    AUDIO_F32MSB = C.AUDIO_F32MSB
    AUDIO_F32    = C.AUDIO_F32
)
const (
    AUDIO_U16SYS = C.AUDIO_U16SYS
    AUDIO_S16SYS = C.AUDIO_S16SYS
    AUDIO_S32SYS = C.AUDIO_S32SYS
    AUDIO_F32SYS = C.AUDIO_F32SYS
)
const (
    AUDIO_ALLOW_FREQUENCY_CHANGE = C.SDL_AUDIO_ALLOW_FREQUENCY_CHANGE
    AUDIO_ALLOW_FORMAT_CHANGE    = C.SDL_AUDIO_ALLOW_FORMAT_CHANGE
    AUDIO_ALLOW_CHANNELS_CHANGE  = C.SDL_AUDIO_ALLOW_CHANNELS_CHANGE
    AUDIO_ALLOW_ANY_CHANGE       = C.SDL_AUDIO_ALLOW_ANY_CHANGE
)
const (
    QUERY   = C.SDL_QUERY
    IGNORE  = C.SDL_IGNORE
    DISABLE = C.SDL_DISABLE
    ENABLE  = C.SDL_ENABLE
)
const (
    HINT_FRAMEBUFFER_ACCELERATION = string(C.SDL_HINT_FRAMEBUFFER_ACCELERATION)
    IDLE_TIMER_DISABLED           = string(C.SDL_HINT_IDLE_TIMER_DISABLED)
    HINT_ORIENTATIONS             = string(C.SDL_HINT_ORIENTATIONS)
    HINT_RENDER_DRIVER            = string(C.SDL_HINT_RENDER_DRIVER)
    HINT_RENDER_OPENGL_SHADERS    = string(C.SDL_HINT_RENDER_OPENGL_SHADERS)
    HINT_RENDER_SCALE_QUALITY     = string(C.SDL_HINT_RENDER_SCALE_QUALITY)
    HINT_RENDER_VSYNC             = string(C.SDL_HINT_RENDER_VSYNC)
)
const (
    K_UNKNOWN = C.SDLK_UNKNOWN

    K_RETURN       = C.SDLK_RETURN
    K_ESCAPE       = C.SDLK_ESCAPE
    K_BACKSPACE    = C.SDLK_BACKSPACE
    K_TAB          = C.SDLK_TAB
    K_SPACE        = C.SDLK_SPACE
    K_EXCLAIM      = C.SDLK_EXCLAIM
    K_QUOTEDBL     = C.SDLK_QUOTEDBL
    K_HASH         = C.SDLK_HASH
    K_PERCENT      = C.SDLK_PERCENT
    K_DOLLAR       = C.SDLK_DOLLAR
    K_AMPERSAND    = C.SDLK_AMPERSAND
    K_QUOTE        = C.SDLK_QUOTE
    K_LEFTPAREN    = C.SDLK_LEFTPAREN
    K_RIGHTPAREN   = C.SDLK_RIGHTPAREN
    K_ASTERISK     = C.SDLK_ASTERISK
    K_PLUS         = C.SDLK_PLUS
    K_COMMA        = C.SDLK_COMMA
    K_MINUS        = C.SDLK_MINUS
    K_PERIOD       = C.SDLK_PERIOD
    K_SLASH        = C.SDLK_SLASH
    K_0            = C.SDLK_0
    K_1            = C.SDLK_1
    K_2            = C.SDLK_2
    K_3            = C.SDLK_3
    K_4            = C.SDLK_4
    K_5            = C.SDLK_5
    K_6            = C.SDLK_6
    K_7            = C.SDLK_7
    K_8            = C.SDLK_8
    K_9            = C.SDLK_9
    K_COLON        = C.SDLK_COLON
    K_SEMICOLON    = C.SDLK_SEMICOLON
    K_LESS         = C.SDLK_LESS
    K_EQUALS       = C.SDLK_EQUALS
    K_GREATER      = C.SDLK_GREATER
    K_QUESTION     = C.SDLK_QUESTION
    K_AT           = C.SDLK_AT
    K_LEFTBRACKET  = C.SDLK_LEFTBRACKET
    K_BACKSLASH    = C.SDLK_BACKSLASH
    K_RIGHTBRACKET = C.SDLK_RIGHTBRACKET
    K_CARET        = C.SDLK_CARET
    K_UNDERSCORE   = C.SDLK_UNDERSCORE
    K_BACKQUOTE    = C.SDLK_BACKQUOTE
    K_a            = C.SDLK_a
    K_b            = C.SDLK_b
    K_c            = C.SDLK_c
    K_d            = C.SDLK_d
    K_e            = C.SDLK_e
    K_f            = C.SDLK_f
    K_g            = C.SDLK_g
    K_h            = C.SDLK_h
    K_i            = C.SDLK_i
    K_j            = C.SDLK_j
    K_k            = C.SDLK_k
    K_l            = C.SDLK_l
    K_m            = C.SDLK_m
    K_n            = C.SDLK_n
    K_o            = C.SDLK_o
    K_p            = C.SDLK_p
    K_q            = C.SDLK_q
    K_r            = C.SDLK_r
    K_s            = C.SDLK_s
    K_t            = C.SDLK_t
    K_u            = C.SDLK_u
    K_v            = C.SDLK_v
    K_w            = C.SDLK_w
    K_x            = C.SDLK_x
    K_y            = C.SDLK_y
    K_z            = C.SDLK_z

    K_CAPSLOCK = C.SDLK_CAPSLOCK

    K_F1  = C.SDLK_F1
    K_F2  = C.SDLK_F2
    K_F3  = C.SDLK_F3
    K_F4  = C.SDLK_F4
    K_F5  = C.SDLK_F5
    K_F6  = C.SDLK_F6
    K_F7  = C.SDLK_F7
    K_F8  = C.SDLK_F8
    K_F9  = C.SDLK_F9
    K_F10 = C.SDLK_F10
    K_F11 = C.SDLK_F11
    K_F12 = C.SDLK_F12

    K_PRINTSCREEN = C.SDLK_PRINTSCREEN
    K_SCROLLLOCK  = C.SDLK_SCROLLLOCK
    K_PAUSE       = C.SDLK_PAUSE
    K_INSERT      = C.SDLK_INSERT
    K_HOME        = C.SDLK_HOME
    K_PAGEUP      = C.SDLK_PAGEUP
    K_DELETE      = C.SDLK_DELETE
    K_END         = C.SDLK_END
    K_PAGEDOWN    = C.SDLK_PAGEDOWN
    K_RIGHT       = C.SDLK_RIGHT
    K_LEFT        = C.SDLK_LEFT
    K_DOWN        = C.SDLK_DOWN
    K_UP          = C.SDLK_UP

    K_NUMLOCKCLEAR = C.SDLK_NUMLOCKCLEAR
    K_KP_DIVIDE    = C.SDLK_KP_DIVIDE
    K_KP_MULTIPLY  = C.SDLK_KP_MULTIPLY
    K_KP_MINUS     = C.SDLK_KP_MINUS
    K_KP_PLUS      = C.SDLK_KP_PLUS
    K_KP_ENTER     = C.SDLK_KP_ENTER
    K_KP_1         = C.SDLK_KP_1
    K_KP_2         = C.SDLK_KP_2
    K_KP_3         = C.SDLK_KP_3
    K_KP_4         = C.SDLK_KP_4
    K_KP_5         = C.SDLK_KP_5
    K_KP_6         = C.SDLK_KP_6
    K_KP_7         = C.SDLK_KP_7
    K_KP_8         = C.SDLK_KP_8
    K_KP_9         = C.SDLK_KP_9
    K_KP_0         = C.SDLK_KP_0
    K_KP_PERIOD    = C.SDLK_KP_PERIOD

    K_APPLICATION       = C.SDLK_APPLICATION
    K_POWER             = C.SDLK_POWER
    K_KP_EQUALS         = C.SDLK_KP_EQUALS
    K_F13               = C.SDLK_F13
    K_F14               = C.SDLK_F14
    K_F15               = C.SDLK_F15
    K_F16               = C.SDLK_F16
    K_F17               = C.SDLK_F17
    K_F18               = C.SDLK_F18
    K_F19               = C.SDLK_F19
    K_F20               = C.SDLK_F20
    K_F21               = C.SDLK_F21
    K_F22               = C.SDLK_F22
    K_F23               = C.SDLK_F23
    K_F24               = C.SDLK_F24
    K_EXECUTE           = C.SDLK_EXECUTE
    K_HELP              = C.SDLK_HELP
    K_MENU              = C.SDLK_MENU
    K_SELECT            = C.SDLK_SELECT
    K_STOP              = C.SDLK_STOP
    K_AGAIN             = C.SDLK_AGAIN
    K_UNDO              = C.SDLK_UNDO
    K_CUT               = C.SDLK_CUT
    K_COPY              = C.SDLK_COPY
    K_PASTE             = C.SDLK_PASTE
    K_FIND              = C.SDLK_FIND
    K_MUTE              = C.SDLK_MUTE
    K_VOLUMEUP          = C.SDLK_VOLUMEUP
    K_VOLUMEDOWN        = C.SDLK_VOLUMEDOWN
    K_KP_COMMA          = C.SDLK_KP_COMMA
    SDLK_KP_EQUALSAS400 = C.SDLK_KP_EQUALSAS400

    K_ALTERASE   = C.SDLK_ALTERASE
    K_SYSREQ     = C.SDLK_SYSREQ
    K_CANCEL     = C.SDLK_CANCEL
    K_CLEAR      = C.SDLK_CLEAR
    K_PRIOR      = C.SDLK_PRIOR
    K_RETURN2    = C.SDLK_RETURN2
    K_SEPARATOR  = C.SDLK_SEPARATOR
    K_OUT        = C.SDLK_OUT
    K_OPER       = C.SDLK_OPER
    K_CLEARAGAIN = C.SDLK_CLEARAGAIN
    K_CRSEL      = C.SDLK_CRSEL
    K_EXSEL      = C.SDLK_EXSEL

    K_KP_00                 = C.SDLK_KP_00
    K_KP_000                = C.SDLK_KP_000
    SDLK_THOUSANDSSEPARATOR = C.SDLK_THOUSANDSSEPARATOR
    SDLK_DECIMALSEPARATOR   = C.SDLK_DECIMALSEPARATOR
    K_CURRENCYUNIT          = C.SDLK_CURRENCYUNIT
    SDLK_CURRENCYSUBUNIT    = C.SDLK_CURRENCYSUBUNIT
    K_KP_LEFTPAREN          = C.SDLK_KP_LEFTPAREN
    K_KP_RIGHTPAREN         = C.SDLK_KP_RIGHTPAREN
    K_KP_LEFTBRACE          = C.SDLK_KP_LEFTBRACE
    K_KP_RIGHTBRACE         = C.SDLK_KP_RIGHTBRACE
    K_KP_TAB                = C.SDLK_KP_TAB
    K_KP_BACKSPACE          = C.SDLK_KP_BACKSPACE
    K_KP_A                  = C.SDLK_KP_A
    K_KP_B                  = C.SDLK_KP_B
    K_KP_C                  = C.SDLK_KP_C
    K_KP_D                  = C.SDLK_KP_D
    K_KP_E                  = C.SDLK_KP_E
    K_KP_F                  = C.SDLK_KP_F
    K_KP_XOR                = C.SDLK_KP_XOR
    K_KP_POWER              = C.SDLK_KP_POWER
    K_KP_PERCENT            = C.SDLK_KP_PERCENT
    K_KP_LESS               = C.SDLK_KP_LESS
    K_KP_GREATER            = C.SDLK_KP_GREATER
    K_KP_AMPERSAND          = C.SDLK_KP_AMPERSAND
    SDLK_KP_DBLAMPERSAND    = C.SDLK_KP_DBLAMPERSAND
    SDLK_KP_VERTICALBAR     = C.SDLK_KP_VERTICALBAR
    SDLK_KP_DBLVERTICALBAR  = C.SDLK_KP_DBLVERTICALBAR
    K_KP_COLON              = C.SDLK_KP_COLON
    K_KP_HASH               = C.SDLK_KP_HASH
    K_KP_SPACE              = C.SDLK_KP_SPACE
    K_KP_AT                 = C.SDLK_KP_AT
    K_KP_EXCLAM             = C.SDLK_KP_EXCLAM
    K_KP_MEMSTORE           = C.SDLK_KP_MEMSTORE
    K_KP_MEMRECALL          = C.SDLK_KP_MEMRECALL
    K_KP_MEMCLEAR           = C.SDLK_KP_MEMCLEAR
    K_KP_MEMADD             = C.SDLK_KP_MEMADD
    SDLK_KP_MEMSUBTRACT     = C.SDLK_KP_MEMSUBTRACT
    SDLK_KP_MEMMULTIPLY     = C.SDLK_KP_MEMMULTIPLY
    K_KP_MEMDIVIDE          = C.SDLK_KP_MEMDIVIDE
    K_KP_PLUSMINUS          = C.SDLK_KP_PLUSMINUS
    K_KP_CLEAR              = C.SDLK_KP_CLEAR
    K_KP_CLEARENTRY         = C.SDLK_KP_CLEARENTRY
    K_KP_BINARY             = C.SDLK_KP_BINARY
    K_KP_OCTAL              = C.SDLK_KP_OCTAL
    K_KP_DECIMAL            = C.SDLK_KP_DECIMAL
    SDLK_KP_HEXADECIMAL     = C.SDLK_KP_HEXADECIMAL

    K_LCTRL  = C.SDLK_LCTRL
    K_LSHIFT = C.SDLK_LSHIFT
    K_LALT   = C.SDLK_LALT
    K_LGUI   = C.SDLK_LGUI
    K_RCTRL  = C.SDLK_RCTRL
    K_RSHIFT = C.SDLK_RSHIFT
    K_RALT   = C.SDLK_RALT
    K_RGUI   = C.SDLK_RGUI

    K_MODE = C.SDLK_MODE

    K_AUDIONEXT    = C.SDLK_AUDIONEXT
    K_AUDIOPREV    = C.SDLK_AUDIOPREV
    K_AUDIOSTOP    = C.SDLK_AUDIOSTOP
    K_AUDIOPLAY    = C.SDLK_AUDIOPLAY
    K_AUDIOMUTE    = C.SDLK_AUDIOMUTE
    K_MEDIASELECT  = C.SDLK_MEDIASELECT
    K_WWW          = C.SDLK_WWW
    K_MAIL         = C.SDLK_MAIL
    K_CALCULATOR   = C.SDLK_CALCULATOR
    K_COMPUTER     = C.SDLK_COMPUTER
    K_AC_SEARCH    = C.SDLK_AC_SEARCH
    K_AC_HOME      = C.SDLK_AC_HOME
    K_AC_BACK      = C.SDLK_AC_BACK
    K_AC_FORWARD   = C.SDLK_AC_FORWARD
    K_AC_STOP      = C.SDLK_AC_STOP
    K_AC_REFRESH   = C.SDLK_AC_REFRESH
    K_AC_BOOKMARKS = C.SDLK_AC_BOOKMARKS

    SDLK_BRIGHTNESSDOWN = C.SDLK_BRIGHTNESSDOWN
    K_BRIGHTNESSUP      = C.SDLK_BRIGHTNESSUP
    K_DISPLAYSWITCH     = C.SDLK_DISPLAYSWITCH
    SDLK_KBDILLUMTOGGLE = C.SDLK_KBDILLUMTOGGLE
    K_KBDILLUMDOWN      = C.SDLK_KBDILLUMDOWN
    K_KBDILLUMUP        = C.SDLK_KBDILLUMUP
    K_EJECT             = C.SDLK_EJECT
    K_SLEEP             = C.SDLK_SLEEP
)
const (
    LOG_CATEGORY_APPLICATION = C.SDL_LOG_CATEGORY_APPLICATION
    LOG_CATEGORY_ERROR       = C.SDL_LOG_CATEGORY_ERROR
    LOG_CATEGORY_SYSTEM      = C.SDL_LOG_CATEGORY_SYSTEM
    LOG_CATEGORY_AUDIO       = C.SDL_LOG_CATEGORY_AUDIO
    LOG_CATEGORY_VIDEO       = C.SDL_LOG_CATEGORY_VIDEO
    LOG_CATEGORY_RENDER      = C.SDL_LOG_CATEGORY_RENDER
    LOG_CATEGORY_INPUT       = C.SDL_LOG_CATEGORY_INPUT

    LOG_CATEGORY_RESERVED1  = C.SDL_LOG_CATEGORY_RESERVED1
    LOG_CATEGORY_RESERVED2  = C.SDL_LOG_CATEGORY_RESERVED2
    LOG_CATEGORY_RESERVED3  = C.SDL_LOG_CATEGORY_RESERVED3
    LOG_CATEGORY_RESERVED4  = C.SDL_LOG_CATEGORY_RESERVED4
    LOG_CATEGORY_RESERVED5  = C.SDL_LOG_CATEGORY_RESERVED5
    LOG_CATEGORY_RESERVED6  = C.SDL_LOG_CATEGORY_RESERVED6
    LOG_CATEGORY_RESERVED7  = C.SDL_LOG_CATEGORY_RESERVED7
    LOG_CATEGORY_RESERVED8  = C.SDL_LOG_CATEGORY_RESERVED8
    LOG_CATEGORY_RESERVED9  = C.SDL_LOG_CATEGORY_RESERVED9
    LOG_CATEGORY_RESERVED10 = C.SDL_LOG_CATEGORY_RESERVED10

    LOG_CATEGORY_CUSTOM = C.SDL_LOG_CATEGORY_CUSTOM
)
const (
    BUTTON_LEFT   = C.SDL_BUTTON_LEFT
    BUTTON_MIDDLE = C.SDL_BUTTON_MIDDLE
    BUTTON_RIGHT  = C.SDL_BUTTON_RIGHT
    BUTTON_X1     = C.SDL_BUTTON_X1
    BUTTON_X2     = C.SDL_BUTTON_X2
    BUTTON_LMASK  = C.SDL_BUTTON_LMASK
    BUTTON_MMASK  = C.SDL_BUTTON_MMASK
    BUTTON_RMASK  = C.SDL_BUTTON_RMASK
    BUTTON_X1MASK = C.SDL_BUTTON_X1MASK
    BUTTON_X2MASK = C.SDL_BUTTON_X2MASK
)
const (
    ALPHA_OPAQUE      = 255
    ALPHA_TRANSPARENT = 0
)
const (
    PIXELTYPE_UNKNOWN  = C.SDL_PIXELTYPE_UNKNOWN
    PIXELTYPE_INDEX1   = C.SDL_PIXELTYPE_INDEX1
    PIXELTYPE_INDEX4   = C.SDL_PIXELTYPE_INDEX4
    PIXELTYPE_INDEX8   = C.SDL_PIXELTYPE_INDEX8
    PIXELTYPE_PACKED8  = C.SDL_PIXELTYPE_PACKED8
    PIXELTYPE_PACKED16 = C.SDL_PIXELTYPE_PACKED16
    PIXELTYPE_PACKED32 = C.SDL_PIXELTYPE_PACKED32
    PIXELTYPE_ARRAYU8  = C.SDL_PIXELTYPE_ARRAYU8
    PIXELTYPE_ARRAYU16 = C.SDL_PIXELTYPE_ARRAYU16
    PIXELTYPE_ARRAYU32 = C.SDL_PIXELTYPE_ARRAYU32
    PIXELTYPE_ARRAYF16 = C.SDL_PIXELTYPE_ARRAYF16
    PIXELTYPE_ARRAYF32 = C.SDL_PIXELTYPE_ARRAYF32
)
const (
    BITMAPORDER_NONE = C.SDL_BITMAPORDER_NONE
    BITMAPORDER_4321 = C.SDL_BITMAPORDER_4321
    BITMAPORDER_1234 = C.SDL_BITMAPORDER_1234
)
const (
    PACKEDORDER_NONE = C.SDL_PACKEDORDER_NONE
    PACKEDORDER_XRGB = C.SDL_PACKEDORDER_XRGB
    PACKEDORDER_RGBX = C.SDL_PACKEDORDER_RGBX
    PACKEDORDER_ARGB = C.SDL_PACKEDORDER_ARGB
    PACKEDORDER_RGBA = C.SDL_PACKEDORDER_RGBA
    PACKEDORDER_XBGR = C.SDL_PACKEDORDER_XBGR
    PACKEDORDER_BGRX = C.SDL_PACKEDORDER_BGRX
    PACKEDORDER_ABGR = C.SDL_PACKEDORDER_ABGR
    PACKEDORDER_BGRA = C.SDL_PACKEDORDER_BGRA
)
const (
    ARRAYORDER_NONE = C.SDL_ARRAYORDER_NONE
    ARRAYORDER_RGB  = C.SDL_ARRAYORDER_RGB
    ARRAYORDER_RGBA = C.SDL_ARRAYORDER_RGBA
    ARRAYORDER_ARGB = C.SDL_ARRAYORDER_ARGB
    ARRAYORDER_BGR  = C.SDL_ARRAYORDER_BGR
    ARRAYORDER_BGRA = C.SDL_ARRAYORDER_BGRA
    ARRAYORDER_ABGR = C.SDL_ARRAYORDER_ABGR
)
const (
    PACKEDLAYOUT_NONE    = C.SDL_PACKEDLAYOUT_NONE
    PACKEDLAYOUT_332     = C.SDL_PACKEDLAYOUT_332
    PACKEDLAYOUT_4444    = C.SDL_PACKEDLAYOUT_4444
    PACKEDLAYOUT_1555    = C.SDL_PACKEDLAYOUT_1555
    PACKEDLAYOUT_5551    = C.SDL_PACKEDLAYOUT_5551
    PACKEDLAYOUT_565     = C.SDL_PACKEDLAYOUT_565
    PACKEDLAYOUT_8888    = C.SDL_PACKEDLAYOUT_8888
    PACKEDLAYOUT_2101010 = C.SDL_PACKEDLAYOUT_2101010
    PACKEDLAYOUT_1010102 = C.SDL_PACKEDLAYOUT_1010102
)
const (
    PIXELFORMAT_UNKNOWN     = C.SDL_PIXELFORMAT_UNKNOWN
    PIXELFORMAT_INDEX1LSB   = C.SDL_PIXELFORMAT_INDEX1LSB
    PIXELFORMAT_INDEX1MSB   = C.SDL_PIXELFORMAT_INDEX1MSB
    PIXELFORMAT_INDEX4LSB   = C.SDL_PIXELFORMAT_INDEX4LSB
    PIXELFORMAT_INDEX4MSB   = C.SDL_PIXELFORMAT_INDEX4MSB
    PIXELFORMAT_INDEX8      = C.SDL_PIXELFORMAT_INDEX8
    PIXELFORMAT_RGB332      = C.SDL_PIXELFORMAT_RGB332
    PIXELFORMAT_RGB444      = C.SDL_PIXELFORMAT_RGB444
    PIXELFORMAT_RGB555      = C.SDL_PIXELFORMAT_RGB555
    PIXELFORMAT_BGR555      = C.SDL_PIXELFORMAT_BGR555
    PIXELFORMAT_ARGB4444    = C.SDL_PIXELFORMAT_ARGB4444
    PIXELFORMAT_RGBA4444    = C.SDL_PIXELFORMAT_RGBA4444
    PIXELFORMAT_ABGR4444    = C.SDL_PIXELFORMAT_ABGR4444
    PIXELFORMAT_BGRA4444    = C.SDL_PIXELFORMAT_BGRA4444
    PIXELFORMAT_ARGB1555    = C.SDL_PIXELFORMAT_ARGB1555
    PIXELFORMAT_RGBA5551    = C.SDL_PIXELFORMAT_RGBA5551
    PIXELFORMAT_ABGR1555    = C.SDL_PIXELFORMAT_ABGR1555
    PIXELFORMAT_BGRA5551    = C.SDL_PIXELFORMAT_BGRA5551
    PIXELFORMAT_RGB565      = C.SDL_PIXELFORMAT_RGB565
    PIXELFORMAT_BGR565      = C.SDL_PIXELFORMAT_BGR565
    PIXELFORMAT_RGB24       = C.SDL_PIXELFORMAT_RGB24
    PIXELFORMAT_BGR24       = C.SDL_PIXELFORMAT_BGR24
    PIXELFORMAT_RGB888      = C.SDL_PIXELFORMAT_RGB888
    PIXELFORMAT_RGBX8888    = C.SDL_PIXELFORMAT_RGBX8888
    PIXELFORMAT_BGR888      = C.SDL_PIXELFORMAT_BGR888
    PIXELFORMAT_BGRX8888    = C.SDL_PIXELFORMAT_BGRX8888
    PIXELFORMAT_ARGB8888    = C.SDL_PIXELFORMAT_ARGB8888
    PIXELFORMAT_RGBA8888    = C.SDL_PIXELFORMAT_RGBA8888
    PIXELFORMAT_ABGR8888    = C.SDL_PIXELFORMAT_ABGR8888
    PIXELFORMAT_BGRA8888    = C.SDL_PIXELFORMAT_BGRA8888
    PIXELFORMAT_ARGB2101010 = C.SDL_PIXELFORMAT_ARGB2101010

    PIXELFORMAT_IYUV = C.SDL_PIXELFORMAT_IYUV
    PIXELFORMAT_YUY2 = C.SDL_PIXELFORMAT_YUY2
    PIXELFORMAT_UYVY = C.SDL_PIXELFORMAT_UYVY
    PIXELFORMAT_YVYU = C.SDL_PIXELFORMAT_YVYU
)
const (
    INIT_TIMER          = C.SDL_INIT_TIMER
    INIT_AUDIO          = C.SDL_INIT_AUDIO
    INIT_VIDEO          = C.SDL_INIT_VIDEO
    INIT_JOYSTICK       = C.SDL_INIT_JOYSTICK
    INIT_HAPTIC         = C.SDL_INIT_HAPTIC
    INIT_GAMECONTROLLER = C.SDL_INIT_GAMECONTROLLER
    INIT_EVENTS         = C.SDL_INIT_EVENTS
    INIT_NOPARACHUTE    = C.SDL_INIT_NOPARACHUTE
    INIT_EVERYTHING     = C.SDL_INIT_EVERYTHING
)
const (
    SWSURFACE = C.SDL_SWSURFACE
    PREALLOC  = C.SDL_PREALLOC
    RLEACCEL  = C.SDL_RLEACCEL
    DONTFREE  = C.SDL_DONTFREE
)
const (
    MAJOR_VERSION = C.SDL_MAJOR_VERSION
    MINOR_VERSION = C.SDL_MINOR_VERSION
    PATCHLEVEL    = C.SDL_PATCHLEVEL
)
const (
    WINDOWPOS_UNDEFINED_MASK = C.SDL_WINDOWPOS_UNDEFINED_MASK
    WINDOWPOS_UNDEFINED      = C.SDL_WINDOWPOS_UNDEFINED

    WINDOWPOS_CENTERED_MASK = C.SDL_WINDOWPOS_CENTERED_MASK
    WINDOWPOS_CENTERED      = C.SDL_WINDOWPOS_CENTERED
)
const (
    CACHELINE_SIZE = C.SDL_CACHELINE_SIZE
)
const COMPILEDVERSION = C.SDL_COMPILEDVERSION
const (
    MAX_LOG_MESSAGE = C.SDL_MAX_LOG_MESSAGE
)
const (
    MIX_MAXVOLUME = C.SDL_MIX_MAXVOLUME
)
const (
    SCANCODE_MASK = C.SDLK_SCANCODE_MASK
)
const TEXTEDITINGEVENT_TEXT_SIZE = C.SDL_TEXTEDITINGEVENT_TEXT_SIZE
const TEXTINPUTEVENT_TEXT_SIZE = C.SDL_TEXTINPUTEVENT_TEXT_SIZE

func AUDIO_BITSIZE Uses

func AUDIO_BITSIZE(x uint32) uint32

func AUDIO_ISBIGENDIAN Uses

func AUDIO_ISBIGENDIAN(x uint32) uint32

func AUDIO_ISFLOAT Uses

func AUDIO_ISFLOAT(x uint32) uint32

func AUDIO_ISINT Uses

func AUDIO_ISINT(x uint32) uint32

func AUDIO_ISLITTLEENDIAN Uses

func AUDIO_ISLITTLEENDIAN(x uint32) uint32

func AUDIO_ISSIGNED Uses

func AUDIO_ISSIGNED(x uint32) uint32

func AUDIO_ISUNSIGNED Uses

func AUDIO_ISUNSIGNED(x uint32) uint32

func AddEventWatch Uses

func AddEventWatch(filter EventFilter, data interface{})

func AudioInit Uses

func AudioInit(name string) error

func AudioQuit Uses

func AudioQuit()

func BUTTON Uses

func BUTTON(x uint8) uint8

func CalculateGammaRamp Uses

func CalculateGammaRamp(gamma float32, ramp []uint16)

func CloseAudio Uses

func CloseAudio()

func ConvertPixels Uses

func ConvertPixels(w, h int, sf uint32, src uintptr, sp int, df uint32, dst uintptr, dp int) error

func DisableScreenSaver Uses

func DisableScreenSaver()

func EnableScreenSaver Uses

func EnableScreenSaver()

func EventState Uses

func EventState(t uint32, s int) uint8

func FilterEvents Uses

func FilterEvents(filter EventFilter, data unsafe.Pointer)

func FreeWAV Uses

func FreeWAV(buf []byte)

func GL_ExtensionSupported Uses

func GL_ExtensionSupported(ext string) bool

func GL_GetAttribute Uses

func GL_GetAttribute(attr GLattr) (int, error)

func GL_GetProcAddress Uses

func GL_GetProcAddress(proc string) uintptr

func GL_GetSwapInterval Uses

func GL_GetSwapInterval() (bool, error)

func GL_LoadLibrary Uses

func GL_LoadLibrary(path string) error

func GL_SetAttribute Uses

func GL_SetAttribute(attr GLattr, val int) error

func GL_SetSwapInterval Uses

func GL_SetSwapInterval(vsync bool) error

func GL_UnloadLibrary Uses

func GL_UnloadLibrary()

func GetAudioDeviceName Uses

func GetAudioDeviceName(i int, ic bool) (string, error)

func GetAudioDriver Uses

func GetAudioDriver(i int) (string, error)

func GetCPUCacheLineSize Uses

func GetCPUCacheLineSize() int

func GetCPUCount Uses

func GetCPUCount() int

func GetClipboardText Uses

func GetClipboardText() string

func GetCurrentAudioDriver Uses

func GetCurrentAudioDriver() string

func GetCurrentVideoDriver Uses

func GetCurrentVideoDriver() string

func GetEventState Uses

func GetEventState(t uint32) uint8

func GetHint Uses

func GetHint(name string) string

func GetKeyboardState Uses

func GetKeyboardState() []uint8

func GetMouseState Uses

func GetMouseState() (state uint8, x, y int)

func GetNumAudioDevices Uses

func GetNumAudioDevices(ic bool) int

func GetNumAudioDrivers Uses

func GetNumAudioDrivers() int

func GetNumDisplayModes Uses

func GetNumDisplayModes(i int) (int, error)

func GetNumRenderDrivers Uses

func GetNumRenderDrivers() int

func GetNumVideoDisplays Uses

func GetNumVideoDisplays() int

func GetNumVideoDrivers Uses

func GetNumVideoDrivers() int

func GetPixelFormatName Uses

func GetPixelFormatName(f uint32) string

func GetRelativeMouseMode Uses

func GetRelativeMouseMode() bool

func GetRelativeMouseState Uses

func GetRelativeMouseState() (state uint8, x, y int)

func GetRevision Uses

func GetRevision() string

func GetRevisionNumber Uses

func GetRevisionNumber() int

func GetVideoDriver Uses

func GetVideoDriver(i int) string

func Has3DNow Uses

func Has3DNow() bool

func HasAltiVec Uses

func HasAltiVec() bool

func HasClipboardText Uses

func HasClipboardText() bool

func HasEvent Uses

func HasEvent(t uint32) bool

func HasEvents Uses

func HasEvents(min, max uint32) bool

func HasMMX Uses

func HasMMX() bool

func HasRDTSC Uses

func HasRDTSC() bool

func HasSSE Uses

func HasSSE() bool

func HasSSE2 Uses

func HasSSE2() bool

func HasSSE3 Uses

func HasSSE3() bool

func HasSSE41 Uses

func HasSSE41() bool

func HasSSE42 Uses

func HasSSE42() bool

func Init Uses

func Init(flags uint32) error

func InitSubSystem Uses

func InitSubSystem(flags uint32) error

func IsScreenSaverEnabled Uses

func IsScreenSaverEnabled() bool

func LoadDollarTemplates Uses

func LoadDollarTemplates(rw *RWops, id TouchID) error

func LockAudio Uses

func LockAudio()

func Log Uses

func Log(str string, args ...interface{})

func LogCritical Uses

func LogCritical(cat int, str string, args ...interface{})

func LogDebug Uses

func LogDebug(cat int, str string, args ...interface{})

func LogError Uses

func LogError(cat int, str string, args ...interface{})

func LogInfo Uses

func LogInfo(cat int, str string, args ...interface{})

func LogMessage Uses

func LogMessage(cat int, pri LogPriority, str string, args ...interface{})

func LogResetPriorities Uses

func LogResetPriorities()

func LogSetAllPriority Uses

func LogSetAllPriority(p LogPriority)

func LogSetOutputFunction Uses

func LogSetOutputFunction(f LogOutputFunction, data interface{})

func LogSetPriority Uses

func LogSetPriority(cat int, p LogPriority)

func LogVerbose Uses

func LogVerbose(cat int, str string, args ...interface{})

func LogWarn Uses

func LogWarn(cat int, str string, args ...interface{})

func MasksToPixelFormatEnum Uses

func MasksToPixelFormatEnum(bpp int, rm, gm, bm, am uint32) (uint32, error)

func MixAudio Uses

func MixAudio(dst, src []byte, vol int) error

func MixAudioFormat Uses

func MixAudioFormat(dst, src []byte, f AudioFormat, vol int) error

func PauseAudio Uses

func PauseAudio(p bool)

func PeepEvents Uses

func PeepEvents(events []Event, action Eventaction, min, max uint32) (int, error)

func PixelFormatEnumToMasks Uses

func PixelFormatEnumToMasks(f uint32) (bpp int, rm, gm, bm, am uint32, err error)

func PollEvent Uses

func PollEvent(ev *Event) bool

func PumpEvents Uses

func PumpEvents()

func PushEvent Uses

func PushEvent(ev Event) (bool, error)

func Quit Uses

func Quit()

func QuitSubSystem Uses

func QuitSubSystem(flags uint32)

func RecordGesture Uses

func RecordGesture() error

func RegisterEvents Uses

func RegisterEvents(num int) (uint32, error)

func SaveAllDollarTemplates Uses

func SaveAllDollarTemplates(rw *RWops) error

func SaveBMP_RW Uses

func SaveBMP_RW(s *Surface, rw *RWops, free bool) error

func SaveDollarTemplate Uses

func SaveDollarTemplate(rw *RWops, id GestureID) error

func SetClipboardText Uses

func SetClipboardText(text string) error

func SetEventFilter Uses

func SetEventFilter(filter EventFilter, userdata interface{})

func SetHint Uses

func SetHint(name, value string) bool

func SetRelativeMouseMode Uses

func SetRelativeMouseMode(e bool) error

func SetTextInputRect Uses

func SetTextInputRect(r *Rect)

func ShowCursor Uses

func ShowCursor(t int) bool

func StartTextInput Uses

func StartTextInput()

func StopTextInput Uses

func StopTextInput()

func UnlockAudio Uses

func UnlockAudio()

func VERSION_ATLEAST Uses

func VERSION_ATLEAST(x, y, z uint8) bool

func VERSTIONNUM Uses

func VERSTIONNUM(x, y, z uint8) uint8

func VideoInit Uses

func VideoInit(driver string) error

func VideoQuit Uses

func VideoQuit()

func WINDOWPOS_CENTERED_DISPLAY Uses

func WINDOWPOS_CENTERED_DISPLAY(x uint32) uint32

func WINDOWPOS_CENTERED_ISCENTERED Uses

func WINDOWPOS_CENTERED_ISCENTERED(x uint32) bool

func WINDOWPOS_ISUNDEFINED Uses

func WINDOWPOS_ISUNDEFINED(x uint32) bool

func WINDOWPOS_UNDEFINED_DISPLAY Uses

func WINDOWPOS_UNDEFINED_DISPLAY(x uint32) uint32

func WaitEvent Uses

func WaitEvent(ev *Event) error

func WaitEventTimeout Uses

func WaitEventTimeout(ev *Event, timeout time.Duration) error

func WarpMouse Uses

func WarpMouse(x, y int)

func WasInit Uses

func WasInit(flags uint32) uint32

type AudioCVT Uses

type AudioCVT struct {
    SrcFormat AudioFormat
    DstFormat AudioFormat
    RateIncr  float64
    // contains filtered or unexported fields
}

func BuildAudioCVT Uses

func BuildAudioCVT(sf AudioFormat, sc uint8, sr int, df AudioFormat, dc uint8, dr int) (*AudioCVT, bool, error)

func (*AudioCVT) Buf Uses

func (a *AudioCVT) Buf() []byte

func (*AudioCVT) ConvertAudio Uses

func (cvt *AudioCVT) ConvertAudio() error

func (*AudioCVT) Filters Uses

func (a *AudioCVT) Filters() []uintptr

type AudioCallback Uses

type AudioCallback func(interface{}, []uint8)

type AudioDeviceID Uses

type AudioDeviceID C.SDL_AudioDeviceID

func OpenAudioDevice Uses

func OpenAudioDevice(dev string, ic bool, des *AudioSpec, ac bool) (AudioDeviceID, *AudioSpec, error)

func (AudioDeviceID) Close Uses

func (dev AudioDeviceID) Close()

func (AudioDeviceID) GetStatus Uses

func (id AudioDeviceID) GetStatus() AudioStatus

func (AudioDeviceID) Lock Uses

func (dev AudioDeviceID) Lock()

func (AudioDeviceID) PauseAudio Uses

func (id AudioDeviceID) PauseAudio(p bool)

func (AudioDeviceID) Unlock Uses

func (dev AudioDeviceID) Unlock()

type AudioFormat Uses

type AudioFormat C.SDL_AudioFormat

type AudioSpec Uses

type AudioSpec struct {
    Freq     int32
    Format   AudioFormat
    Channels uint8
    Silence  uint8
    Samples  uint16

    Size uint32
    // contains filtered or unexported fields
}

func LoadWAV Uses

func LoadWAV(file string) (*AudioSpec, []byte, error)

func LoadWAV_RW Uses

func LoadWAV_RW(rw *RWops, free bool) (*AudioSpec, []byte, error)

func OpenAudio Uses

func OpenAudio(des *AudioSpec) (*AudioSpec, error)

func (*AudioSpec) GetData Uses

func (a *AudioSpec) GetData() interface{}

func (*AudioSpec) SetData Uses

func (a *AudioSpec) SetData(v interface{})

type AudioStatus Uses

type AudioStatus C.SDL_AudioStatus
const (
    AUDIO_STOPPED AudioStatus = C.SDL_AUDIO_STOPPED
    AUDIO_PLAYING AudioStatus = C.SDL_AUDIO_PLAYING
    AUDIO_PAUSED  AudioStatus = C.SDL_AUDIO_PAUSED
)

func GetAudioStatus Uses

func GetAudioStatus() AudioStatus

type BlendMode Uses

type BlendMode C.SDL_BlendMode
const (
    BLENDMODE_NONE  BlendMode = C.SDL_BLENDMODE_NONE
    BLENDMODE_BLEND BlendMode = C.SDL_BLENDMODE_BLEND
    BLENDMODE_ADD   BlendMode = C.SDL_BLENDMODE_ADD
    BLENDMODE_MOD   BlendMode = C.SDL_BLENDMODE_MOD
)

type Color Uses

type Color struct {
    R   uint8
    G   uint8
    B   uint
    // contains filtered or unexported fields
}

func (Color) RGBA Uses

func (c Color) RGBA() (r, g, b, a uint32)

type Cursor Uses

type Cursor struct {
    // contains filtered or unexported fields
}

func CreateCursor Uses

func CreateCursor(data []uint8, mask []uint8, w, h, hx, hy int) (*Cursor, error)

func GetCursor Uses

func GetCursor() (*Cursor, error)

func (*Cursor) Free Uses

func (c *Cursor) Free()

func (*Cursor) Set Uses

func (c *Cursor) Set()

type DisplayMode Uses

type DisplayMode struct {
    Format      uint32
    W           int32
    H           int32
    RefreshRate int32
    DriverData  uintptr
}

func GetClosestDisplayMode Uses

func GetClosestDisplayMode(i int, m *DisplayMode) (*DisplayMode, error)

func GetCurrentDisplayMode Uses

func GetCurrentDisplayMode(i int) (*DisplayMode, error)

func GetDesktopDisplayMode Uses

func GetDesktopDisplayMode(i int) (*DisplayMode, error)

func GetDisplayMode Uses

func GetDisplayMode(i int, m int) (*DisplayMode, error)

type DollarGestureEvent Uses

type DollarGestureEvent struct {
    Type       EventType
    Timestamp  uint32
    WindowID   uint32
    TouchId    TouchID
    GestureId  GestureID
    NumFingers uint32
    Error      float32
}

type DropEvent Uses

type DropEvent struct {
    Type      EventType
    Timestamp uint32
    // contains filtered or unexported fields
}

func (*DropEvent) File Uses

func (ev *DropEvent) File() string

type Event Uses

type Event interface {
    // contains filtered or unexported methods
}

type EventFilter Uses

type EventFilter func(data interface{}, ev Event) bool

func GetEventFilter Uses

func GetEventFilter() (EventFilter, interface{})

type EventType Uses

type EventType uint32
const (
    FIRSTEVENT EventType = C.SDL_FIRSTEVENT

    QUIT EventType = C.SDL_QUIT

    APP_TERMINATING         EventType = C.SDL_APP_TERMINATING
    APP_LOWMEMORY           EventType = C.SDL_APP_LOWMEMORY
    APP_WILLENTERBACKGROUND EventType = C.SDL_APP_WILLENTERBACKGROUND
    APP_DIDENTERBACKGROUND  EventType = C.SDL_APP_DIDENTERBACKGROUND
    APP_WILLENTERFOREGROUND EventType = C.SDL_APP_WILLENTERFOREGROUND
    APP_DIDENTERFOREGROUND  EventType = C.SDL_APP_DIDENTERFOREGROUND

    WINDOWEVENT EventType = C.SDL_WINDOWEVENT
    SYSWMEVENT  EventType = C.SDL_SYSWMEVENT

    KEYDOWN     EventType = C.SDL_KEYDOWN
    KEYUP       EventType = C.SDL_KEYUP
    TEXTEDITING EventType = C.SDL_TEXTEDITING
    TEXTINPUT   EventType = C.SDL_TEXTINPUT

    MOUSEMOTION     EventType = C.SDL_MOUSEMOTION
    MOUSEBUTTONDOWN EventType = C.SDL_MOUSEBUTTONDOWN
    MOUSEBUTTONUP   EventType = C.SDL_MOUSEBUTTONUP
    MOUSEWHEEL      EventType = C.SDL_MOUSEWHEEL

    JOYAXISMOTION    EventType = C.SDL_JOYAXISMOTION
    JOYBALLMOTION    EventType = C.SDL_JOYBALLMOTION
    JOYHATMOTION     EventType = C.SDL_JOYHATMOTION
    JOYBUTTONDOWN    EventType = C.SDL_JOYBUTTONDOWN
    JOYBUTTONUP      EventType = C.SDL_JOYBUTTONUP
    JOYDEVICEADDED   EventType = C.SDL_JOYDEVICEADDED
    JOYDEVICEREMOVED EventType = C.SDL_JOYDEVICEREMOVED

    CONTROLLERAXISMOTION     EventType = C.SDL_CONTROLLERAXISMOTION
    CONTROLLERBUTTONDOWN     EventType = C.SDL_CONTROLLERBUTTONDOWN
    CONTROLLERBUTTONUP       EventType = C.SDL_CONTROLLERBUTTONUP
    CONTROLLERDEVICEADDED    EventType = C.SDL_CONTROLLERDEVICEADDED
    CONTROLLERDEVICEREMOVED  EventType = C.SDL_CONTROLLERDEVICEREMOVED
    CONTROLLERDEVICEREMAPPED EventType = C.SDL_CONTROLLERDEVICEREMAPPED

    FINGERDOWN   EventType = C.SDL_FINGERDOWN
    FINGERUP     EventType = C.SDL_FINGERUP
    FINGERMOTION EventType = C.SDL_FINGERMOTION

    DOLLARGESTURE EventType = C.SDL_DOLLARGESTURE
    DOLLARRECORD  EventType = C.SDL_DOLLARRECORD
    MULTIGESTURE  EventType = C.SDL_MULTIGESTURE

    CLIPBOARDUPDATE EventType = C.SDL_CLIPBOARDUPDATE

    DROPFILE EventType = C.SDL_DROPFILE

    USEREVENT EventType = C.SDL_USEREVENT

    LASTEVENT EventType = C.SDL_LASTEVENT
)

type Eventaction Uses

type Eventaction C.SDL_eventaction
const (
    ADDEVENT  Eventaction = C.SDL_ADDEVENT
    PEEKEVENT Eventaction = C.SDL_PEEKEVENT
    GETEVENT  Eventaction = C.SDL_GETEVENT
)

type Finger Uses

type Finger struct {
    Id       FingerID
    X, Y     float32
    Pressure float32
}

type FingerID Uses

type FingerID C.SDL_FingerID

type GLContext Uses

type GLContext uintptr

func (GLContext) Delete Uses

func (ctx GLContext) Delete()

type GLattr Uses

type GLattr uint32
const (
    GL_RED_SIZE              GLattr = C.SDL_GL_RED_SIZE
    GL_GREEN_SIZE            GLattr = C.SDL_GL_GREEN_SIZE
    GL_BLUE_SIZE             GLattr = C.SDL_GL_BLUE_SIZE
    GL_ALPHA_SIZE            GLattr = C.SDL_GL_ALPHA_SIZE
    GL_BUFFER_SIZE           GLattr = C.SDL_GL_BUFFER_SIZE
    GL_DOUBLEBUFFER          GLattr = C.SDL_GL_DOUBLEBUFFER
    GL_DEPTH_SIZE            GLattr = C.SDL_GL_DEPTH_SIZE
    GL_STENCIL_SIZE          GLattr = C.SDL_GL_STENCIL_SIZE
    GL_ACCUM_RED_SIZE        GLattr = C.SDL_GL_ACCUM_RED_SIZE
    GL_ACCUM_GREEN_SIZE      GLattr = C.SDL_GL_ACCUM_GREEN_SIZE
    GL_ACCUM_BLUE_SIZE       GLattr = C.SDL_GL_ACCUM_BLUE_SIZE
    GL_ACCUM_ALPHA_SIZE      GLattr = C.SDL_GL_ACCUM_ALPHA_SIZE
    GL_STEREO                GLattr = C.SDL_GL_STEREO
    GL_MULTISAMPLEBUFFERS    GLattr = C.SDL_GL_MULTISAMPLEBUFFERS
    GL_MULTISAMPLESAMPLES    GLattr = C.SDL_GL_MULTISAMPLESAMPLES
    GL_ACCELERATED_VISUAL    GLattr = C.SDL_GL_ACCELERATED_VISUAL
    GL_RETAINED_BACKING      GLattr = C.SDL_GL_RETAINED_BACKING
    GL_CONTEXT_MAJOR_VERSION GLattr = C.SDL_GL_CONTEXT_MAJOR_VERSION
    GL_CONTEXT_MINOR_VERSION GLattr = C.SDL_GL_CONTEXT_MINOR_VERSION
    GL_CONTEXT_EGL           GLattr = C.SDL_GL_CONTEXT_EGL
    GL_CONTEXT_FLAGS         GLattr = C.SDL_GL_CONTEXT_FLAGS
    GL_CONTEXT_PROFILE_MASK  GLattr = C.SDL_GL_CONTEXT_PROFILE_MASK
)

type GLcontextFlag Uses

type GLcontextFlag uint32
const (
    GL_CONTEXT_DEBUG_FLAG              GLcontextFlag = C.SDL_GL_CONTEXT_DEBUG_FLAG
    GL_CONTEXT_FORWARD_COMPATIBLE_FLAG GLcontextFlag = C.SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG
    GL_CONTEXT_ROBUST_ACCESS_FLAG      GLcontextFlag = C.SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG
)

type GLprofile Uses

type GLprofile uint32
const (
    GL_CONTEXT_PROFILE_CORE          GLprofile = C.SDL_GL_CONTEXT_PROFILE_CORE
    GL_CONTEXT_PROFILE_COMPATIBILITY GLprofile = C.SDL_GL_CONTEXT_PROFILE_COMPATIBILITY
    GL_CONTEXT_PROFILE_ES            GLprofile = C.SDL_GL_CONTEXT_PROFILE_ES
)

type GestureID Uses

type GestureID C.SDL_GestureID

type JoyAxisEvent Uses

type JoyAxisEvent struct {
    Type      EventType
    Timestamp uint32
    Which     uint8
    Axis      uint8

    Value int32
    // contains filtered or unexported fields
}

type JoyBallEvent Uses

type JoyBallEvent struct {
    Type      EventType
    Timestamp uint32
    Which     uint8
    Ball      uint8

    Xrel, Yrel int32
    // contains filtered or unexported fields
}

type JoyButtonEvent Uses

type JoyButtonEvent struct {
    Type      EventType
    Timestamp uint32
    Which     uint8
    Hat       uint8
    Value     uint8
    // contains filtered or unexported fields
}

type JoyHatEvent Uses

type JoyHatEvent struct {
    Type      EventType
    Timestamp uint32
    Which     uint8
    Hat       uint8
    Value     uint8
    // contains filtered or unexported fields
}

type KeyboardEvent Uses

type KeyboardEvent struct {
    Type      EventType
    Timestamp uint32
    WindowID  uint32
    State     uint8
    Repeat    uint8

    Keysym Keysym
    // contains filtered or unexported fields
}

type Keycode Uses

type Keycode C.SDL_Keycode

func GetKeyFromName Uses

func GetKeyFromName(name string) Keycode

func SCANCODE_TO_KEYCODE Uses

func SCANCODE_TO_KEYCODE(x Scancode) Keycode

func (Keycode) GetName Uses

func (k Keycode) GetName() string

func (Keycode) GetScancode Uses

func (k Keycode) GetScancode() Scancode

type Keymod Uses

type Keymod C.SDL_Keymod
const (
    KMOD_NONE     Keymod = C.KMOD_NONE
    KMOD_LSHIFT   Keymod = C.KMOD_LSHIFT
    KMOD_RSHIFT   Keymod = C.KMOD_RSHIFT
    KMOD_LCTRL    Keymod = C.KMOD_LCTRL
    KMOD_RCTRL    Keymod = C.KMOD_RCTRL
    KMOD_LALT     Keymod = C.KMOD_LALT
    KMOD_RALT     Keymod = C.KMOD_RALT
    KMOD_LGUI     Keymod = C.KMOD_LGUI
    KMOD_RGUI     Keymod = C.KMOD_RGUI
    KMOD_NUM      Keymod = C.KMOD_NUM
    KMOD_CAPS     Keymod = C.KMOD_CAPS
    KMOD_MODE     Keymod = C.KMOD_MODE
    KMOD_RESERVED Keymod = C.KMOD_RESERVED

    KMOD_CTRL  Keymod = C.KMOD_CTRL
    KMOD_SHIFT Keymod = C.KMOD_SHIFT
    KMOD_ALT   Keymod = C.KMOD_ALT
    KMOD_GUI   Keymod = C.KMOD_GUI
)

func GetModState Uses

func GetModState() Keymod

type Keysym Uses

type Keysym struct {
    Scancode Scancode
    Sym      Keycode
    Mod      uint16
    Unicode  uint32
}

type LogOutputFunction Uses

type LogOutputFunction func(data interface{}, cat int, pri LogPriority, message string)

func LogGetOutputFunction Uses

func LogGetOutputFunction() (LogOutputFunction, interface{})

type LogPriority Uses

type LogPriority C.SDL_LogPriority
const (
    LOG_PRIORITY_VERBOSE  LogPriority = C.SDL_LOG_PRIORITY_VERBOSE
    LOG_PRIORITY_DEBUG    LogPriority = C.SDL_LOG_PRIORITY_DEBUG
    LOG_PRIORITY_INFO     LogPriority = C.SDL_LOG_PRIORITY_INFO
    LOG_PRIORITY_WARN     LogPriority = C.SDL_LOG_PRIORITY_WARN
    LOG_PRIORITY_ERROR    LogPriority = C.SDL_LOG_PRIORITY_ERROR
    LOG_PRIORITY_CRITICAL LogPriority = C.SDL_LOG_PRIORITY_CRITICAL
    NUM_LOG_PRIORITIES    LogPriority = C.SDL_NUM_LOG_PRIORITIES
)

func LogGetPriority Uses

func LogGetPriority(cat int) LogPriority

type MouseButtonEvent Uses

type MouseButtonEvent struct {
    Type      EventType
    Timestamp uint32
    WindowID  uint32
    Button    uint8
    State     uint8

    X, Y int32
    // contains filtered or unexported fields
}

type MouseMotionEvent Uses

type MouseMotionEvent struct {
    Type      EventType
    Timestamp uint32
    WindowID  uint32
    State     uint8

    X, Y       int32
    Xrel, Yrel int32
    // contains filtered or unexported fields
}

type MouseWheelEvent Uses

type MouseWheelEvent struct {
    Type      EventType
    Timestamp uint32
    WindowID  uint32
    X, Y      int32
}

type MultiGestureEvent Uses

type MultiGestureEvent struct {
    Type       EventType
    Timestamp  uint32
    WindowID   uint32
    TouchId    TouchID
    DTheta     float32
    DDist      float32
    X, Y       float32
    NumFingers uint16
    // contains filtered or unexported fields
}

type Palette Uses

type Palette struct {
    Version  uint32
    Refcount int32
    // contains filtered or unexported fields
}

func AllocPalette Uses

func AllocPalette(ncolors int) (*Palette, error)

func (*Palette) Colors Uses

func (p *Palette) Colors() []Color

func (*Palette) Free Uses

func (p *Palette) Free()

func (*Palette) SetColors Uses

func (p *Palette) SetColors(c []Color, firstcolor int) error

type PixelFormat Uses

type PixelFormat struct {
    Format        uint32
    Palette       *Palette
    BitsPerPixel  uint8
    BytesPerPixel 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     *PixelFormat
    // contains filtered or unexported fields
}

func AllocFormat Uses

func AllocFormat(f uint32) (*PixelFormat, error)

func (*PixelFormat) Free Uses

func (p *PixelFormat) Free()

func (*PixelFormat) GetRGB Uses

func (p *PixelFormat) GetRGB(pix uint32) (r, g, b uint8)

func (*PixelFormat) GetRGBA Uses

func (p *PixelFormat) GetRGBA(pix uint32) (r, g, b, a uint8)

func (*PixelFormat) MapRGB Uses

func (p *PixelFormat) MapRGB(r, g, b uint8) uint32

func (*PixelFormat) MapRGBA Uses

func (p *PixelFormat) MapRGBA(r, g, b, a uint8) uint32

func (*PixelFormat) SetPalette Uses

func (p *PixelFormat) SetPalette(pal *Palette) error

type Point Uses

type Point struct {
    X   int32
    Y   int32
}

type QuitEvent Uses

type QuitEvent struct {
    Type      EventType
    Timestamp uint32
}

type RWops Uses

type RWops struct {
    // contains filtered or unexported fields
}

func RWFromConstMem Uses

func RWFromConstMem(data []byte) (*RWops, error)

func RWFromFile Uses

func RWFromFile(file string, mode string) (*RWops, error)

func RWFromMem Uses

func RWFromMem(data []byte) (*RWops, error)

func RWFromReadSeeker Uses

func RWFromReadSeeker(r io.ReadSeeker) *RWops

func RWFromReader Uses

func RWFromReader(r io.Reader) (*RWops, error)

func (*RWops) Close Uses

func (rw *RWops) Close() error

func (*RWops) Read Uses

func (rw *RWops) Read(data []byte) (int, error)

func (*RWops) Seek Uses

func (rw *RWops) Seek(offset int64, whence int) (int64, error)

func (*RWops) Tell Uses

func (rw *RWops) Tell() (int64, error)

func (*RWops) Write Uses

func (rw *RWops) Write(data []byte) (int, error)

type Rect Uses

type Rect struct {
    X, Y int32
    W, H int32
}

func EnclosePoints Uses

func EnclosePoints(points []Point, clip *Rect) (*Rect, bool)

func GetDisplayBounds Uses

func GetDisplayBounds(i int) (*Rect, error)

func (*Rect) Empty Uses

func (r *Rect) Empty() bool

func (*Rect) Equals Uses

func (r *Rect) Equals(r2 *Rect) bool

func (*Rect) HasIntersection Uses

func (r *Rect) HasIntersection(r2 *Rect) bool

func (*Rect) IntersectRect Uses

func (r *Rect) IntersectRect(r2 *Rect) *Rect

func (*Rect) IntersectRectAndLine Uses

func (r *Rect) IntersectRectAndLine(x1, y1, x2, y2 *int) bool

func (*Rect) UnionRect Uses

func (r *Rect) UnionRect(r2 *Rect) *Rect

type Renderer Uses

type Renderer struct {
    // contains filtered or unexported fields
}

func (*Renderer) Clear Uses

func (r *Renderer) Clear() error

func (*Renderer) Copy Uses

func (r *Renderer) Copy(t *Texture, sr *Rect, dr *Rect) error

func (*Renderer) CopyEx Uses

func (r *Renderer) CopyEx(t *Texture, sr *Rect, dr *Rect, a float64, c *Point, flip RendererFlip) error

func (*Renderer) CreateTexture Uses

func (r *Renderer) CreateTexture(format uint32, access TextureAccess, w, h int) (*Texture, error)

func (*Renderer) CreateTextureFromSurface Uses

func (r *Renderer) CreateTextureFromSurface(s *Surface) (*Texture, error)

func (*Renderer) Destroy Uses

func (r *Renderer) Destroy()

func (*Renderer) DrawLine Uses

func (r *Renderer) DrawLine(x1, y1, x2, y2 int) error

func (*Renderer) DrawPoint Uses

func (r *Renderer) DrawPoint(x, y int) error

func (*Renderer) DrawPoints Uses

func (r *Renderer) DrawPoints(points []Point) error

func (*Renderer) DrawRect Uses

func (r *Renderer) DrawRect(rect *Rect) error

func (*Renderer) DrawRects Uses

func (r *Renderer) DrawRects(rects []Rect) error

func (*Renderer) FillRect Uses

func (r *Renderer) FillRect(rect *Rect) error

func (*Renderer) FillRects Uses

func (r *Renderer) FillRects(rects []Rect) error

func (*Renderer) GetDrawBlendMode Uses

func (r *Renderer) GetDrawBlendMode() (BlendMode, error)

func (*Renderer) GetDrawColor Uses

func (r *Renderer) GetDrawColor() (red, g, b, a uint8, err error)

func (*Renderer) GetInfo Uses

func (r *Renderer) GetInfo() (*RendererInfo, error)

func (*Renderer) GetViewport Uses

func (r *Renderer) GetViewport() *Rect

func (*Renderer) Present Uses

func (r *Renderer) Present()

func (*Renderer) RenderTargetSupported Uses

func (r *Renderer) RenderTargetSupported() bool

func (*Renderer) SetDrawBlendMode Uses

func (r *Renderer) SetDrawBlendMode(mode BlendMode) error

func (*Renderer) SetDrawColor Uses

func (r *Renderer) SetDrawColor(red, g, b, a uint8) error

func (*Renderer) SetRenderTarget Uses

func (r *Renderer) SetRenderTarget(t *Texture) error

func (*Renderer) SetViewport Uses

func (r *Renderer) SetViewport(rect *Rect) error

type RendererFlags Uses

type RendererFlags uint32
const (
    RENDERER_SOFTWARE      RendererFlags = C.SDL_RENDERER_SOFTWARE
    RENDERER_ACCELERATED   RendererFlags = C.SDL_RENDERER_ACCELERATED
    RENDERER_PRESENTVSYNC  RendererFlags = C.SDL_RENDERER_PRESENTVSYNC
    RENDERER_TARGETTEXTURE RendererFlags = C.SDL_RENDERER_TARGETTEXTURE
)

type RendererFlip Uses

type RendererFlip C.SDL_RendererFlip
const (
    FLIP_NONE       RendererFlip = C.SDL_FLIP_NONE
    FLIP_HORIZONTAL RendererFlip = C.SDL_FLIP_HORIZONTAL
    FLIP_VERTICAL   RendererFlip = C.SDL_FLIP_VERTICAL
)

type RendererInfo Uses

type RendererInfo struct {
    Flags             RendererFlags
    NumTextureFormats uint32
    TextureFormats    [16]uint32
    MaxTextureWidth   int32
    MaxTextureHeight  int32
    // contains filtered or unexported fields
}

func GetRenderDriverInfo Uses

func GetRenderDriverInfo(i int) (*RendererInfo, error)

func (*RendererInfo) Name Uses

func (r *RendererInfo) Name() string

type Scancode Uses

type Scancode C.SDL_Scancode
const (
    SCANCODE_UNKNOWN Scancode = C.SDL_SCANCODE_UNKNOWN

    SCANCODE_A Scancode = C.SDL_SCANCODE_A
    SCANCODE_B Scancode = C.SDL_SCANCODE_B
    SCANCODE_C Scancode = C.SDL_SCANCODE_C
    SCANCODE_D Scancode = C.SDL_SCANCODE_D
    SCANCODE_E Scancode = C.SDL_SCANCODE_E
    SCANCODE_F Scancode = C.SDL_SCANCODE_F
    SCANCODE_G Scancode = C.SDL_SCANCODE_G
    SCANCODE_H Scancode = C.SDL_SCANCODE_H
    SCANCODE_I Scancode = C.SDL_SCANCODE_I
    SCANCODE_J Scancode = C.SDL_SCANCODE_J
    SCANCODE_K Scancode = C.SDL_SCANCODE_K
    SCANCODE_L Scancode = C.SDL_SCANCODE_L
    SCANCODE_M Scancode = C.SDL_SCANCODE_M
    SCANCODE_N Scancode = C.SDL_SCANCODE_N
    SCANCODE_O Scancode = C.SDL_SCANCODE_O
    SCANCODE_P Scancode = C.SDL_SCANCODE_P
    SCANCODE_Q Scancode = C.SDL_SCANCODE_Q
    SCANCODE_R Scancode = C.SDL_SCANCODE_R
    SCANCODE_S Scancode = C.SDL_SCANCODE_S
    SCANCODE_T Scancode = C.SDL_SCANCODE_T
    SCANCODE_U Scancode = C.SDL_SCANCODE_U
    SCANCODE_V Scancode = C.SDL_SCANCODE_V
    SCANCODE_W Scancode = C.SDL_SCANCODE_W
    SCANCODE_X Scancode = C.SDL_SCANCODE_X
    SCANCODE_Y Scancode = C.SDL_SCANCODE_Y
    SCANCODE_Z Scancode = C.SDL_SCANCODE_Z

    SCANCODE_1 Scancode = C.SDL_SCANCODE_1
    SCANCODE_2 Scancode = C.SDL_SCANCODE_2
    SCANCODE_3 Scancode = C.SDL_SCANCODE_3
    SCANCODE_4 Scancode = C.SDL_SCANCODE_4
    SCANCODE_5 Scancode = C.SDL_SCANCODE_5
    SCANCODE_6 Scancode = C.SDL_SCANCODE_6
    SCANCODE_7 Scancode = C.SDL_SCANCODE_7
    SCANCODE_8 Scancode = C.SDL_SCANCODE_8
    SCANCODE_9 Scancode = C.SDL_SCANCODE_9
    SCANCODE_0 Scancode = C.SDL_SCANCODE_0

    SCANCODE_RETURN    Scancode = C.SDL_SCANCODE_RETURN
    SCANCODE_ESCAPE    Scancode = C.SDL_SCANCODE_ESCAPE
    SCANCODE_BACKSPACE Scancode = C.SDL_SCANCODE_BACKSPACE
    SCANCODE_TAB       Scancode = C.SDL_SCANCODE_TAB
    SCANCODE_SPACE     Scancode = C.SDL_SCANCODE_SPACE

    SCANCODE_MINUS        Scancode = C.SDL_SCANCODE_MINUS
    SCANCODE_EQUALS       Scancode = C.SDL_SCANCODE_EQUALS
    SCANCODE_LEFTBRACKET  Scancode = C.SDL_SCANCODE_LEFTBRACKET
    SCANCODE_RIGHTBRACKET Scancode = C.SDL_SCANCODE_RIGHTBRACKET
    SCANCODE_BACKSLASH    Scancode = C.SDL_SCANCODE_BACKSLASH
    SCANCODE_NONUSHASH    Scancode = C.SDL_SCANCODE_NONUSHASH
    SCANCODE_SEMICOLON    Scancode = C.SDL_SCANCODE_SEMICOLON
    SCANCODE_APOSTROPHE   Scancode = C.SDL_SCANCODE_APOSTROPHE
    SCANCODE_GRAVE        Scancode = C.SDL_SCANCODE_GRAVE
    SCANCODE_COMMA        Scancode = C.SDL_SCANCODE_COMMA
    SCANCODE_PERIOD       Scancode = C.SDL_SCANCODE_PERIOD
    SCANCODE_SLASH        Scancode = C.SDL_SCANCODE_SLASH

    SCANCODE_CAPSLOCK Scancode = C.SDL_SCANCODE_CAPSLOCK

    SCANCODE_F1  Scancode = C.SDL_SCANCODE_F1
    SCANCODE_F2  Scancode = C.SDL_SCANCODE_F2
    SCANCODE_F3  Scancode = C.SDL_SCANCODE_F3
    SCANCODE_F4  Scancode = C.SDL_SCANCODE_F4
    SCANCODE_F5  Scancode = C.SDL_SCANCODE_F5
    SCANCODE_F6  Scancode = C.SDL_SCANCODE_F6
    SCANCODE_F7  Scancode = C.SDL_SCANCODE_F7
    SCANCODE_F8  Scancode = C.SDL_SCANCODE_F8
    SCANCODE_F9  Scancode = C.SDL_SCANCODE_F9
    SCANCODE_F10 Scancode = C.SDL_SCANCODE_F10
    SCANCODE_F11 Scancode = C.SDL_SCANCODE_F11
    SCANCODE_F12 Scancode = C.SDL_SCANCODE_F12

    SCANCODE_PRINTSCREEN Scancode = C.SDL_SCANCODE_PRINTSCREEN
    SCANCODE_SCROLLLOCK  Scancode = C.SDL_SCANCODE_SCROLLLOCK
    SCANCODE_PAUSE       Scancode = C.SDL_SCANCODE_PAUSE
    SCANCODE_INSERT      Scancode = C.SDL_SCANCODE_INSERT
    SCANCODE_HOME        Scancode = C.SDL_SCANCODE_HOME
    SCANCODE_PAGEUP      Scancode = C.SDL_SCANCODE_PAGEUP
    SCANCODE_DELETE      Scancode = C.SDL_SCANCODE_DELETE
    SCANCODE_END         Scancode = C.SDL_SCANCODE_END
    SCANCODE_PAGEDOWN    Scancode = C.SDL_SCANCODE_PAGEDOWN
    SCANCODE_RIGHT       Scancode = C.SDL_SCANCODE_RIGHT
    SCANCODE_LEFT        Scancode = C.SDL_SCANCODE_LEFT
    SCANCODE_DOWN        Scancode = C.SDL_SCANCODE_DOWN
    SCANCODE_UP          Scancode = C.SDL_SCANCODE_UP

    SCANCODE_NUMLOCKCLEAR Scancode = C.SDL_SCANCODE_NUMLOCKCLEAR
    SCANCODE_KP_DIVIDE    Scancode = C.SDL_SCANCODE_KP_DIVIDE
    SCANCODE_KP_MULTIPLY  Scancode = C.SDL_SCANCODE_KP_MULTIPLY
    SCANCODE_KP_MINUS     Scancode = C.SDL_SCANCODE_KP_MINUS
    SCANCODE_KP_PLUS      Scancode = C.SDL_SCANCODE_KP_PLUS
    SCANCODE_KP_ENTER     Scancode = C.SDL_SCANCODE_KP_ENTER
    SCANCODE_KP_1         Scancode = C.SDL_SCANCODE_KP_1
    SCANCODE_KP_2         Scancode = C.SDL_SCANCODE_KP_2
    SCANCODE_KP_3         Scancode = C.SDL_SCANCODE_KP_3
    SCANCODE_KP_4         Scancode = C.SDL_SCANCODE_KP_4
    SCANCODE_KP_5         Scancode = C.SDL_SCANCODE_KP_5
    SCANCODE_KP_6         Scancode = C.SDL_SCANCODE_KP_6
    SCANCODE_KP_7         Scancode = C.SDL_SCANCODE_KP_7
    SCANCODE_KP_8         Scancode = C.SDL_SCANCODE_KP_8
    SCANCODE_KP_9         Scancode = C.SDL_SCANCODE_KP_9
    SCANCODE_KP_0         Scancode = C.SDL_SCANCODE_KP_0
    SCANCODE_KP_PERIOD    Scancode = C.SDL_SCANCODE_KP_PERIOD

    SCANCODE_NONUSBACKSLASH Scancode = C.SDL_SCANCODE_NONUSBACKSLASH
    SCANCODE_APPLICATION    Scancode = C.SDL_SCANCODE_APPLICATION
    SCANCODE_POWER          Scancode = C.SDL_SCANCODE_POWER
    SCANCODE_KP_EQUALS      Scancode = C.SDL_SCANCODE_KP_EQUALS
    SCANCODE_F13            Scancode = C.SDL_SCANCODE_F13
    SCANCODE_F14            Scancode = C.SDL_SCANCODE_F14
    SCANCODE_F15            Scancode = C.SDL_SCANCODE_F15
    SCANCODE_F16            Scancode = C.SDL_SCANCODE_F16
    SCANCODE_F17            Scancode = C.SDL_SCANCODE_F17
    SCANCODE_F18            Scancode = C.SDL_SCANCODE_F18
    SCANCODE_F19            Scancode = C.SDL_SCANCODE_F19
    SCANCODE_F20            Scancode = C.SDL_SCANCODE_F20
    SCANCODE_F21            Scancode = C.SDL_SCANCODE_F21
    SCANCODE_F22            Scancode = C.SDL_SCANCODE_F22
    SCANCODE_F23            Scancode = C.SDL_SCANCODE_F23
    SCANCODE_F24            Scancode = C.SDL_SCANCODE_F24
    SCANCODE_EXECUTE        Scancode = C.SDL_SCANCODE_EXECUTE
    SCANCODE_HELP           Scancode = C.SDL_SCANCODE_HELP
    SCANCODE_MENU           Scancode = C.SDL_SCANCODE_MENU
    SCANCODE_SELECT         Scancode = C.SDL_SCANCODE_SELECT
    SCANCODE_STOP           Scancode = C.SDL_SCANCODE_STOP
    SCANCODE_AGAIN          Scancode = C.SDL_SCANCODE_AGAIN
    SCANCODE_UNDO           Scancode = C.SDL_SCANCODE_UNDO
    SCANCODE_CUT            Scancode = C.SDL_SCANCODE_CUT
    SCANCODE_COPY           Scancode = C.SDL_SCANCODE_COPY
    SCANCODE_PASTE          Scancode = C.SDL_SCANCODE_PASTE
    SCANCODE_FIND           Scancode = C.SDL_SCANCODE_FIND
    SCANCODE_MUTE           Scancode = C.SDL_SCANCODE_MUTE
    SCANCODE_VOLUMEUP       Scancode = C.SDL_SCANCODE_VOLUMEUP
    SCANCODE_VOLUMEDOWN     Scancode = C.SDL_SCANCODE_VOLUMEDOWN
    /*     SCANCODE_LOCKINGCAPSLOCK Scancode = C.SDL_SCANCODE_LOCKINGCAPSLOCK */
    /*     SCANCODE_LOCKINGNUMLOCK Scancode = C.SDL_SCANCODE_LOCKINGNUMLOCK */
    /*     SCANCODE_LOCKINGSCROLLLOCK Scancode = C.SDL_SCANCODE_LOCKINGSCROLLLOCK */
    SCANCODE_KP_COMMA       Scancode = C.SDL_SCANCODE_KP_COMMA
    SCANCODE_KP_EQUALSAS400 Scancode = C.SDL_SCANCODE_KP_EQUALSAS400

    SCANCODE_INTERNATIONAL1 Scancode = C.SDL_SCANCODE_INTERNATIONAL1
    SCANCODE_INTERNATIONAL2 Scancode = C.SDL_SCANCODE_INTERNATIONAL2
    SCANCODE_INTERNATIONAL3 Scancode = C.SDL_SCANCODE_INTERNATIONAL3
    SCANCODE_INTERNATIONAL4 Scancode = C.SDL_SCANCODE_INTERNATIONAL4
    SCANCODE_INTERNATIONAL5 Scancode = C.SDL_SCANCODE_INTERNATIONAL5
    SCANCODE_INTERNATIONAL6 Scancode = C.SDL_SCANCODE_INTERNATIONAL6
    SCANCODE_INTERNATIONAL7 Scancode = C.SDL_SCANCODE_INTERNATIONAL7
    SCANCODE_INTERNATIONAL8 Scancode = C.SDL_SCANCODE_INTERNATIONAL8
    SCANCODE_INTERNATIONAL9 Scancode = C.SDL_SCANCODE_INTERNATIONAL9
    SCANCODE_LANG1          Scancode = C.SDL_SCANCODE_LANG1
    SCANCODE_LANG2          Scancode = C.SDL_SCANCODE_LANG2
    SCANCODE_LANG3          Scancode = C.SDL_SCANCODE_LANG3
    SCANCODE_LANG4          Scancode = C.SDL_SCANCODE_LANG4
    SCANCODE_LANG5          Scancode = C.SDL_SCANCODE_LANG5
    SCANCODE_LANG6          Scancode = C.SDL_SCANCODE_LANG6
    SCANCODE_LANG7          Scancode = C.SDL_SCANCODE_LANG7
    SCANCODE_LANG8          Scancode = C.SDL_SCANCODE_LANG8
    SCANCODE_LANG9          Scancode = C.SDL_SCANCODE_LANG9

    SCANCODE_ALTERASE   Scancode = C.SDL_SCANCODE_ALTERASE
    SCANCODE_SYSREQ     Scancode = C.SDL_SCANCODE_SYSREQ
    SCANCODE_CANCEL     Scancode = C.SDL_SCANCODE_CANCEL
    SCANCODE_CLEAR      Scancode = C.SDL_SCANCODE_CLEAR
    SCANCODE_PRIOR      Scancode = C.SDL_SCANCODE_PRIOR
    SCANCODE_RETURN2    Scancode = C.SDL_SCANCODE_RETURN2
    SCANCODE_SEPARATOR  Scancode = C.SDL_SCANCODE_SEPARATOR
    SCANCODE_OUT        Scancode = C.SDL_SCANCODE_OUT
    SCANCODE_OPER       Scancode = C.SDL_SCANCODE_OPER
    SCANCODE_CLEARAGAIN Scancode = C.SDL_SCANCODE_CLEARAGAIN
    SCANCODE_CRSEL      Scancode = C.SDL_SCANCODE_CRSEL
    SCANCODE_EXSEL      Scancode = C.SDL_SCANCODE_EXSEL

    SCANCODE_KP_00              Scancode = C.SDL_SCANCODE_KP_00
    SCANCODE_KP_000             Scancode = C.SDL_SCANCODE_KP_000
    SCANCODE_THOUSANDSSEPARATOR Scancode = C.SDL_SCANCODE_THOUSANDSSEPARATOR
    SCANCODE_DECIMALSEPARATOR   Scancode = C.SDL_SCANCODE_DECIMALSEPARATOR
    SCANCODE_CURRENCYUNIT       Scancode = C.SDL_SCANCODE_CURRENCYUNIT
    SCANCODE_CURRENCYSUBUNIT    Scancode = C.SDL_SCANCODE_CURRENCYSUBUNIT
    SCANCODE_KP_LEFTPAREN       Scancode = C.SDL_SCANCODE_KP_LEFTPAREN
    SCANCODE_KP_RIGHTPAREN      Scancode = C.SDL_SCANCODE_KP_RIGHTPAREN
    SCANCODE_KP_LEFTBRACE       Scancode = C.SDL_SCANCODE_KP_LEFTBRACE
    SCANCODE_KP_RIGHTBRACE      Scancode = C.SDL_SCANCODE_KP_RIGHTBRACE
    SCANCODE_KP_TAB             Scancode = C.SDL_SCANCODE_KP_TAB
    SCANCODE_KP_BACKSPACE       Scancode = C.SDL_SCANCODE_KP_BACKSPACE
    SCANCODE_KP_A               Scancode = C.SDL_SCANCODE_KP_A
    SCANCODE_KP_B               Scancode = C.SDL_SCANCODE_KP_B
    SCANCODE_KP_C               Scancode = C.SDL_SCANCODE_KP_C
    SCANCODE_KP_D               Scancode = C.SDL_SCANCODE_KP_D
    SCANCODE_KP_E               Scancode = C.SDL_SCANCODE_KP_E
    SCANCODE_KP_F               Scancode = C.SDL_SCANCODE_KP_F
    SCANCODE_KP_XOR             Scancode = C.SDL_SCANCODE_KP_XOR
    SCANCODE_KP_POWER           Scancode = C.SDL_SCANCODE_KP_POWER
    SCANCODE_KP_PERCENT         Scancode = C.SDL_SCANCODE_KP_PERCENT
    SCANCODE_KP_LESS            Scancode = C.SDL_SCANCODE_KP_LESS
    SCANCODE_KP_GREATER         Scancode = C.SDL_SCANCODE_KP_GREATER
    SCANCODE_KP_AMPERSAND       Scancode = C.SDL_SCANCODE_KP_AMPERSAND
    SCANCODE_KP_DBLAMPERSAND    Scancode = C.SDL_SCANCODE_KP_DBLAMPERSAND
    SCANCODE_KP_VERTICALBAR     Scancode = C.SDL_SCANCODE_KP_VERTICALBAR
    SCANCODE_KP_DBLVERTICALBAR  Scancode = C.SDL_SCANCODE_KP_DBLVERTICALBAR
    SCANCODE_KP_COLON           Scancode = C.SDL_SCANCODE_KP_COLON
    SCANCODE_KP_HASH            Scancode = C.SDL_SCANCODE_KP_HASH
    SCANCODE_KP_SPACE           Scancode = C.SDL_SCANCODE_KP_SPACE
    SCANCODE_KP_AT              Scancode = C.SDL_SCANCODE_KP_AT
    SCANCODE_KP_EXCLAM          Scancode = C.SDL_SCANCODE_KP_EXCLAM
    SCANCODE_KP_MEMSTORE        Scancode = C.SDL_SCANCODE_KP_MEMSTORE
    SCANCODE_KP_MEMRECALL       Scancode = C.SDL_SCANCODE_KP_MEMRECALL
    SCANCODE_KP_MEMCLEAR        Scancode = C.SDL_SCANCODE_KP_MEMCLEAR
    SCANCODE_KP_MEMADD          Scancode = C.SDL_SCANCODE_KP_MEMADD
    SCANCODE_KP_MEMSUBTRACT     Scancode = C.SDL_SCANCODE_KP_MEMSUBTRACT
    SCANCODE_KP_MEMMULTIPLY     Scancode = C.SDL_SCANCODE_KP_MEMMULTIPLY
    SCANCODE_KP_MEMDIVIDE       Scancode = C.SDL_SCANCODE_KP_MEMDIVIDE
    SCANCODE_KP_PLUSMINUS       Scancode = C.SDL_SCANCODE_KP_PLUSMINUS
    SCANCODE_KP_CLEAR           Scancode = C.SDL_SCANCODE_KP_CLEAR
    SCANCODE_KP_CLEARENTRY      Scancode = C.SDL_SCANCODE_KP_CLEARENTRY
    SCANCODE_KP_BINARY          Scancode = C.SDL_SCANCODE_KP_BINARY
    SCANCODE_KP_OCTAL           Scancode = C.SDL_SCANCODE_KP_OCTAL
    SCANCODE_KP_DECIMAL         Scancode = C.SDL_SCANCODE_KP_DECIMAL
    SCANCODE_KP_HEXADECIMAL     Scancode = C.SDL_SCANCODE_KP_HEXADECIMAL

    SCANCODE_LCTRL  Scancode = C.SDL_SCANCODE_LCTRL
    SCANCODE_LSHIFT Scancode = C.SDL_SCANCODE_LSHIFT
    SCANCODE_LALT   Scancode = C.SDL_SCANCODE_LALT
    SCANCODE_LGUI   Scancode = C.SDL_SCANCODE_LGUI
    SCANCODE_RCTRL  Scancode = C.SDL_SCANCODE_RCTRL
    SCANCODE_RSHIFT Scancode = C.SDL_SCANCODE_RSHIFT
    SCANCODE_RALT   Scancode = C.SDL_SCANCODE_RALT
    SCANCODE_RGUI   Scancode = C.SDL_SCANCODE_RGUI

    SCANCODE_MODE Scancode = C.SDL_SCANCODE_MODE

    SCANCODE_AUDIONEXT    Scancode = C.SDL_SCANCODE_AUDIONEXT
    SCANCODE_AUDIOPREV    Scancode = C.SDL_SCANCODE_AUDIOPREV
    SCANCODE_AUDIOSTOP    Scancode = C.SDL_SCANCODE_AUDIOSTOP
    SCANCODE_AUDIOPLAY    Scancode = C.SDL_SCANCODE_AUDIOPLAY
    SCANCODE_AUDIOMUTE    Scancode = C.SDL_SCANCODE_AUDIOMUTE
    SCANCODE_MEDIASELECT  Scancode = C.SDL_SCANCODE_MEDIASELECT
    SCANCODE_WWW          Scancode = C.SDL_SCANCODE_WWW
    SCANCODE_MAIL         Scancode = C.SDL_SCANCODE_MAIL
    SCANCODE_CALCULATOR   Scancode = C.SDL_SCANCODE_CALCULATOR
    SCANCODE_COMPUTER     Scancode = C.SDL_SCANCODE_COMPUTER
    SCANCODE_AC_SEARCH    Scancode = C.SDL_SCANCODE_AC_SEARCH
    SCANCODE_AC_HOME      Scancode = C.SDL_SCANCODE_AC_HOME
    SCANCODE_AC_BACK      Scancode = C.SDL_SCANCODE_AC_BACK
    SCANCODE_AC_FORWARD   Scancode = C.SDL_SCANCODE_AC_FORWARD
    SCANCODE_AC_STOP      Scancode = C.SDL_SCANCODE_AC_STOP
    SCANCODE_AC_REFRESH   Scancode = C.SDL_SCANCODE_AC_REFRESH
    SCANCODE_AC_BOOKMARKS Scancode = C.SDL_SCANCODE_AC_BOOKMARKS

    SCANCODE_BRIGHTNESSDOWN Scancode = C.SDL_SCANCODE_BRIGHTNESSDOWN
    SCANCODE_BRIGHTNESSUP   Scancode = C.SDL_SCANCODE_BRIGHTNESSUP
    SCANCODE_DISPLAYSWITCH  Scancode = C.SDL_SCANCODE_DISPLAYSWITCH
    SCANCODE_KBDILLUMTOGGLE Scancode = C.SDL_SCANCODE_KBDILLUMTOGGLE
    SCANCODE_KBDILLUMDOWN   Scancode = C.SDL_SCANCODE_KBDILLUMDOWN
    SCANCODE_KBDILLUMUP     Scancode = C.SDL_SCANCODE_KBDILLUMUP
    SCANCODE_EJECT          Scancode = C.SDL_SCANCODE_EJECT
    SCANCODE_SLEEP          Scancode = C.SDL_SCANCODE_SLEEP

    NUM_SCANCODES Scancode = C.SDL_NUM_SCANCODES
)

func GetScancodeFromName Uses

func GetScancodeFromName(name string) Scancode

func (Scancode) GetKey Uses

func (s Scancode) GetKey() Keycode

func (Scancode) GetName Uses

func (s Scancode) GetName() string

type Surface Uses

type Surface struct {
    Flags  uint32
    Format *PixelFormat
    W, H   int32
    Pitch  int32
    Pixels uintptr

    Userdata uintptr

    Locked   int32
    LockData uintptr

    Refcount int32
    // contains filtered or unexported fields
}

func CreateRGBSurface Uses

func CreateRGBSurface(w, h, d int, rm, gm, bm, am uint32) (*Surface, error)

func CreateRGBSurfaceFrom Uses

func CreateRGBSurfaceFrom(pix uintptr, w, h, d, p int, rm, gm, bm, am uint32) (*Surface, error)

func LoadBMP Uses

func LoadBMP(file string) (*Surface, error)

func LoadBMP_RW Uses

func LoadBMP_RW(rw *RWops, free bool) (*Surface, error)

func (*Surface) Blit Uses

func (s *Surface) Blit(sr *Rect, dst *Surface, dr *Rect) error

func (*Surface) BlitScaled Uses

func (s *Surface) BlitScaled(sr *Rect, dst *Surface, dr *Rect) error

func (*Surface) Convert Uses

func (s *Surface) Convert(f *PixelFormat, flags uint32) (*Surface, error)

func (*Surface) ConvertFormat Uses

func (s *Surface) ConvertFormat(pf uint32, flags uint32) (*Surface, error)

func (*Surface) CreateColorCursor Uses

func (s *Surface) CreateColorCursor(hx, hy int) (*Cursor, error)

func (*Surface) CreateSoftwareRenderer Uses

func (s *Surface) CreateSoftwareRenderer() (*Renderer, error)

func (*Surface) FillRect Uses

func (s *Surface) FillRect(r *Rect, c uint32) error

func (*Surface) FillRects Uses

func (s *Surface) FillRects(r []Rect, c uint32) error

func (*Surface) Free Uses

func (s *Surface) Free()

func (*Surface) GetAlphaMod Uses

func (s *Surface) GetAlphaMod() (uint8, error)

func (*Surface) GetBlendMode Uses

func (s *Surface) GetBlendMode() (BlendMode, error)

func (*Surface) GetClipRect Uses

func (s *Surface) GetClipRect() *Rect

func (*Surface) GetColorKey Uses

func (s *Surface) GetColorKey() (uint32, error)

func (*Surface) GetColorMod Uses

func (s *Surface) GetColorMod() (r, g, b uint8, err error)

func (*Surface) Lock Uses

func (s *Surface) Lock() error

func (*Surface) LowerBlit Uses

func (s *Surface) LowerBlit(sr *Rect, dst *Surface, dr *Rect) error

func (*Surface) LowerBlitScaled Uses

func (s *Surface) LowerBlitScaled(sr *Rect, dst *Surface, dr *Rect) error

func (*Surface) MustLock Uses

func (s *Surface) MustLock() bool

func (*Surface) SaveBMP Uses

func (s *Surface) SaveBMP(file string) error

func (*Surface) SetAlphaMod Uses

func (s *Surface) SetAlphaMod(a uint8) error

func (*Surface) SetBlendMode Uses

func (s *Surface) SetBlendMode(m BlendMode) error

func (*Surface) SetClipRect Uses

func (s *Surface) SetClipRect(r *Rect) bool

func (*Surface) SetColorKey Uses

func (s *Surface) SetColorKey(flag bool, key uint32) error

func (*Surface) SetColorMod Uses

func (s *Surface) SetColorMod(r, g, b uint8) error

func (*Surface) SetPalette Uses

func (s *Surface) SetPalette(pal *Palette) error

func (*Surface) SetSurfaceRLE Uses

func (s *Surface) SetSurfaceRLE(flag bool) error

func (*Surface) SoftStretch Uses

func (s *Surface) SoftStretch(sr *Rect, dst *Surface, dr *Rect) error

func (*Surface) Unlock Uses

func (s *Surface) Unlock()

func (*Surface) UpperBlit Uses

func (s *Surface) UpperBlit(sr *Rect, dst *Surface, dr *Rect) error

func (*Surface) UpperBlitScaled Uses

func (s *Surface) UpperBlitScaled(sr *Rect, dst *Surface, dr *Rect) error

type SysWMEvent Uses

type SysWMEvent struct {
    Type      EventType
    Timestamp uint32
    Msg       *SysWMmsg
}

type SysWMmsg Uses

type SysWMmsg C.SDL_SysWMmsg

type TextEditingEvent Uses

type TextEditingEvent struct {
    Type      EventType
    Timestamp uint32
    WindowID  uint32
    Text      [TEXTEDITINGEVENT_TEXT_SIZE]byte
    Start     int32
    Length    int32
}

type TextInputEvent Uses

type TextInputEvent struct {
    Type      EventType
    Timestamp uint32
    WindowID  uint32
    Text      [TEXTINPUTEVENT_TEXT_SIZE]byte
}

type Texture Uses

type Texture struct {
    // contains filtered or unexported fields
}

func (*Texture) Destroy Uses

func (t *Texture) Destroy()

func (*Texture) GetAlphaMod Uses

func (t *Texture) GetAlphaMod() (uint8, error)

func (*Texture) GetBlendMode Uses

func (t *Texture) GetBlendMode() (BlendMode, error)

func (*Texture) GetColorMode Uses

func (t *Texture) GetColorMode() (r, g, b uint8, err error)

func (*Texture) Lock16 Uses

func (t *Texture) Lock16(r *Rect) (pix []uint16, pitch int, err error)

func (*Texture) Lock32 Uses

func (t *Texture) Lock32(r *Rect) (pix []uint32, pitch int, err error)

func (*Texture) Lock64 Uses

func (t *Texture) Lock64(r *Rect) (pix []uint64, pitch int, err error)

func (*Texture) Lock8 Uses

func (t *Texture) Lock8(r *Rect) (pix []uint8, pitch int, err error)

func (*Texture) Query Uses

func (t *Texture) Query() (uint32, TextureAccess, int, int, error)

func (*Texture) SetAlphaMod Uses

func (t *Texture) SetAlphaMod(a uint8) error

func (*Texture) SetBlendMode Uses

func (t *Texture) SetBlendMode(mode BlendMode) error

func (*Texture) SetColorMod Uses

func (t *Texture) SetColorMod(r, g, b uint8) error

func (*Texture) Unlock Uses

func (t *Texture) Unlock()

func (*Texture) Update16 Uses

func (t *Texture) Update16(r *Rect, pix []uint16, pitch int) error

func (*Texture) Update32 Uses

func (t *Texture) Update32(r *Rect, pix []uint32, pitch int) error

func (*Texture) Update64 Uses

func (t *Texture) Update64(r *Rect, pix []uint64, pitch int) error

func (*Texture) Update8 Uses

func (t *Texture) Update8(r *Rect, pix []uint8, pitch int) error

type TextureAccess Uses

type TextureAccess int
const (
    TEXTUREACCESS_STATIC    TextureAccess = C.SDL_TEXTUREACCESS_STATIC
    TEXTUREACCESS_STREAMING TextureAccess = C.SDL_TEXTUREACCESS_STREAMING
    TEXTUREACCESS_TARGET    TextureAccess = C.SDL_TEXTUREACCESS_TARGET
)

type TextureModulate Uses

type TextureModulate uint32
const (
    TEXTUREMODULATE_NONE  TextureModulate = C.SDL_TEXTUREMODULATE_NONE
    TEXTUREMODULATE_COLOR TextureModulate = C.SDL_TEXTUREMODULATE_COLOR
    TEXTUREMODULATE_ALPHA TextureModulate = C.SDL_TEXTUREMODULATE_ALPHA
)

type TouchFingerEvent Uses

type TouchFingerEvent struct {
    Type      EventType
    Timestamp uint32
    WindowID  uint32
    TouchId   TouchID
    FingerId  FingerID
    State     uint8

    X, Y     uint16
    Dx, Dy   int16
    Pressure uint16
    // contains filtered or unexported fields
}

type TouchID Uses

type TouchID C.SDL_TouchID

func (TouchID) RecordGesture Uses

func (id TouchID) RecordGesture() error

type UserEvent Uses

type UserEvent struct {
    Type      EventType
    Timestamp uint32
    WindowID  uint32
    Code      int32
    Data1     uintptr
    Data2     uintptr
}

type Version Uses

type Version struct {
    Major uint8
    Minor uint8
    Patch uint8
}

func GetVersion Uses

func GetVersion() *Version

func VERSION Uses

func VERSION() *Version

func (*Version) String Uses

func (v *Version) String() string

type Window Uses

type Window struct {
    // contains filtered or unexported fields
}

func CreateWindow Uses

func CreateWindow(title string, x, y, w, h int, flags WindowFlags) (*Window, error)

func CreateWindowAndRenderer Uses

func CreateWindowAndRenderer(w, h int, flags WindowFlags) (*Window, *Renderer, error)

func CreateWindowFrom Uses

func CreateWindowFrom(data uintptr) (*Window, error)

func GetKeyboardFocus Uses

func GetKeyboardFocus() *Window

func GetMouseFocus Uses

func GetMouseFocus() *Window

func GetWindowFromID Uses

func GetWindowFromID(id uint32) (*Window, error)

func (*Window) CreateRenderer Uses

func (w *Window) CreateRenderer(i int, flags RendererFlags) (*Renderer, error)

func (*Window) Destroy Uses

func (win *Window) Destroy()

func (*Window) GL_CreateContext Uses

func (win *Window) GL_CreateContext() (GLContext, error)

func (*Window) GL_MakeCurrent Uses

func (win *Window) GL_MakeCurrent(ctx GLContext) error

func (*Window) GL_Swap Uses

func (win *Window) GL_Swap()

func (*Window) GetBrightness Uses

func (win *Window) GetBrightness() float32

func (*Window) GetData Uses

func (win *Window) GetData(name string) interface{}

func (*Window) GetDisplayIndex Uses

func (win *Window) GetDisplayIndex() (int, error)

func (*Window) GetDisplayMode Uses

func (win *Window) GetDisplayMode() (*DisplayMode, error)

func (*Window) GetFlags Uses

func (win *Window) GetFlags() WindowFlags

func (*Window) GetGammaRamp Uses

func (win *Window) GetGammaRamp() (r, g, b uint16, err error)

func (*Window) GetGrab Uses

func (win *Window) GetGrab() bool

func (*Window) GetID Uses

func (win *Window) GetID() uint32

func (*Window) GetPixelFormat Uses

func (win *Window) GetPixelFormat() uint32

func (*Window) GetPosition Uses

func (win *Window) GetPosition() (x, y int)

func (*Window) GetRenderer Uses

func (w *Window) GetRenderer() (*Renderer, error)

func (*Window) GetSize Uses

func (win *Window) GetSize() (w, h int)

func (*Window) GetSurface Uses

func (win *Window) GetSurface() (*Surface, error)

func (*Window) GetTitle Uses

func (win *Window) GetTitle() string

func (*Window) Hide Uses

func (win *Window) Hide()

func (*Window) Maximize Uses

func (win *Window) Maximize()

func (*Window) Minimize Uses

func (win *Window) Minimize()

func (*Window) Raise Uses

func (win *Window) Raise()

func (*Window) Restore Uses

func (win *Window) Restore()

func (*Window) SetBrightness Uses

func (win *Window) SetBrightness(b float32) error

func (*Window) SetData Uses

func (win *Window) SetData(name string, data interface{}) interface{}

func (*Window) SetDisplayMode Uses

func (win *Window) SetDisplayMode(dm *DisplayMode) error

func (*Window) SetFullscreen Uses

func (win *Window) SetFullscreen(flags WindowFlags) error

func (*Window) SetGammaRamp Uses

func (win *Window) SetGammaRamp(r, g, b uint16) error

func (*Window) SetGrab Uses

func (win *Window) SetGrab(grab bool)

func (*Window) SetIcon Uses

func (win *Window) SetIcon(icon *Surface)

func (*Window) SetPosition Uses

func (win *Window) SetPosition(x, y int)

func (*Window) SetSize Uses

func (win *Window) SetSize(w, h int)

func (*Window) SetTitle Uses

func (win *Window) SetTitle(title string)

func (*Window) Show Uses

func (win *Window) Show()

func (*Window) UpdateSurface Uses

func (win *Window) UpdateSurface() error

func (*Window) UpdateSurfaceRects Uses

func (win *Window) UpdateSurfaceRects(rects []Rect) error

func (*Window) WarpMouse Uses

func (w *Window) WarpMouse(x, y int)

type WindowEvent Uses

type WindowEvent struct {
    Type      EventType
    Timestamp uint32
    WindowID  uint32
    Event     uint8

    Data1, Data2 int32
    // contains filtered or unexported fields
}

type WindowEventID Uses

type WindowEventID uint32
const (
    WINDOWEVENT_NONE         WindowEventID = C.SDL_WINDOWEVENT_NONE
    WINDOWEVENT_SHOWN        WindowEventID = C.SDL_WINDOWEVENT_SHOWN
    WINDOWEVENT_HIDDEN       WindowEventID = C.SDL_WINDOWEVENT_HIDDEN
    WINDOWEVENT_EXPOSED      WindowEventID = C.SDL_WINDOWEVENT_EXPOSED
    WINDOWEVENT_MOVED        WindowEventID = C.SDL_WINDOWEVENT_MOVED
    WINDOWEVENT_RESIZED      WindowEventID = C.SDL_WINDOWEVENT_RESIZED
    WINDOWEVENT_SIZE_CHANGED WindowEventID = C.SDL_WINDOWEVENT_SIZE_CHANGED
    WINDOWEVENT_MINIMIZED    WindowEventID = C.SDL_WINDOWEVENT_MINIMIZED
    WINDOWEVENT_MAXIMIZED    WindowEventID = C.SDL_WINDOWEVENT_MAXIMIZED
    WINDOWEVENT_RESTORED     WindowEventID = C.SDL_WINDOWEVENT_RESTORED
    WINDOWEVENT_ENTER        WindowEventID = C.SDL_WINDOWEVENT_ENTER
    WINDOWEVENT_LEAVE        WindowEventID = C.SDL_WINDOWEVENT_LEAVE
    WINDOWEVENT_FOCUS_GAINED WindowEventID = C.SDL_WINDOWEVENT_FOCUS_GAINED
    WINDOWEVENT_FOCUS_LOST   WindowEventID = C.SDL_WINDOWEVENT_FOCUS_LOST
    WINDOWEVENT_CLOSE        WindowEventID = C.SDL_WINDOWEVENT_CLOSE
)

type WindowFlags Uses

type WindowFlags uint32
const (
    WINDOW_FULLSCREEN    WindowFlags = C.SDL_WINDOW_FULLSCREEN
    WINDOW_OPENGL        WindowFlags = C.SDL_WINDOW_OPENGL
    WINDOW_SHOWN         WindowFlags = C.SDL_WINDOW_SHOWN
    WINDOW_HIDDEN        WindowFlags = C.SDL_WINDOW_HIDDEN
    WINDOW_BORDERLESS    WindowFlags = C.SDL_WINDOW_BORDERLESS
    WINDOW_RESIZABLE     WindowFlags = C.SDL_WINDOW_RESIZABLE
    WINDOW_MINIMIZED     WindowFlags = C.SDL_WINDOW_MINIMIZED
    WINDOW_MAXIMIZED     WindowFlags = C.SDL_WINDOW_MAXIMIZED
    WINDOW_INPUT_GRABBED WindowFlags = C.SDL_WINDOW_INPUT_GRABBED
    WINDOW_INPUT_FOCUS   WindowFlags = C.SDL_WINDOW_INPUT_FOCUS
    WINDOW_MOUSE_FOCUS   WindowFlags = C.SDL_WINDOW_MOUSE_FOCUS
    WINDOW_FOREIGN       WindowFlags = C.SDL_WINDOW_FOREIGN
)

Directories

PathSynopsis
img
test
ttf

Package sdl imports 11 packages (graph) and is imported by 6 packages. Updated 2016-08-01. Refresh now. Tools for package owners.