viewer

package
v0.0.0-...-dd2ef8f Latest Latest
Warning

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

Go to latest
Published: May 11, 2017 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeKeyCallback

func MakeKeyCallback(v *Viewer) func(*glfw.Window, glfw.Key, int, glfw.Action, glfw.ModifierKey)

Types

type Viewer

type Viewer struct {
	*glfw.Window
	log.Logger
	// contains filtered or unexported fields
}

func New

func New(path string, l log.Logger) (*Viewer, error)

func (*Viewer) Draw

func (v *Viewer) Draw()

func (Viewer) GetKeyCallbacks

func (c Viewer) GetKeyCallbacks(d *called) []callback

func (*Viewer) Kill

func (v *Viewer) Kill()

func (*Viewer) Run

func (v *Viewer) Run()

func (Viewer) RunIfKeyCallbacks

func (c Viewer) RunIfKeyCallbacks(d *called)

func (Viewer) SetKeyCallback

func (c Viewer) SetKeyCallback(k glfw.Key, d callback)

Jump to

Keyboard shortcuts

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