Core Renderer of andromeda Game Engine written in go, using Modern OpenGL API
# install module deps
$ go mod download
# run example scenes from sandbox layer
$ make build && make run
package sandbox
import (
"runtime"
core "github.com/dkvilo/andromeda/framework/core"
)
func init() {
runtime.LockOSThread()
}
var (
// Blank Example App
Blank Example = Example{
core.Andromeda{
Width: 1080,
Height: 720,
Title: "Andromeda Empty Sandbox",
// Issue OnLoad
OnLoadContext: func(andromeda *core.Andromeda) {
// Load Assets
},
// Issue Entity Update
OnUpdateContext: func(andromeda *core.Andromeda) {
// do updates
},
// Issue Draw Call
OnRenderContext: func(andromeda *core.Andromeda) {
// draw
},
},
}
)