graphics

package
v0.0.0-...-6ed7bcd Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndPrintErrors

func CheckAndPrintErrors()

func MakeProgram

func MakeProgram(vert string, frag string) (uint32, error)

func Terminate

func Terminate()

Types

type Renderer

type Renderer struct {
	Window      *glfw.Window
	Version     string
	Shader      uint32
	Framebuffer uint32
	Texture     uint32
	Plane       uint32
}

func Init

func Init(width int, height int, title string) (*Renderer, error)

func (Renderer) Render

func (self Renderer) Render(renderScene func())

func (Renderer) Run

func (self Renderer) Run() bool

Jump to

Keyboard shortcuts

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