Foundation for the aego engine. core/ errs, log, handle arena, mathx, clock, stats platform SDL3 backend plus a headless one, input state, events gpu device abstraction with gl33 and null backends vfs scheme-based virtual filesystem with overlay mounts engine builder, module registry, phase-ordered system loop, jobs demos basic, resize, input, headless; sandbox driver OpenGL bindings are generated into gpu/gl33/gl by tools/gen-gl.sh, so the module has no external dependencies.
31 lines
436 B
Go
31 lines
436 B
Go
package headless
|
|
|
|
import (
|
|
"aego/demos"
|
|
"aego/demos/basic"
|
|
"aego/engine"
|
|
)
|
|
|
|
func init() {
|
|
demos.Register("headless", func() demos.Demo { return New() })
|
|
}
|
|
|
|
type Demo struct {
|
|
*basic.Demo
|
|
}
|
|
|
|
func New() *Demo {
|
|
return &Demo{Demo: basic.New()}
|
|
}
|
|
|
|
func (d *Demo) Name() string {
|
|
return "headless"
|
|
}
|
|
|
|
func (d *Demo) Configure(c *engine.Config) {
|
|
c.Headless = true
|
|
if c.HeadlessFrameTime <= 0 {
|
|
c.HeadlessFrameTime = 1.0 / 60
|
|
}
|
|
}
|