Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationConfig ¶
type ApplicationConfig struct {
// Window starting position x axis, if applicable.
StartPosX uint32
// Window starting position y axis, if applicable.
StartPosY uint32
// Window starting width, if applicable.
StartWidth uint32
// Window starting height, if applicable.
StartHeight uint32
// The application name used in windowing, if applicable.
Name string
LogLevel core.LogLevel
RenderViewConfigs []*metadata.RenderViewConfig
}
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) GetFramebufferSize ¶
ApplicationGetFramebufferSize returns the width and height (in this order) of the application Framebuffer
func (*Engine) Initialize ¶
type Game ¶
type Game struct {
ApplicationConfig *ApplicationConfig
SystemManager *systems.SystemManager
State interface{}
FnBoot Boot
FnInitialize Initialize
FnUpdate Update
FnRender Render
FnOnResize OnResize
FnShutdown Shutdown
}
type Initialize ¶
type Initialize func() error
type Stage ¶
type Stage uint8
const ( // Engine is in an uninitialized state EngineStageUninitialized Stage = iota // Engine is currently booting up EngineStageBooting // Engine completed boot process and is ready to be initialized EngineStageBootComplete // Engine is currently initializing EngineStageInitializing // Engine initialization is complete EngineStageInitialized // Engine is currently running EngineStageRunning // Engine is in the process of shutting down EngineStageShuttingDown )
Click to show internal directories.
Click to hide internal directories.