Documentation
¶
Index ¶
- Variables
- type App
- func (a *App) AmbLight() *light.Ambient
- func (a *App) Camera() *camera.Camera
- func (a *App) ControlFolder() *gui.ControlFolder
- func (a *App) DemoPanel() *gui.Panel
- func (a *App) DirData() string
- func (a *App) Log() *logger.Logger
- func (a *App) OnWindowResize()
- func (a *App) Orbit() *camera.OrbitControl
- func (a *App) Run()
- func (a *App) Scene() *core.Node
- func (a *App) Update(rend *renderer.Renderer, deltaTime time.Duration)
- type IDemo
Constants ¶
This section is empty.
Variables ¶
View Source
var DemoMap = map[string]IDemo{}
DemoMap maps the demo name string to its object Individual demos sets the keys of this map
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { *app.Application // Embedded standard application object // contains filtered or unexported fields }
App contains the application state
func Create ¶
func Create() *App
Create creates the G3ND application using the specified map of demos
func (*App) ControlFolder ¶
func (a *App) ControlFolder() *gui.ControlFolder
ControlFolder returns the application control folder
func (*App) OnWindowResize ¶
func (a *App) OnWindowResize()
OnWindowResize is default handler for window resize events.
func (*App) Orbit ¶
func (a *App) Orbit() *camera.OrbitControl
Orbit returns the current camera orbit control
Click to show internal directories.
Click to hide internal directories.