Documentation ¶
Index ¶
- func Helloworld()
- func Log(message string)
- func LogErr(message string)
- func LogInfo(message string)
- func LogTrace(message string)
- func LogWarn(message string)
- func Print(message string)
- func Run()
- type AppConfig
- type Application
- type BaseLayer
- type CassiniApp
- func (c *CassiniApp) Broadcast(event events.Event)
- func (c *CassiniApp) GetConfig() AppConfig
- func (c *CassiniApp) OnEvent(event events.Event)
- func (c *CassiniApp) PushLayer(layer Layer)
- func (c *CassiniApp) PushOverlay(overlay Layer)
- func (c *CassiniApp) Run(platform *graphics.Platform, renderer graphics.RenderSystem, ...)
- type DemoLayer
- type Layer
- type LayerStack
- type LogLevel
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Helloworld ¶
func Helloworld()
Types ¶
type Application ¶
type Application interface { Run(platform *graphics.Platform, renderer graphics.RenderSystem, dispatcher events.Publisher) OnEvent(event events.Event) PushLayer(layer Layer) PushOverlay(overlay Layer) GetConfig() AppConfig Broadcast(event events.Event) }
var GlobalApplication Application
func InitApp ¶
func InitApp(config AppConfig) Application
func NewCassiniApp ¶
func NewCassiniApp(config AppConfig) Application
type BaseLayer ¶
type BaseLayer struct { Name string App *CassiniApp }
func (*BaseLayer) SetApp ¶
func (bl *BaseLayer) SetApp(app *CassiniApp)
type CassiniApp ¶
type CassiniApp struct { Log LogLevel Layers LayerStack Config AppConfig Plat *graphics.Platform Ren graphics.RenderSystem Dis events.Publisher }
func (*CassiniApp) Broadcast ¶
func (c *CassiniApp) Broadcast(event events.Event)
func (*CassiniApp) GetConfig ¶
func (c *CassiniApp) GetConfig() AppConfig
func (*CassiniApp) OnEvent ¶
func (c *CassiniApp) OnEvent(event events.Event)
func (*CassiniApp) PushLayer ¶
func (c *CassiniApp) PushLayer(layer Layer)
func (*CassiniApp) PushOverlay ¶
func (c *CassiniApp) PushOverlay(overlay Layer)
func (*CassiniApp) Run ¶
func (c *CassiniApp) Run(platform *graphics.Platform, renderer graphics.RenderSystem, dispatcher events.Publisher)
type Layer ¶
type Layer interface { OnAttach() OnDetach() OnUpdate() OnEvent(event events.Event) SetApp(app *CassiniApp) Broadcast(event events.Event) }
func NewDemoLayer ¶
type LayerStack ¶
type LayerStack interface { PushLayer(layer Layer) PushOverlay(overlay Layer) PopLayer(layer Layer) PopOverlay(overlay Layer) Get() []Layer PrintStack() }
func NewLayerStack ¶
func NewLayerStack() LayerStack
Source Files ¶
Click to show internal directories.
Click to hide internal directories.