Versions in this module Expand all Collapse all v0 v0.0.1 Jun 15, 2021 Changes in this version + const HorizRadPerSec + const MovePerSec + const VertRadPerSec + type FrameCapture func(*image.RGBA) bool + type GraphicsContext struct + func NewGraphicsContext(gla *gtk.GLArea, opts *GraphicsOptions) *GraphicsContext + func (gc *GraphicsContext) Add(m model.Model, t ...mesh.Transform) + func (gc *GraphicsContext) Connect() + func (gc *GraphicsContext) Got(e *gdk.EventKey) + func (gc *GraphicsContext) Realize() + func (gc *GraphicsContext) Render() bool + func (gc *GraphicsContext) SetFrameCapture(fn FrameCapture) bool + func (gc *GraphicsContext) Size() (width, height int) + func (gc *GraphicsContext) Tick(delta, runtime time.Duration) bool + func (gc *GraphicsContext) Unrealize() + type GraphicsOptions struct + Debug bool + Domain glib.Quark + Font font.Face + Lights []model.Light + NoCull bool + type Renderer struct + func (r *Renderer) Add(m model.Model, t ...mesh.Transform) + func (r *Renderer) EnableDebug(ok bool) + func (r *Renderer) Init() error + func (r *Renderer) Realize() error + func (r *Renderer) Render(width, height int, g model.Globals) time.Duration + func (r *Renderer) SetFrameCapture(fn FrameCapture) bool + func (r *Renderer) Tick(delta, runtime time.Duration) bool + func (r *Renderer) Unrealize() + type ViewerApp struct + Actions map[string]*glib.SimpleAction + GC *GraphicsContext + Win *gtk.ApplicationWindow + func NewViewer(name string, args *[]string, gcOpts *GraphicsOptions, ...) *ViewerApp + func (app *ViewerApp) OnActivate(fn func(*gtk.Application)) + func (app *ViewerApp) OnOpen(fn func(*gtk.Application, []string))