Documentation ¶
Index ¶
Constants ¶
View Source
const ( RendererSoftware = 1 << iota // The renderer is a software fallback RendererAccelerated // The renderer uses hardware acceleration RendererPresentVSync // Present is synchronized with the refresh rate RendererTargetRexture // The renderer supports rendering to texture )
View Source
const ( WindowFullscreen = 1 << iota // fullscreen window WindowOpenGL // window usable with OpenGL context WindowShown // window is visible WindowHidden // window is not visible WindowBorderless // no window decoration WindowResizable // window can be resized WindowMinimized // window is minimized WindowMaximized // window is maximized WindowInputGrabbed // window has grabbed input focus WindowInputFocus // window has input focus WindowMouseFocus // window has mouse focus WindowForeign // window not created by SDL WindowFullscreenDesktop = 1<<iota | WindowFullscreen WindowAllowHighDPI // window should be created in high-DPI mode if supported WindowMouseCapture // window has mouse captured (unrelated to INPUT_GRABBED) WindowAlwaysOnTop // window should always be above others WindowSkipTaskbar // window should not be added to the taskbar WindowUtility // window should be treated as a utility window WindowTooltip // window should be treated as a tooltip WindowPopupMenu // window should be treated as a popup menu )
View Source
const WindowPosCentered = 0x2FFF0000
View Source
const WindowPosUndefined = 0x1FFF0000
Variables ¶
This section is empty.
Functions ¶
func WindowPosIsCentered ¶
func WindowPosIsUndefined ¶
Types ¶
type DisplayMode ¶
type DisplayMode struct {
// contains filtered or unexported fields
}
type PixelFormat ¶
type PixelFormat struct {
// contains filtered or unexported fields
}
type RenderDriver ¶
type RenderDriver interface { CreateRenderer(window *Window, flags uint32) (*Renderer, error) Info() RendererInfo }
type RendererInfo ¶
type RendererInfo struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.