engine

package
v0.0.0-...-124f97e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: GPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Frame

func Frame(args Args, scenefuncs ...SceneFunc) *osimage.RGBA

Render a single frame and return it as *image.RGBA

func NewFrameCounter

func NewFrameCounter(samples int) *framecounter

func NewStatsGUI

func NewStatsGUI() gui.Fragment

func Run

func Run(args Args, scenefuncs ...SceneFunc)

func RunGC

func RunGC()

func RunProfilingServer

func RunProfilingServer(port int)

Types

type Args

type Args struct {
	Title    string
	Width    int
	Height   int
	Renderer RendererFunc
}

type Interrupter

type Interrupter interface {
	Running() bool
}

func NewInterrupter

func NewInterrupter() Interrupter

type RendererFunc

type RendererFunc func(vulkan.App, vulkan.Target) graph.T

type SceneFunc

type SceneFunc func(object.Object)

type Timing

type Timing struct {
	Current float32
	Average float32
	Max     float32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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