Documentation ¶
Overview ¶
Package glui provides a simple way to display an image or images on a screen, each in its own window. The package makes use of the GLFW library and OpenGL v4.1
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WinMap = make(map[*glfw.Window]*GLWin)
WinMap provides a map of all windows to their corresponding GLWin
Functions ¶
func Loop ¶
func Loop(update func())
Loop is how window events get processed and the images rendered to their windows. It will run until there are no windows left to process. The update function provides a way to insert code into this loop - it should be non-blocking otherwise window updates will stall.
Types ¶
type GLWin ¶
GLWin ties an image to a window
Click to show internal directories.
Click to hide internal directories.