Documentation ¶
Index ¶
- Variables
- func AdjustedCursorPosition() (x, y int)
- func AdjustedTouches() []*input.Touch
- func IsCursorVisible() bool
- func IsFullscreen() bool
- func IsRunnableInBackground() bool
- func IsWindowDecorated() bool
- func MonitorSize() (int, int)
- func Run(width, height int, scale float64, title string, g GraphicsContext, ...) error
- func RunMainThreadLoop(ch <-chan error) error
- func ScreenPadding() (x0, y0, x1, y1 float64)
- func ScreenScale() float64
- func SetCursorVisible(visible bool)
- func SetFullscreen(fullscreen bool)
- func SetRunnableInBackground(runnableInBackground bool)
- func SetScreenScale(scale float64) bool
- func SetScreenSize(width, height int) bool
- func SetWindowDecorated(decorated bool)
- func SetWindowIcon(iconImages []image.Image)
- 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 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 IsWindowDecorated ¶ added in v1.7.0
func IsWindowDecorated() bool
func MonitorSize ¶ added in v1.7.0
func RunMainThreadLoop ¶ added in v1.4.0
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 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 SetWindowDecorated ¶ added in v1.7.0
func SetWindowDecorated(decorated bool)
func SetWindowIcon ¶ added in v1.6.0
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.