Documentation ¶
Index ¶
- Variables
- func AdjustedCursorPosition() (x, y int)
- func AdjustedTouches() []*input.Touch
- func DeviceScaleFactor() float64
- func IsCursorVisible() bool
- func IsFullscreen() bool
- func IsRunnableInBackground() bool
- func IsVsyncEnabled() bool
- func IsWindowDecorated() bool
- func IsWindowResizable() bool
- func Loop(ch <-chan error) error
- func Run(width, height int, scale float64, title string, g GraphicsContext, ...) error
- func ScreenPadding() (x0, y0, x1, y1 float64)
- func ScreenScale() float64
- func ScreenSizeInFullscreen() (int, int)
- func SetCursorVisible(visible bool)
- func SetFullscreen(fullscreen bool)
- func SetRunnableInBackground(runnableInBackground bool)
- func SetScreenScale(scale float64) bool
- func SetScreenSize(width, height int)
- func SetVsyncEnabled(enabled bool)
- func SetWindowDecorated(decorated bool)
- func SetWindowIcon(iconImages []image.Image)
- func SetWindowResizable(resizable bool)
- func SetWindowTitle(title string)
- type GraphicsContext
Constants ¶
This section is empty.
Variables ¶
View Source
var RegularTermination = errors.New("regular termination")
RegularTermination represents a regular termination. Run can return this error, and if this error is received, the game loop should be terminated as soon as possible.
Functions ¶
func AdjustedCursorPosition ¶ added in v1.7.0
func AdjustedCursorPosition() (x, y int)
func AdjustedTouches ¶ added in v1.7.0
func DeviceScaleFactor ¶ added in v1.8.0
func DeviceScaleFactor() float64
func IsCursorVisible ¶ added in v1.6.0
func IsCursorVisible() bool
func IsFullscreen ¶ added in v1.6.0
func IsFullscreen() bool
func IsRunnableInBackground ¶ added in v1.6.0
func IsRunnableInBackground() bool
func IsVsyncEnabled ¶ added in v1.8.0
func IsVsyncEnabled() bool
func IsWindowDecorated ¶ added in v1.7.0
func IsWindowDecorated() bool
func IsWindowResizable ¶ added in v1.9.0
func IsWindowResizable() bool
func ScreenPadding ¶ added in v1.7.0
func ScreenPadding() (x0, y0, x1, y1 float64)
func ScreenScale ¶ added in v1.4.0
func ScreenScale() float64
func ScreenSizeInFullscreen ¶ added in v1.8.0
func SetCursorVisible ¶ added in v1.6.0
func SetCursorVisible(visible bool)
func SetFullscreen ¶ added in v1.6.0
func SetFullscreen(fullscreen bool)
func SetRunnableInBackground ¶ added in v1.6.0
func SetRunnableInBackground(runnableInBackground bool)
func SetScreenScale ¶ added in v1.2.0
func SetScreenSize ¶ added in v1.2.0
func SetScreenSize(width, height int)
func SetVsyncEnabled ¶ added in v1.8.0
func SetVsyncEnabled(enabled bool)
func SetWindowDecorated ¶ added in v1.7.0
func SetWindowDecorated(decorated bool)
func SetWindowIcon ¶ added in v1.6.0
func SetWindowResizable ¶ added in v1.9.0
func SetWindowResizable(resizable bool)
func SetWindowTitle ¶ added in v1.7.0
func SetWindowTitle(title string)
Types ¶
type GraphicsContext ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.