Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGLProgram ¶
Types ¶
type KbDown ¶
type KbDown struct{ Key Key }
KbDown is an event that happens when a key on the keyboard gets pressed.
type KbRepeat ¶
type KbRepeat struct{ Key Key }
KbRepeat is an event that happens when a key on the keyboard gets repeated.
This happens when its held down for some time.
type KbType ¶
type KbType struct{ Rune rune }
KbType is an event that happens when a Unicode character gets typed on the keyboard.
type KbUp ¶
type KbUp struct{ Key Key }
KbUp is an event that happens when a key on the keyboard gets released.
type MoScroll ¶
MoScroll is an event that happens on scrolling the mouse.
The Point field tells the amount scrolled in each direction.
type Option ¶
type Option func(*options)
Option is a functional option to the window constructor New.
type WiClose ¶
type WiClose struct{}
WiClose is an event that happens when the user presses the close button on the window.
type Win ¶
type Win struct {
// contains filtered or unexported fields
}
Win is an Env that handles an actual graphical window.
It receives its events from the OS and it draws to the surface of the window.
Warning: only one window can be open at a time
func New ¶
New creates a new window with all the supplied options.
The default title is empty and the default size is 640x480.