layer

package
v0.0.0-...-2de55c8 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layer

type Layer interface {
	OnAttach()
	OnDetach()
	OnUpdate()
	OnEvent(event.IEvent)
	GetLayerName() string
}

I really can't decide if this should be implemented as an interface or struct. Interface feels right for now, as implementing as a struct is a little awkward. TODO: Decide

type LayerStack

type LayerStack struct {
	Layers []Layer
}

func (*LayerStack) PopLayer

func (ls *LayerStack) PopLayer(layer Layer)

func (*LayerStack) PopOverlay

func (ls *LayerStack) PopOverlay(layer Layer)

func (*LayerStack) PushLayer

func (ls *LayerStack) PushLayer(layer Layer)

func (*LayerStack) PushOverlay

func (ls *LayerStack) PushOverlay(layer Layer)

Jump to

Keyboard shortcuts

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