Documentation ¶
Index ¶
- Constants
- type FrameCapture
- type 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
- type Renderer
- 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
Constants ¶
View Source
const HorizRadPerSec = math.Pi / 2
View Source
const MovePerSec = 10
View Source
const VertRadPerSec = math.Pi / 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FrameCapture ¶
type GraphicsContext ¶
type GraphicsContext struct {
// contains filtered or unexported fields
}
func NewGraphicsContext ¶
func NewGraphicsContext(gla *gtk.GLArea, opts *GraphicsOptions) *GraphicsContext
func (*GraphicsContext) Connect ¶
func (gc *GraphicsContext) Connect()
func (*GraphicsContext) Got ¶
func (gc *GraphicsContext) Got(e *gdk.EventKey)
func (*GraphicsContext) Realize ¶
func (gc *GraphicsContext) Realize()
func (*GraphicsContext) Render ¶
func (gc *GraphicsContext) Render() bool
func (*GraphicsContext) SetFrameCapture ¶
func (gc *GraphicsContext) SetFrameCapture(fn FrameCapture) bool
func (*GraphicsContext) Size ¶
func (gc *GraphicsContext) Size() (width, height int)
func (*GraphicsContext) Unrealize ¶
func (gc *GraphicsContext) Unrealize()
type GraphicsOptions ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func (*Renderer) EnableDebug ¶
func (*Renderer) SetFrameCapture ¶
func (r *Renderer) SetFrameCapture(fn FrameCapture) bool
type ViewerApp ¶
type ViewerApp struct { *gtk.Application GC *GraphicsContext Win *gtk.ApplicationWindow Actions map[string]*glib.SimpleAction // contains filtered or unexported fields }
func NewViewer ¶
func NewViewer(name string, args *[]string, gcOpts *GraphicsOptions, flags glib.ApplicationFlags) *ViewerApp
func (*ViewerApp) OnActivate ¶
func (app *ViewerApp) OnActivate(fn func(*gtk.Application))
Click to show internal directories.
Click to hide internal directories.