gui

package
v0.0.0-...-7d09a16 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameWindow

type GameWindow interface {
	Draw()
	SetKeyCallback(fn KeyCallback)
	IsKeyPress(keyID int) bool
	Destroy()
	ShouldClose() bool
	SetTextureID(id ...int)
}

GameWindow represents a window with a canvas and provides a KeyCallback

type KeyCallback

type KeyCallback func(key int, isPress bool)

KeyCallback represents a keycallback function

type TextureProvider

type TextureProvider interface {
	Texture(idx ...int) *image.RGBA
}

TextureProvider represents the interface to the outer gui world to set a texture in the gl context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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