video

package
v0.0.0-...-22b451c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2018 License: MIT Imports: 4 Imported by: 0

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 WindowPosIsCentered(x int) bool

func WindowPosIsUndefined

func WindowPosIsUndefined(x int) bool

Types

type BlitMap

type BlitMap struct{}

type Color

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

type DisplayMode

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

type Palette

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

type PixelFormat

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

type Point

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

type Rect

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

type RenderDriver

type RenderDriver interface {
	CreateRenderer(window *Window, flags uint32) (*Renderer, error)
	Info() RendererInfo
}

type Renderer

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

func CreateRenderer

func CreateRenderer(window *Window, flags uint32) (*Renderer, error)

type RendererInfo

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

type Surface

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

type Texture

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

type Window

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

func CreateWindow

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

func (*Window) SendEvent

func (w *Window) SendEvent(windowevent uint8, data1, data2 int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL