app

package
v0.0.0-...-c243d71 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenGLMajorVersion = 4
	OpenGLMinorVersion = 1
)

Variables

View Source
var (
	Context        *g.Context
	UIContext      *g.Context
	FpsCounter     *utils.FPSCounter
	FpsCounterText *ui.Text
)

Functions

func Clear

func Clear()

Clear clears the screen using App.clearColor

func GetWindow

func GetWindow() *glfw.Window

func Init

func Init(width int, height int, windowTitle string)

Init initializes the main window

func MainLoop

func MainLoop(
	update func(deltaTime float64),
	render func(),
)

func SetClearColor

func SetClearColor(color g.Color)

SetClearColor changes OpenGL background clear color

func SetFPSCounterVisible

func SetFPSCounterVisible(visible bool)

func Terminate

func Terminate()

Types

This section is empty.

Jump to

Keyboard shortcuts

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