debug

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arrow

type Arrow struct {
	Colour color.RGBA

	Position mgl64.Vec3

	EndPosition mgl64.Vec3

	HeadLength float64

	HeadRadius float64

	HeadSegments int

	Entity *world.EntityHandle
	// contains filtered or unexported fields
}

func (*Arrow) ShapeID

func (s *Arrow) ShapeID() int

type Box

type Box struct {
	Colour color.RGBA

	Position mgl64.Vec3

	Scale float64

	Bounds mgl64.Vec3

	Entity *world.EntityHandle
	// contains filtered or unexported fields
}

func (*Box) ShapeID

func (s *Box) ShapeID() int

type Circle

type Circle struct {
	Colour color.RGBA

	Position mgl64.Vec3

	Scale float64

	Segments int

	Entity *world.EntityHandle
	// contains filtered or unexported fields
}

func (*Circle) ShapeID

func (s *Circle) ShapeID() int

type Cone

type Cone struct {
	Colour color.RGBA

	Position mgl64.Vec3

	Scale float64

	Radii mgl64.Vec2

	Height float64

	Segments int

	Entity *world.EntityHandle
	// contains filtered or unexported fields
}

func (*Cone) ShapeID

func (s *Cone) ShapeID() int

type Cylinder

type Cylinder struct {
	Colour color.RGBA

	Position mgl64.Vec3

	Scale float64

	BaseRadius mgl64.Vec2

	TopRadius mgl64.Vec2

	Height float64

	Segments int

	Entity *world.EntityHandle
	// contains filtered or unexported fields
}

func (*Cylinder) ShapeID

func (s *Cylinder) ShapeID() int

type Ellipsoid

type Ellipsoid struct {
	Colour color.RGBA

	Position mgl64.Vec3

	Scale float64

	Radii mgl64.Vec3

	SegmentsPerAxis int

	Entity *world.EntityHandle
	// contains filtered or unexported fields
}

func (*Ellipsoid) ShapeID

func (s *Ellipsoid) ShapeID() int

type Line

type Line struct {
	Colour color.RGBA

	Position mgl64.Vec3

	EndPosition mgl64.Vec3

	Entity *world.EntityHandle
	// contains filtered or unexported fields
}

func (*Line) ShapeID

func (s *Line) ShapeID() int

type Pyramid

type Pyramid struct {
	Colour color.RGBA

	Position mgl64.Vec3

	Scale float64

	Width float64

	Depth float64

	Height float64

	Entity *world.EntityHandle
	// contains filtered or unexported fields
}

func (*Pyramid) ShapeID

func (s *Pyramid) ShapeID() int

type Renderer

type Renderer interface {
	AddDebugShape(shape Shape)

	RemoveDebugShape(shape Shape)

	VisibleDebugShapes() []Shape

	RemoveAllDebugShapes()
}

type Shape

type Shape interface {
	ShapeID() int
}

type Sphere

type Sphere struct {
	Colour color.RGBA

	Position mgl64.Vec3

	Scale float64

	Segments int

	Entity *world.EntityHandle
	// contains filtered or unexported fields
}

func (*Sphere) ShapeID

func (s *Sphere) ShapeID() int

type Text

type Text struct {
	Colour color.RGBA

	BackgroundColour color.RGBA

	HideBackground bool

	Position mgl64.Vec3

	Rotation mgl64.Vec3

	Scale float64

	Text string

	LockRotation bool

	DisableDepthTest bool

	HideBackface bool

	HideBackfaceText bool

	Entity *world.EntityHandle
	// contains filtered or unexported fields
}

func (*Text) ShapeID

func (s *Text) ShapeID() int

Jump to

Keyboard shortcuts

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