Documentation
¶
Index ¶
- type Close
- type Config
- func DefaultConfig(fn ConfigFn) Config
- func NewConfig(order int, fn ConfigFn) Config
- func SetDebug(b bool) Config
- func SetInner(fn MakeInner) Config
- func SetLastTick(v float64) Config
- func SetLogger(l log.Logger) Config
- func SetReportFrame(b bool) Config
- func SetReportStep(b bool) Config
- func SetTickDuration(d string) Config
- func SetTickValue(v float64) Config
- type ConfigFn
- type Configuration
- type Engine
- type ErrorHandler
- type FPSFunc
- type Frame
- type FrameFunc
- type HandleErrorFunc
- type Inner
- type MakeInner
- type Settings
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
func DefaultConfig ¶
func SetLastTick ¶
func SetReportFrame ¶
func SetReportStep ¶
func SetTickDuration ¶
func SetTickValue ¶
type Configuration ¶
type Configuration struct {
// contains filtered or unexported fields
}
func (*Configuration) Add ¶
func (c *Configuration) Add(conf ...Config)
func (*Configuration) AddFn ¶
func (c *Configuration) AddFn(fns ...ConfigFn)
func (*Configuration) Configure ¶
func (c *Configuration) Configure() error
func (*Configuration) Configured ¶
func (c *Configuration) Configured() bool
func (*Configuration) Init ¶
func (c *Configuration) Init(e *Engine, conf ...Config)
type Engine ¶
type Engine struct {
log.Logger
ErrorHandler
Configuration
Settings
*State
// contains filtered or unexported fields
}
type ErrorHandler ¶
type ErrorHandler struct {
// contains filtered or unexported fields
}
func (*ErrorHandler) HandleError ¶
func (e *ErrorHandler) HandleError(r error)
func (*ErrorHandler) HandleWarning ¶
func (e *ErrorHandler) HandleWarning(w ...error)
func (*ErrorHandler) Init ¶
func (e *ErrorHandler) Init(n *Engine)
func (*ErrorHandler) SetHandleError ¶
func (e *ErrorHandler) SetHandleError(fn HandleErrorFunc)
type Frame ¶
Frame is an interface for managing and detailing engine timing information.
func DebugFrame ¶
func DebugFrame() Frame
func MaxLimitFrame ¶
type HandleErrorFunc ¶
Click to show internal directories.
Click to hide internal directories.