graph

package
v0.0.0-...-8e5a076 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRecreate = errors.New("recreate renderer")

Functions

func Default

func Default(app engine.App, target engine.Target) engine.Renderer

Instantiates the default render graph

Types

type Graph

type Graph struct {
	// contains filtered or unexported fields
}

func New

func New(app engine.App, output engine.Target, init GraphFunc) *Graph

func (*Graph) Destroy

func (g *Graph) Destroy()

func (*Graph) Draw

func (g *Graph) Draw(scene object.Object, time, delta float32)

func (*Graph) Node

func (g *Graph) Node(pass draw.Pass) Node

func (*Graph) Recreate

func (g *Graph) Recreate()

func (*Graph) Screengrab

func (g *Graph) Screengrab() *image.RGBA

func (*Graph) Screenshot

func (g *Graph) Screenshot()

type GraphFunc

type GraphFunc func(*Graph, engine.Target) []Resource

type Node

type Node interface {
	After(nd Node, mask core1_0.PipelineStageFlags)
	Before(nd Node, mask core1_0.PipelineStageFlags, signal []*sync.Semaphore)
	Requires() []Node
	Dependants() []Node

	Name() string
	Draw(command.Worker, draw.Args, object.Component)
	Detach(Node)
	Destroy()
}

type PreDrawable

type PreDrawable interface {
	object.Component
	PreDraw(draw.Args, object.Object) error
}

type Resource

type Resource interface {
	Destroy()
}

Jump to

Keyboard shortcuts

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