Versions in this module Expand all Collapse all v0 v0.2.1 Dec 3, 2026 v0.2.0 Dec 3, 2026 v0.1.2 Dec 3, 2026 Changes in this version + const SDL3_EVENT_APP_DID_BACKGROUND + const SDL3_EVENT_APP_DID_FOREGROUND + const SDL3_EVENT_APP_LOW_MEMORY + const SDL3_EVENT_APP_TERMINATING + const SDL3_EVENT_APP_WILL_BACKGROUND + const SDL3_EVENT_APP_WILL_FOREGROUND + const SDL3_EVENT_DISPLAY_ORIENTATION + var SDL3_AddEventWatch func(filter uintptr, userdata uintptr) bool + var SDL3_SetEventFilter func(filter uintptr, userdata uintptr) + func AppEventWatchAvailable() bool + func AppEventWatchInstalled() bool + func SetAppEventHandler(fn func(Event)) type Event + Orientation int type EventType + const EventAppLowMemory + const EventAppTerminating + const EventOrientationChanged v0.1.1 Nov 28, 2026 Changes in this version + const SDL3_PIXELFORMAT_ARGB8888 + var SDL3_CreateSurfaceFrom func(w, h int32, format uint32, pixels unsafe.Pointer, pitch int32) unsafe.Pointer + var SDL3_DestroySurface func(surface unsafe.Pointer) + var SDL3_SetWindowIcon func(win unsafe.Pointer, icon unsafe.Pointer) bool type Window + func (w *Window) SetIcon(pixels []uint32, width, height int) bool v0.1.0 Nov 26, 2026 Changes in this version + const ButtonLeft + const ButtonMiddle + const ButtonRight + const EGL_ALPHA_SIZE + const EGL_BLUE_SIZE + const EGL_CONTEXT_CLIENT_VERSION + const EGL_DEFAULT_DISPLAY + const EGL_DEPTH_SIZE + const EGL_GREEN_SIZE + const EGL_NONE + const EGL_OPENGL_ES2_BIT + const EGL_OPENGL_ES_API + const EGL_PLATFORM_X11_KHR + const EGL_PLATFORM_X11_SCREEN_EXT + const EGL_RED_SIZE + const EGL_RENDERABLE_TYPE + const EGL_SUCCESS + const EGL_SURFACE_TYPE + const EGL_WINDOW_BIT + const EdgeBot + const EdgeLeft + const EdgeNone + const EdgeRight + const EdgeTop + const GL_ALPHA + const GL_ALWAYS + const GL_ARRAY_BUFFER + const GL_BLEND + const GL_CLAMP_TO_EDGE + const GL_COLOR_ATTACHMENT0 + const GL_COLOR_BUFFER_BIT + const GL_DEPTH_BUFFER_BIT + const GL_DEPTH_TEST + const GL_DST_COLOR + const GL_ELEMENT_ARRAY_BUFFER + const GL_FLOAT + const GL_FRAGMENT_SHADER + const GL_FRAMEBUFFER + const GL_FRAMEBUFFER_COMPLETE + const GL_INCR + const GL_KEEP + const GL_LEQUAL + const GL_LINEAR + const GL_LINEAR_MIPMAP_LINEAR + const GL_NOTEQUAL + const GL_ONE + const GL_ONE_MINUS_SRC_ALPHA + const GL_ONE_MINUS_SRC_COLOR + const GL_QUERY_RESULT + const GL_QUERY_RESULT_AVAILABLE + const GL_RGBA + const GL_SCISSOR_TEST + const GL_SRC_ALPHA + const GL_SRC_COLOR + const GL_STATIC_DRAW + const GL_STENCIL_BUFFER_BIT + const GL_STENCIL_TEST + const GL_STREAM_DRAW + const GL_TEXTURE_2D + const GL_TEXTURE_MAG_FILTER + const GL_TEXTURE_MIN_FILTER + const GL_TEXTURE_WRAP_S + const GL_TEXTURE_WRAP_T + const GL_TIME_ELAPSED + const GL_TRIANGLES + const GL_UNSIGNED_BYTE + const GL_UNSIGNED_INT + const GL_UNSIGNED_SHORT + const GL_VERTEX_SHADER + const GL_ZERO + const KeyApostrophe + const KeyBackslash + const KeyCloseBracket + const KeyComma + const KeyDelete + const KeyEnd + const KeyEqual + const KeyF1 + const KeyF10 + const KeyF11 + const KeyF12 + const KeyF2 + const KeyF3 + const KeyF4 + const KeyF5 + const KeyF6 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyGrave + const KeyHome + const KeyInsert + const KeyMinus + const KeyOpenBracket + const KeyPageDown + const KeyPageUp + const KeyPause + const KeyPeriod + const KeySemicolon + const KeySlash + const Keypad0 + const Keypad1 + const Keypad2 + const Keypad3 + const Keypad4 + const Keypad5 + const Keypad6 + const Keypad7 + const Keypad8 + const Keypad9 + const KeypadAsterisk + const KeypadComma + const KeypadDot + const KeypadEnter + const KeypadEquals + const KeypadMinus + const KeypadPercent + const KeypadPlus + const KeypadSlash + const MaxGradientStops + const ModAlt + const ModCaps + const ModCtrl + const ModMeta + const ModNone + const ModNum + const ModScroll + const ModShift + const SDL3_EVENT_DROP_BEGIN + const SDL3_EVENT_DROP_COMPLETE + const SDL3_EVENT_DROP_FILE + const SDL3_EVENT_DROP_POSITION + const SDL3_EVENT_DROP_TEXT + const SDL3_EVENT_FINGER_CANCELED + const SDL3_EVENT_FINGER_DOWN + const SDL3_EVENT_FINGER_MOTION + const SDL3_EVENT_FINGER_UP + const SDL3_EVENT_JOYSTICK_AXIS + const SDL3_EVENT_JOYSTICK_BALL + const SDL3_EVENT_JOYSTICK_BUTTON_DOWN + const SDL3_EVENT_JOYSTICK_BUTTON_UP + const SDL3_EVENT_JOYSTICK_HAT + const SDL3_EVENT_KEYBOARD_ADDED + const SDL3_EVENT_KEYBOARD_REMOVED + const SDL3_EVENT_KEYMAP_CHANGED + const SDL3_EVENT_KEY_DOWN + const SDL3_EVENT_KEY_UP + const SDL3_EVENT_MOUSE_ADDED + const SDL3_EVENT_MOUSE_BUTTON_DOWN + const SDL3_EVENT_MOUSE_BUTTON_UP + const SDL3_EVENT_MOUSE_MOTION + const SDL3_EVENT_MOUSE_REMOVED + const SDL3_EVENT_MOUSE_WHEEL + const SDL3_EVENT_QUIT + const SDL3_EVENT_SCREEN_KEYBOARD_HIDDEN + const SDL3_EVENT_SCREEN_KEYBOARD_SHOWN + const SDL3_EVENT_SENSOR_UPDATE + const SDL3_EVENT_TEXT_EDITING + const SDL3_EVENT_TEXT_EDITING_CANDIDATES + const SDL3_EVENT_TEXT_INPUT + const SDL3_EVENT_WINDOW_CLOSE_REQUESTED + const SDL3_EVENT_WINDOW_DESTROYED + const SDL3_EVENT_WINDOW_DISPLAY_CHANGED + const SDL3_EVENT_WINDOW_DISPLAY_SCALE_CHANGED + const SDL3_EVENT_WINDOW_ENTER_FULLSCREEN + const SDL3_EVENT_WINDOW_EXPOSED + const SDL3_EVENT_WINDOW_FOCUS_GAINED + const SDL3_EVENT_WINDOW_FOCUS_LOST + const SDL3_EVENT_WINDOW_HDR_STATE_CHANGED + const SDL3_EVENT_WINDOW_HIDDEN + const SDL3_EVENT_WINDOW_HIT_TEST + const SDL3_EVENT_WINDOW_ICCPROF_CHANGED + const SDL3_EVENT_WINDOW_LEAVE_FULLSCREEN + const SDL3_EVENT_WINDOW_MAXIMIZED + const SDL3_EVENT_WINDOW_METAL_VIEW_RESIZED + const SDL3_EVENT_WINDOW_MINIMIZED + const SDL3_EVENT_WINDOW_MOUSE_ENTER + const SDL3_EVENT_WINDOW_MOUSE_LEAVE + const SDL3_EVENT_WINDOW_MOVED + const SDL3_EVENT_WINDOW_OCCLUDED + const SDL3_EVENT_WINDOW_PIXEL_SIZE_CHANGED + const SDL3_EVENT_WINDOW_RESIZED + const SDL3_EVENT_WINDOW_RESTORED + const SDL3_EVENT_WINDOW_SAFE_AREA_CHANGED + const SDL3_EVENT_WINDOW_SHOWN + const SDL3_GL_CONTEXT_MAJOR_VERSION + const SDL3_GL_CONTEXT_MINOR_VERSION + const SDL3_GL_CONTEXT_PROFILE_ES + const SDL3_GL_CONTEXT_PROFILE_MASK + const SDL3_GL_MULTISAMPLEBUFFERS + const SDL3_GL_MULTISAMPLESAMPLES + const SDL3_GL_SHARE_WITH_CURRENT_CONTEXT + const SDL3_HINT_ANDROID_TRAP_BACK_BUTTON + const SDL3_HINT_VIDEO_FORCE_EGL + const SDL3_INIT_VIDEO + const SDL3_KMOD_CAPS + const SDL3_KMOD_LALT + const SDL3_KMOD_LCTRL + const SDL3_KMOD_LGUI + const SDL3_KMOD_LSHIFT + const SDL3_KMOD_NUM + const SDL3_KMOD_RALT + const SDL3_KMOD_RCTRL + const SDL3_KMOD_RGUI + const SDL3_KMOD_RSHIFT + const SDL3_KMOD_SCROLL + const SDL3_SCANCODE_0 + const SDL3_SCANCODE_1 + const SDL3_SCANCODE_2 + const SDL3_SCANCODE_3 + const SDL3_SCANCODE_4 + const SDL3_SCANCODE_5 + const SDL3_SCANCODE_6 + const SDL3_SCANCODE_7 + const SDL3_SCANCODE_8 + const SDL3_SCANCODE_9 + const SDL3_SCANCODE_A + const SDL3_SCANCODE_APOSTROPHE + const SDL3_SCANCODE_B + const SDL3_SCANCODE_BACKSLASH + const SDL3_SCANCODE_BACKSPACE + const SDL3_SCANCODE_C + const SDL3_SCANCODE_COMMA + const SDL3_SCANCODE_D + const SDL3_SCANCODE_DELETE + const SDL3_SCANCODE_DOWN + const SDL3_SCANCODE_E + const SDL3_SCANCODE_END + const SDL3_SCANCODE_EQUAL + const SDL3_SCANCODE_ESCAPE + const SDL3_SCANCODE_F + const SDL3_SCANCODE_F1 + const SDL3_SCANCODE_F10 + const SDL3_SCANCODE_F11 + const SDL3_SCANCODE_F12 + const SDL3_SCANCODE_F2 + const SDL3_SCANCODE_F3 + const SDL3_SCANCODE_F4 + const SDL3_SCANCODE_F5 + const SDL3_SCANCODE_F6 + const SDL3_SCANCODE_F7 + const SDL3_SCANCODE_F8 + const SDL3_SCANCODE_F9 + const SDL3_SCANCODE_G + const SDL3_SCANCODE_GRAVE + const SDL3_SCANCODE_H + const SDL3_SCANCODE_HOME + const SDL3_SCANCODE_I + const SDL3_SCANCODE_INSERT + const SDL3_SCANCODE_J + const SDL3_SCANCODE_K + const SDL3_SCANCODE_KP_0 + const SDL3_SCANCODE_KP_1 + const SDL3_SCANCODE_KP_2 + const SDL3_SCANCODE_KP_3 + const SDL3_SCANCODE_KP_4 + const SDL3_SCANCODE_KP_5 + const SDL3_SCANCODE_KP_6 + const SDL3_SCANCODE_KP_7 + const SDL3_SCANCODE_KP_8 + const SDL3_SCANCODE_KP_9 + const SDL3_SCANCODE_KP_COMMA + const SDL3_SCANCODE_KP_DIVIDE + const SDL3_SCANCODE_KP_ENTER + const SDL3_SCANCODE_KP_EQUALS + const SDL3_SCANCODE_KP_MINUS + const SDL3_SCANCODE_KP_MULTIPLY + const SDL3_SCANCODE_KP_PERIOD + const SDL3_SCANCODE_KP_PLUS + const SDL3_SCANCODE_L + const SDL3_SCANCODE_LALT + const SDL3_SCANCODE_LCTRL + const SDL3_SCANCODE_LEFT + const SDL3_SCANCODE_LEFTBRACKET + const SDL3_SCANCODE_LGUI + const SDL3_SCANCODE_LSHIFT + const SDL3_SCANCODE_M + const SDL3_SCANCODE_MINUS + const SDL3_SCANCODE_N + const SDL3_SCANCODE_O + const SDL3_SCANCODE_P + const SDL3_SCANCODE_PAGEDOWN + const SDL3_SCANCODE_PAGEUP + const SDL3_SCANCODE_PAUSE + const SDL3_SCANCODE_PERIOD + const SDL3_SCANCODE_Q + const SDL3_SCANCODE_R + const SDL3_SCANCODE_RALT + const SDL3_SCANCODE_RCTRL + const SDL3_SCANCODE_RETURN + const SDL3_SCANCODE_RGUI + const SDL3_SCANCODE_RIGHT + const SDL3_SCANCODE_RIGHTBRACKET + const SDL3_SCANCODE_RSHIFT + const SDL3_SCANCODE_S + const SDL3_SCANCODE_SEMICOLON + const SDL3_SCANCODE_SLASH + const SDL3_SCANCODE_SPACE + const SDL3_SCANCODE_T + const SDL3_SCANCODE_TAB + const SDL3_SCANCODE_U + const SDL3_SCANCODE_UP + const SDL3_SCANCODE_V + const SDL3_SCANCODE_W + const SDL3_SCANCODE_X + const SDL3_SCANCODE_Y + const SDL3_SCANCODE_Z + const SDL3_WINDOW_BORDERLESS + const SDL3_WINDOW_FULLSCREEN + const SDL3_WINDOW_HIDDEN + const SDL3_WINDOW_MAXIMIZED + const SDL3_WINDOW_OCCLUDED + const SDL3_WINDOW_OCCLUDED_MULTI + const SDL3_WINDOW_OPENGL + const SDL3_WINDOW_RESIZABLE + const SDL3_WINDOW_TRANSPARENT + const SDL_GL_CONTEXT_MAJOR_VERSION + const SDL_GL_CONTEXT_MINOR_VERSION + const SDL_GL_CONTEXT_PROFILE_ES + const SDL_GL_CONTEXT_PROFILE_MASK + const SDL_HITTEST_DRAGGABLE + const SDL_HITTEST_NORMAL + const SDL_HITTEST_RESIZE_LEFT + const SDL_HITTEST_RESIZE_TOPLEFT + const SDL_INIT_VIDEO + const SDL_KEYDOWN + const SDL_KEYUP + const SDL_MOUSEBUTTONDOWN + const SDL_MOUSEBUTTONUP + const SDL_MOUSEMOTION + const SDL_QUIT + const SDL_WINDOWEVENT + const SDL_WINDOW_OPENGL + const SDL_WINDOW_SHOWN + var SDL3_CreateSystemCursor func(cursorType int32) unsafe.Pointer + var SDL3_CreateWindow func(title uintptr, w int32, h int32, flags uint64) unsafe.Pointer + var SDL3_DestroyWindow func(unsafe.Pointer) + var SDL3_GL_CreateContext func(unsafe.Pointer) unsafe.Pointer + var SDL3_GL_GetProcAddress func(name uintptr) uintptr + var SDL3_GL_MakeCurrent func(unsafe.Pointer, unsafe.Pointer) + var SDL3_GL_MakeCurrentMulti func(win unsafe.Pointer, ctx unsafe.Pointer) bool + var SDL3_GL_SetAttribute func(uint32, int32) + var SDL3_GL_SetAttributeMulti func(attr uint32, value int32) + var SDL3_GL_SetSwapIntervalMulti func(interval int) bool + var SDL3_GL_SwapWindow func(unsafe.Pointer) + var SDL3_GL_SwapWindowMulti func(win unsafe.Pointer) bool + var SDL3_GetClipboardText func() uintptr + var SDL3_GetCurrentVideoDriver func() uintptr + var SDL3_GetErrorMulti func() uintptr + var SDL3_GetGlobalMouseState func(x, y *float32) uint32 + var SDL3_GetModState func() uint16 + var SDL3_GetMouseState func(x, y *float32) uint32 + var SDL3_GetPointerProperty func(props uint32, name uintptr, def uintptr) uintptr + var SDL3_GetTextInputArea func(win unsafe.Pointer, rect unsafe.Pointer, cursor *int32) bool + var SDL3_GetWindowFlagsMulti func(win unsafe.Pointer) uint64 + var SDL3_GetWindowID func(win unsafe.Pointer) uint32 + var SDL3_GetWindowPositionMulti func(win unsafe.Pointer, x, y *int32) + var SDL3_GetWindowProperties func(win unsafe.Pointer) uint32 + var SDL3_GetWindowSafeArea func(win unsafe.Pointer, rect unsafe.Pointer) bool + var SDL3_GetWindowSizeInPixelsMulti func(win unsafe.Pointer, w, h *int32) + var SDL3_GetWindowSizeMulti func(win unsafe.Pointer, w, h *int32) + var SDL3_Init func(uint64) int32 + var SDL3_MaximizeWindow func(win unsafe.Pointer) bool + var SDL3_MinimizeWindow func(win unsafe.Pointer) bool + var SDL3_PollEvent func(event unsafe.Pointer) bool + var SDL3_PushEvent func(ev uintptr) int32 + var SDL3_Quit func() + var SDL3_RaiseWindowMulti func(win unsafe.Pointer) + var SDL3_RestoreWindow func(win unsafe.Pointer) bool + var SDL3_SetClipboardText func(text uintptr) int32 + var SDL3_SetCursor func(cursor unsafe.Pointer) + var SDL3_SetHintMulti func(name, value uintptr) bool + var SDL3_SetTextInputArea func(win unsafe.Pointer, rect unsafe.Pointer, cursor int32) bool + var SDL3_SetWindowFullscreenMulti func(win unsafe.Pointer, fullscreen bool) bool + var SDL3_SetWindowHitTest func(win unsafe.Pointer, callback uintptr, data unsafe.Pointer) bool + var SDL3_SetWindowPositionMulti func(win unsafe.Pointer, x, y int32) + var SDL3_SetWindowSizeMulti func(win unsafe.Pointer, w, h int32) + var SDL3_SetWindowTitleMulti func(win unsafe.Pointer, title uintptr) + var SDL3_ShowWindowFunc func(unsafe.Pointer) + var SDL3_ShowWindowMulti func(win unsafe.Pointer) + var SDL3_StartTextInput func(win unsafe.Pointer) + var SDL3_StopTextInput func(win unsafe.Pointer) + var SDL3_SyncWindow func(win unsafe.Pointer) bool + var SDL3_free func(ptr uintptr) + var SDL_CreateWindow func(uintptr, int32, int32, int32, int32, uint32) unsafe.Pointer + var SDL_DestroyWindow func(unsafe.Pointer) + var SDL_GL_CreateContext func(unsafe.Pointer) unsafe.Pointer + var SDL_GL_GetProcAddress func(uintptr) uintptr + var SDL_GL_MakeCurrent func(unsafe.Pointer, unsafe.Pointer) + var SDL_GL_SetAttribute func(uint32, int32) + var SDL_GL_SwapWindow func(unsafe.Pointer) + var SDL_Init func(uint32) int32 + var SDL_PollEvent func(unsafe.Pointer) int32 + var SDL_Quit func() + var SwapEGL func() + func AcquireRenderer() + func AntialiasPreference() bool + func BeginBlur() + func Blur(radius float32) + func CapHeightPx(f *truetype.Font, size float32) float32 + func ClearScissor() + func ClearScreen(col uint32) + func CreateOffscreenFBO(w, h int32) (uint32, uint32) + func CreateSDLWindowMulti(title string, width, height int32) (*sdlWin, error) + func CurClipQuad() (float32, float32, float32, float32) + func DefaultReadFBO() int32 + func DeleteOffscreenFBO(fbo, tex uint32) + func DescentPx(f *truetype.Font, size float32) float32 + func DestroySDLWin(h *sdlWin) + func DrawCircleGL(cx, cy, radius float32, color Color) + func DrawLineGL(x1, y1, x2, y2 float32, color Color, strokeW float32) + func DrawOvalGL(x, y, w, h float32, color Color) + func DrawRectGL(x, y, w, h float32, color Color, angle float32) + func DrawTexturedQuadsBatch(verts []float32, texID uint32, color Color, isImage bool) + func DrawTrianglesBatch(verts []float32, color Color) + func DumpRenderState(where string) + func EdgeZone(x, y, w, h float32) uint32 + func EffectiveSize(w *Window) (int32, int32) + func EmbeddedRobotoFace(style string) *truetype.Font + func EndBlur(radius float32) + func EraseRoundedCorners(x, y, w, h, radius float32, topOnly bool) + func ErrOffscreenFailed() error + func FlushBatches() + func FontMetricsRatios(f *truetype.Font) fontMetricsRatios + func GLClearDepth() + func GLDepthTest(enabled bool) + func GLDepthWrite(enabled bool) + func GLInfo() (vendor, renderer, version string) + func GLXDrawableSize() (int32, int32, bool) + func Gaussian(x, sigma float32) float32 + func GaussianWeights(radius int, sigma float32) []float32 + func GetClipboardText() string + func GetError() uint32 + func GetGL3ProcAddress(name string) uintptr + func GetGLProcAddress(name string) uintptr + func GlobalAlphaPreference() float32 + func GlobalMousePos() (float32, float32) + func HasEGLSupport() bool + func HasGLSupport() bool + func Init() error + func InitEGLForAndroid(window unsafe.Pointer, width, height int32) error + func InitRenderer() error + func InitWindowError() error + func InvalidateGLStateCache() + func KnownCursorNames() []string + func LoadGLESFromLib(lib uintptr) + func LoadSystemFont(path string) (*truetype.Font, error) + func LoadTTFFromBytes(data []byte) (*truetype.Font, error) + func LoadTTFFromFile(path string) (*truetype.Font, error) + func MakeCurrentSDLWin(h *sdlWin) bool + func MaxTextureUnits() int + func MaxTexturesPerBatch() int + func MaxVertexAttribs() int + func MaximizeSDLWin(h *sdlWin) + func MinimizeSDLWin(h *sdlWin) + func MouseLeftDown() bool + func MoveResizeSDLWin(w *Window, x, y, width, height int32) bool + func MoveSDLWinBy(w *Window, x, y int32) + func NoteResizeAck(w *Window, width, height int32) + func PendingBatchVerts() int + func PrimarySDLWinHandle() *sdlWin + func PrimarySDLWindowPointer() unsafe.Pointer + func ProbeFullClear(w, h int32) (top, bottom uint32, ok bool) + func ProcessEvents(win *Window) + func ProcessEventsAndDispatch(win *Window) + func ProcessSDL3Events(win *Window) + func ProcessSDLEvents(win *Window) + func PumpAll() + func PumpEvents(fallback *Window) + func QuerySDLWinSize(h *sdlWin) (int32, int32) + func RaiseSDLWindow(h *sdlWin) + func ReadOffscreenPixels(fbo uint32, w, h int32) []uint32 + func ReadScreenPixels(w, h int32) []uint32 + func ReleaseRenderer() + func RenderOffscreen(w, h int32, renderFn func()) []uint32 + func ResetClipState() + func ResetGLCache() + func ResetSizeProbe() + func ResizeSDLWin(h *sdlWin, w, hgt int32) + func ResizeWindow(w *Window, width, height int32) + func RestoreSDLWin(h *sdlWin) + func RunHeadlessDemo(win *Window) + func SDFBatchRect(x, y, w, h, radius float32, color Color, style int32, strokeW, angle float32) + func SDFBatchTexturedQuads(verts []float32, texID uint32, isImage bool) + func SDFBatchTriangles(verts []float32) + func SDL3PushEvent(buf []byte) + func SDL3_ShowWindow(window unsafe.Pointer) + func SetAntialiasPreference(on bool) + func SetBlendModeCached(mode int32) + func SetClipDiscardEnabled(on bool) + func SetClipPlanes(planes []ClipPlane) + func SetClipboardText(text string) + func SetCurrentGradient(g Gradient) + func SetCursorByName(name string) + func SetFullscreen(w *Window, fullscreen bool) + func SetFullscreenSDLWin(h *sdlWin, fullscreen bool) + func SetGlobalAlphaPreference(a float32) + func SetRendererFactory(f func() Renderer) + func SetSDLWinHitTestHandler(h *sdlWin, fn frameHitFn) + func SetSDLWinTitle(h *sdlWin, title string) + func SetScissor(x, y, w, h int32) + func SetScreenSize(w, h float32) + func SetSensorHandler(fn func(sensorID uint32, values [6]float32)) + func SetSwapInterval0() + func SetSystemFont(face *truetype.Font) + func SetWindowHitHandler(w *Window, fn func(x, y int32) uint32) + func SetWindowSizeSDLWin(w *Window, width, height int32) bool + func Shutdown() + func SizeProbe(w *Window) + func SwapEGLBuffers() + func SwapSDL3Window() + func SwapSDLWin(h *sdlWin) + func SwapSDLWindow() + func SwapWindow() + func SystemTTF() *truetype.Font + func TerminateEGL() + func ToggleMaximizeSDLWin(h *sdlWin) + func UseProgramCached(program uint32) + func VideoDriver() string + func WindowMaximized(w *Window) bool + func WindowPos(w *Window) (int32, int32) + func WindowSize(w *Window) (int32, int32) + type BlendMode int + const BlendModeColor + const BlendModeColorBurn + const BlendModeColorDodge + const BlendModeDarken + const BlendModeDifference + const BlendModeExclusion + const BlendModeHardLight + const BlendModeHue + const BlendModeLighten + const BlendModeLuminosity + const BlendModeMultiply + const BlendModeNormal + const BlendModeOverlay + const BlendModeSaturation + const BlendModeScreen + const BlendModeSoftLight + type BlurRenderer struct + type Canvas struct + func NewCanvas(width, height float32) *Canvas + func (c *Canvas) Clear(col uint32) + func (c *Canvas) ClearWithViewport(col uint32, x, y, w, h int32) + func (c *Canvas) ClipBounds() Rect + func (c *Canvas) ClipDepth() int + func (c *Canvas) ClipPath(path *Path) bool + func (c *Canvas) ClipRect(r Rect) + func (c *Canvas) DrawArc(x, y, w, h, startAngle, sweepAngle float32, p *Paint) + func (c *Canvas) DrawCircle(cx, cy, r float32, p *Paint) + func (c *Canvas) DrawCirclePath(cx, cy, r float32, p *Paint) + func (c *Canvas) DrawColor(col uint32, mode BlendMode) + func (c *Canvas) DrawImage(img *Image, x, y float32, p *Paint) + func (c *Canvas) DrawImageInRect(img *Image, rect Rect, p *Paint) + func (c *Canvas) DrawImageNine(img *Image, centerRect Rect, dest Rect, p *Paint) + func (c *Canvas) DrawLine(x1, y1, x2, y2 float32, p *Paint) + func (c *Canvas) DrawLineRotated(x, y, length, thickness, angle float32, p *Paint) + func (c *Canvas) DrawOval(x, y, w, h float32, p *Paint) + func (c *Canvas) DrawPath(path *Path, p *Paint) + func (c *Canvas) DrawPoints(verts []float32, p *Paint) + func (c *Canvas) DrawRect(x, y, w, h float32, p *Paint) + func (c *Canvas) DrawRoundedRect(rect Rect, radiusX, radiusY float32, p *Paint) + func (c *Canvas) DrawSimpleString(text string, x, y float32, p *Paint) + func (c *Canvas) DrawText(text string, x, y float32, font *Font, p *Paint) + func (c *Canvas) DrawTriangleFilled(p1, p2, p3 Point, p *Paint) + func (c *Canvas) DropShadow(rect Rect, p *Paint, offsetX, offsetY, radius float32) + func (c *Canvas) GetMatrix() Matrix + func (c *Canvas) Height() float32 + func (c *Canvas) IsClipEmpty() bool + func (c *Canvas) QuickRejectRect(rect Rect) bool + func (c *Canvas) ResetClip() + func (c *Canvas) Restore() + func (c *Canvas) RestoreToCount(count int) + func (c *Canvas) Rotate(degrees float32) + func (c *Canvas) Save() int + func (c *Canvas) SaveAndRestore(f func(c *Canvas)) + func (c *Canvas) Scale(sx, sy float32) + func (c *Canvas) Skew(kx, ky float32) + func (c *Canvas) TransformRect(x, y, w, h float32) (float32, float32, float32, float32) + func (c *Canvas) Translate(dx, dy float32) + func (c *Canvas) Width() float32 + func (c *Canvas) WithClip(r Rect, f func(c *Canvas)) + type ClipPlane struct + D float32 + NX float32 + NY float32 + func ClipPlanes() []ClipPlane + type Color uint32 + func RGB(r, g, b uint8) Color + func RGBA(r, g, b, a uint8) Color + func (c Color) Paint(_ *Canvas, _ Rect, style int32) *Paint + type DesktopRenderer struct + func (d *DesktopRenderer) ClearScissor() + func (d *DesktopRenderer) ClearWithViewport(col uint32, x, y, w, h int32) + func (d *DesktopRenderer) DrainErrors() + func (d *DesktopRenderer) DrawCircle(cx, cy, radius float32, color Color) + func (d *DesktopRenderer) DrawColor(col uint32, mode BlendMode) + func (d *DesktopRenderer) DrawLine(x1, y1, x2, y2 float32, color Color, strokeW float32) + func (d *DesktopRenderer) DrawOval(x, y, w, h float32, color Color) + func (d *DesktopRenderer) DrawPathFill(tris []float32, color Color, bounds Rect) + func (d *DesktopRenderer) DrawRect(x, y, w, h float32, color Color, angle float32) + func (d *DesktopRenderer) DrawRectStyled(x, y, w, h, radius, strokeW float32, color Color, style int32, angle float32) + func (d *DesktopRenderer) DrawTexturedQuads(verts []float32, texID uint32, color Color, isImage bool) + func (d *DesktopRenderer) DrawTriangles(verts []float32, color Color) + func (d *DesktopRenderer) Flush() + func (d *DesktopRenderer) Present() + func (d *DesktopRenderer) ScissorState() (int32, int32, int32, int32, bool) + func (d *DesktopRenderer) ScreenSize() (float32, float32) + func (d *DesktopRenderer) SetBlendMode(mode BlendMode) + func (d *DesktopRenderer) SetScissor(x, y, w, h int32) + func (d *DesktopRenderer) SetScreenSize(w, h float32) + func (d *DesktopRenderer) SetViewport(x, y, w, h int32) + type EGLContext struct + type ErrNotSupported struct + Platform string + func (e *ErrNotSupported) Error() string + type Event struct + Axis int + Button int + CompLength int + CompStart int + DX float32 + DY float32 + Files []string + Hat int + Height int32 + JoystickID int + Key Keycode + Mod KeyMod + Repeat bool + Rune rune + Text string + TouchID int64 + Touches []Touch + Type EventType + Value float32 + WheelX float32 + WheelY float32 + Width int32 + X float32 + Y float32 + type EventQueue struct + func NewEventQueue() *EventQueue + func (q *EventQueue) Poll() Event + func (q *EventQueue) PollSources() + func (q *EventQueue) PushEvent(e Event) + func (q *EventQueue) RegisterSource(src EventSource) + type EventSource interface + Name func() string + Poll func() []Event + type EventType int + const EventAppPause + const EventAppResume + const EventBack + const EventFileDrop + const EventFocusGained + const EventFocusLost + const EventJoystickAxis + const EventJoystickButtonDown + const EventJoystickButtonUp + const EventJoystickHat + const EventKeyDown + const EventKeyUp + const EventMouseDown + const EventMouseMove + const EventMouseUp + const EventMouseWheel + const EventNone + const EventQuit + const EventResize + const EventTextEditing + const EventTextInput + const EventTouchCancel + const EventTouchDown + const EventTouchMove + const EventTouchUp + type Font struct + func NewFont(family string, size float32, face *truetype.Font) *Font + func NewFontStyled(family string, size float32, face *truetype.Font, fakeBold, fakeItalic bool) *Font + func SystemFont() *Font + func (f *Font) Baseline() float32 + func (f *Font) Descender() float32 + func (f *Font) Descriptor() FontDescriptor + func (f *Font) Face() *truetype.Font + func (f *Font) Family() string + func (f *Font) LineHeight() float32 + func (f *Font) Size() float32 + func (f *Font) TextWidth(text string) float32 + type FontDescriptor struct + Family string + Size float32 + type FrameStats struct + DrawCalls int64 + Flushes int64 + Primitives int64 + func GetFrameStats() FrameStats + type GPUTimer struct + func NewGPUTimer() *GPUTimer + func (t *GPUTimer) Begin() + func (t *GPUTimer) End() + func (t *GPUTimer) Nanoseconds() int64 + type Gradient struct + Center Point + End Point + Radius float32 + Start Point + StartAngle float32 + StopCount int + Stops [MaxGradientStops]GradientStop + Type GradientType + func CurrentGradient() Gradient + func (g *Gradient) SetStops(stops []GradientStop) + type GradientStop struct + Color Color + Offset float32 + type GradientType int + const GradientConic + const GradientLinear + const GradientNone + const GradientRadial + type Image struct + func NewImage(rgba []uint32, w, h int32) *Image + func NewImageFromPNG(data []byte) (*Image, error) + func (i *Image) LogicalSize() Size + func (img *Image) Dirty() bool + func (img *Image) Height() int32 + func (img *Image) MarkPixelsDirty() + func (img *Image) Pixels() []uint32 + func (img *Image) SetPixels(pix []uint32) + func (img *Image) TextureID() uint32 + func (img *Image) ToPNG(compressionLevel int) ([]byte, error) + func (img *Image) Upload() + func (img *Image) Width() int32 + type InstanceData struct + Angle float32 + BlendMode int32 + ColorA float32 + ColorB float32 + ColorG float32 + ColorR float32 + PosX float32 + PosY float32 + SizeX float32 + SizeY float32 + type KeyMod int + func (m KeyMod) AltDown() bool + func (m KeyMod) ControlDown() bool + func (m KeyMod) MetaDown() bool + func (m KeyMod) OptionDown() bool + func (m KeyMod) ShiftDown() bool + type Keycode int + const Key0 + const Key1 + const Key2 + const Key3 + const Key4 + const Key5 + const Key6 + const Key7 + const Key8 + const Key9 + const KeyA + const KeyB + const KeyBackspace + const KeyC + const KeyD + const KeyDown + const KeyE + const KeyEnter + const KeyEscape + const KeyF + const KeyG + const KeyH + const KeyI + const KeyJ + const KeyK + const KeyL + const KeyLeft + const KeyLeftAlt + const KeyLeftCtrl + const KeyLeftMeta + const KeyLeftShift + const KeyM + const KeyN + const KeyO + const KeyP + const KeyQ + const KeyR + const KeyRight + const KeyRightAlt + const KeyRightCtrl + const KeyRightMeta + const KeyRightShift + const KeyS + const KeySpace + const KeyT + const KeyTab + const KeyU + const KeyUnknown + const KeyUp + const KeyV + const KeyW + const KeyX + const KeyY + const KeyZ + type Mat4 [16]float32 + func Identity() Mat4 + func LookAt(eye, center, up Vec3) Mat4 + func Ortho(left, right, bottom, top, near, far float32) Mat4 + func Perspective(fov, aspect, near, far float32) Mat4 + func (m Mat4) Inverse() Mat4 + func (m Mat4) Multiply(b Mat4) Mat4 + func (m Mat4) Rotate(angle float32, axis Vec3) Mat4 + func (m Mat4) Scale(v Vec3) Mat4 + func (m Mat4) Transform(v Vec3) Vec3 + func (m Mat4) Translate(v Vec3) Mat4 + type Matrix [9]float32 + func NewMatrix() Matrix + func RotateMatrix(degrees float32) Matrix + func ScaleMatrix(sx, sy float32) Matrix + func SkewMatrix(kx, ky float32) Matrix + func TranslateMatrix(tx, ty float32) Matrix + func (m Matrix) Concat(other Matrix) Matrix + func (m Matrix) Multiply(other Matrix) Matrix + func (m Matrix) Transform(pt Point) Point + type Paint struct + func NewPaint() *Paint + func (p *Paint) Antialias() bool + func (p *Paint) BlendMode() BlendMode + func (p *Paint) ClearGradient() + func (p *Paint) Color() Color + func (p *Paint) GlobalAlpha() float32 + func (p *Paint) Gradient() Gradient + func (p *Paint) MiterLimit() float32 + func (p *Paint) SetAntialias(on bool) + func (p *Paint) SetBlendMode(mode BlendMode) + func (p *Paint) SetColor(c Color) + func (p *Paint) SetConicGradient(center Point, startAngle float32, stops []GradientStop) + func (p *Paint) SetGlobalAlpha(a float32) + func (p *Paint) SetGradient(g Gradient) + func (p *Paint) SetLinearGradient(start, end Point, stops []GradientStop) + func (p *Paint) SetMiterLimit(limit float32) + func (p *Paint) SetRadialGradient(center Point, radius float32, stops []GradientStop) + func (p *Paint) SetStrokeCap(cap StrokeCap) + func (p *Paint) SetStrokeJoin(join StrokeJoin) + func (p *Paint) SetStrokeWidth(w float32) + func (p *Paint) SetStyle(style int32) + func (p *Paint) StrokeCap() StrokeCap + func (p *Paint) StrokeJoin() StrokeJoin + func (p *Paint) StrokeWidth() float32 + func (p *Paint) Style() PaintStyle + type PaintStyle int + const Fill + const FillStroke + const Stroke + type Path struct + func NewPath() *Path + func (p *Path) Bounds() Rect + func (p *Path) Close() + func (p *Path) LineTo(pt Point) + func (p *Path) MoveTo(pt Point) + func (p *Path) QuadTo(ctrl, end Point) + func (p *Path) Reset() + type PathPt struct + Pt Point + Verb PathVerb + type PathVerb int + const PathClose + const PathCubic + const PathLine + const PathMove + const PathQuad + type Point struct + X float32 + Y float32 + func NewPoint(x, y float32) Point + type Rect struct + Height float32 + Width float32 + X float32 + Y float32 + func NewRect(x, y, w, h float32) Rect + func (r Rect) Contains(x, y float32) bool + func (r Rect) Intersects(other Rect) bool + type RectRenderer struct + type Renderer interface + ClearScissor func() + ClearWithViewport func(col uint32, x, y, w, h int32) + DrainErrors func() + DrawCircle func(cx, cy, r float32, color Color) + DrawColor func(col uint32, mode BlendMode) + DrawLine func(x1, y1, x2, y2 float32, color Color, strokeW float32) + DrawOval func(x, y, w, h float32, color Color) + DrawRect func(x, y, w, h float32, color Color, angle float32) + DrawRectStyled func(x, y, w, h, radius, strokeW float32, color Color, style int32, angle float32) + DrawTexturedQuads func(verts []float32, texID uint32, color Color, isImage bool) + DrawTriangles func(verts []float32, color Color) + Flush func() + Present func() + ScissorState func() (x, y, w, h int32, test bool) + ScreenSize func() (float32, float32) + SetBlendMode func(mode BlendMode) + SetScissor func(x, y, w, h int32) + SetScreenSize func(w, h float32) + SetViewport func(x, y, w, h int32) + func NewRenderer() Renderer + type ShapeRenderer struct + type Size struct + Height float32 + Width float32 + func NewSize(w, h float32) Size + type StrokeCap int + const StrokeCapButt + const StrokeCapRound + const StrokeCapSquare + type StrokeJoin int + const StrokeJoinBevel + const StrokeJoinMiter + const StrokeJoinRound + type TextRenderer struct + type Touch struct + ID int64 + Pressure float32 + X float32 + Y float32 + type Vec3 struct + X float32 + Y float32 + Z float32 + func (v Vec3) Add(o Vec3) Vec3 + func (v Vec3) Cross(o Vec3) Vec3 + func (v Vec3) Dot(o Vec3) float32 + func (v Vec3) Length() float32 + func (v Vec3) Negate() Vec3 + func (v Vec3) Normalize() Vec3 + func (v Vec3) Scale(s float32) Vec3 + func (v Vec3) Sub(o Vec3) Vec3 + type Window struct + OwnsEventPump bool + func GetMainWindow() *Window + func InitWindow(width, height int32) *Window + func OpenWindowNamed(title string, width, height int32) (*Window, error) + func OpenWindowNamedInline(title string, width, height int32) (*Window, error) + func (w *Window) Close() + func (w *Window) Destroy() + func (w *Window) Events() *EventQueue + func (w *Window) Height() int32 + func (w *Window) KeyPressed(key int) bool + func (w *Window) MakeCurrent() bool + func (w *Window) Maximize() + func (w *Window) Maximized() bool + func (w *Window) Minimize() + func (w *Window) MouseButtonPressed(button int) bool + func (w *Window) MousePos() (float32, float32) + func (w *Window) Poll() Event + func (w *Window) PollEvents(handler func(Event)) bool + func (w *Window) PushEvent(e Event) + func (w *Window) Raise() + func (w *Window) RegisterTask(f func()) + func (w *Window) Restore() + func (w *Window) RunFrameTasks() + func (w *Window) RunPendingTasks() + func (w *Window) SafeArea() (x, y, width, height int32, ok bool) + func (w *Window) SetSize(width, height int32) + func (w *Window) SetTextInput(active bool, x, y, width, height int32) + func (w *Window) SetTitle(title string) + func (w *Window) ShouldClose() bool + func (w *Window) Swap() + func (w *Window) TextInputArea() (x, y, width, height int32, ok bool) + func (w *Window) ToggleMaximize() + func (w *Window) Width() int32