gl

package
v0.0.0-...-5fbf5ab Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadProgram

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

/ Load compiles both frag/vert GL shaders and returns a GL program

Types

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

Renderer is an OpenGL renderer and input handler.

func New

func New() (*Renderer, error)

New creates a new Renderer.

func (*Renderer) Close

func (r *Renderer) Close()

Close cleans up the renderer state.

func (*Renderer) Run

func (r *Renderer) Run(
	nextFrame <-chan *image.RGBA,
	input chan<- cpu.JoypadState,
	shouldClose <-chan bool,
	closed chan<- bool,
)

Run displays the render window, renders the framebuffer, and updates inputs.

Jump to

Keyboard shortcuts

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