pipeline

package
v0.0.0-...-a5d0d41 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentRef

type ComponentRef struct {
	Parent           *common.Component
	Component        *common.Component
	ComputedZ        int
	ComputedPosition image.Point
}

func (ComponentRef) ComputeZ

func (ref ComponentRef) ComputeZ() int

type DebugPipeline

type DebugPipeline struct{}

func (*DebugPipeline) Render

func (pipe *DebugPipeline) Render(screen *ebiten.Image, win window.Window)

type DefaultPipeline

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

func (*DefaultPipeline) Render

func (pipe *DefaultPipeline) Render(screen *ebiten.Image, win window.Window)

type FrameCache

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

func NewFrameCache

func NewFrameCache() FrameCache

func (*FrameCache) CheckCacheInvalidation

func (frameCache *FrameCache) CheckCacheInvalidation(newSize common.Size)

func (*FrameCache) CurrentFrame

func (frameCache *FrameCache) CurrentFrame() *ebiten.Image

func (*FrameCache) InvalidateCache

func (frameCache *FrameCache) InvalidateCache()

func (*FrameCache) Render

func (frameCache *FrameCache) Render(screen *ebiten.Image)

func (*FrameCache) RenderFrame

func (frameCache *FrameCache) RenderFrame(frameRenderer FrameRenderer)

func (*FrameCache) SetCurrentScene

func (frameCache *FrameCache) SetCurrentScene(currentScene Scene)

type FrameRenderer

type FrameRenderer func(sceneGraph []ComponentRef, screen *ebiten.Image)

type Pipeline

type Pipeline interface {
	Render(screen *ebiten.Image, window window.Window)
}

func NewDebugPipeline

func NewDebugPipeline() Pipeline

func NewDefaultPipeline

func NewDefaultPipeline() Pipeline

type Scene

type Scene struct {
	Window window.Window
}

func NewScene

func NewScene(win window.Window) Scene

func (*Scene) SceneGraph

func (scene *Scene) SceneGraph() ([]ComponentRef, bool)

Jump to

Keyboard shortcuts

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