lines

package
v0.0.0-...-8e5a076 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = &DebugLines{}

Functions

This section is empty.

Types

type Args

type Args struct {
	Lines []Line
	// contains filtered or unexported fields
}

type Box

type Box struct {
	*mesh.Static
	Extents Property[vec3.T]
	Color   Property[color.T]
	// contains filtered or unexported fields
}

func NewBox

func NewBox(pool Pool, args BoxArgs) *Box

type BoxArgs

type BoxArgs struct {
	Extents vec3.T
	Color   color.T
}

type BoxObject

type BoxObject struct {
	Object
	Box *Box
}

func NewBoxObject

func NewBoxObject(pool Pool, args BoxArgs) *BoxObject

type DebugLines

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

func (*DebugLines) Add

func (li *DebugLines) Add(from, to vec3.T, clr color.T)

func (*DebugLines) Fetch

func (li *DebugLines) Fetch() mesh.Mesh

func (*DebugLines) Setup

func (li *DebugLines) Setup(frames int)

type Line

type Line struct {
	Start vec3.T
	End   vec3.T
	Color color.T
}

func L

func L(start, end vec3.T, color color.T) Line

L creates a new line segment

type Lines

type Lines struct {
	*mesh.Static
	Args
}

func New

func New(pool object.Pool, args Args) *Lines

func (*Lines) Add

func (li *Lines) Add(from, to vec3.T, clr color.T)

func (*Lines) Clear

func (li *Lines) Clear()

func (*Lines) Count

func (li *Lines) Count() int

func (*Lines) Refresh

func (li *Lines) Refresh()

type Sphere

type Sphere struct {
	*mesh.Static
	Radius object.Property[float32]
	Color  object.Property[color.T]
	// contains filtered or unexported fields
}

func NewSphere

func NewSphere(pool object.Pool, args SphereArgs) *Sphere

func (*Sphere) SetAxisColors

func (b *Sphere) SetAxisColors(x color.T, y color.T, z color.T)

type SphereArgs

type SphereArgs struct {
	Radius float32
	Color  color.T
}

type Wireframe

type Wireframe struct {
	*mesh.Static
	Color  object.Property[color.T]
	Source object.Property[assets.Mesh]
	// contains filtered or unexported fields
}

func NewWireframe

func NewWireframe(pool object.Pool, msh assets.Mesh, clr color.T) *Wireframe

Jump to

Keyboard shortcuts

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