vector

package
v0.0.0-...-298bdd4 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BoxRenderComponentType = ecs.NewComponentType[*BoxRenderComponent]()

Functions

func BoxRenderer

func BoxRenderer(world *ecs.World, entity ecs.Entity) (rendering.RenderingTask, int, error)

Types

type BoxRenderComponent

type BoxRenderComponent struct {
	Min         geometry.Point64
	Max         geometry.Point64
	IsLocal     bool
	DrawBorder  bool
	DrawFill    bool
	BorderColor color.RGBA
	FillColor   color.RGBA
	BorderWidth float32
	ZOrder      int
}

func NewBoxRenderComponent

func NewBoxRenderComponent(zOrder int) *BoxRenderComponent

func (*BoxRenderComponent) Type

func (brc *BoxRenderComponent) Type() ecs.ComponentType

Jump to

Keyboard shortcuts

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