andromeda

command module
v0.0.0-...-3b1d20f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2021 License: MIT Imports: 2 Imported by: 0

README

Andromeda Renderer

Core Renderer of andromeda Game Engine written in go, using Modern OpenGL API

Run

  # install module deps
  $ go mod download

  # run example scenes from sandbox layer
  $ make build && make run

Preview 3d scene example

Framework usage


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
			},
		},
	}
)


Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
framework

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL