Versions in this module Expand all Collapse all v1 v1.0.1 Jul 30, 2026 v1.0.0 Jul 30, 2026 Changes in this version + type Arrow struct + Colour color.RGBA + EndPosition mgl64.Vec3 + Entity *world.EntityHandle + HeadLength float64 + HeadRadius float64 + HeadSegments int + Position mgl64.Vec3 + func (s *Arrow) ShapeID() int + type Box struct + Bounds mgl64.Vec3 + Colour color.RGBA + Entity *world.EntityHandle + Position mgl64.Vec3 + Scale float64 + func (s *Box) ShapeID() int + type Circle struct + Colour color.RGBA + Entity *world.EntityHandle + Position mgl64.Vec3 + Scale float64 + Segments int + func (s *Circle) ShapeID() int + type Cone struct + Colour color.RGBA + Entity *world.EntityHandle + Height float64 + Position mgl64.Vec3 + Radii mgl64.Vec2 + Scale float64 + Segments int + func (s *Cone) ShapeID() int + type Cylinder struct + BaseRadius mgl64.Vec2 + Colour color.RGBA + Entity *world.EntityHandle + Height float64 + Position mgl64.Vec3 + Scale float64 + Segments int + TopRadius mgl64.Vec2 + func (s *Cylinder) ShapeID() int + type Ellipsoid struct + Colour color.RGBA + Entity *world.EntityHandle + Position mgl64.Vec3 + Radii mgl64.Vec3 + Scale float64 + SegmentsPerAxis int + func (s *Ellipsoid) ShapeID() int + type Line struct + Colour color.RGBA + EndPosition mgl64.Vec3 + Entity *world.EntityHandle + Position mgl64.Vec3 + func (s *Line) ShapeID() int + type Pyramid struct + Colour color.RGBA + Depth float64 + Entity *world.EntityHandle + Height float64 + Position mgl64.Vec3 + Scale float64 + Width float64 + func (s *Pyramid) ShapeID() int + type Renderer interface + AddDebugShape func(shape Shape) + RemoveAllDebugShapes func() + RemoveDebugShape func(shape Shape) + VisibleDebugShapes func() []Shape + type Shape interface + ShapeID func() int + type Sphere struct + Colour color.RGBA + Entity *world.EntityHandle + Position mgl64.Vec3 + Scale float64 + Segments int + func (s *Sphere) ShapeID() int + type Text struct + BackgroundColour color.RGBA + Colour color.RGBA + DisableDepthTest bool + Entity *world.EntityHandle + HideBackface bool + HideBackfaceText bool + HideBackground bool + LockRotation bool + Position mgl64.Vec3 + Rotation mgl64.Vec3 + Scale float64 + Text string + func (s *Text) ShapeID() int