lines

package
v0.0.0-...-124f97e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: GPL-2.0 Imports: 6 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 object.Property[vec3.T]
	Color   object.Property[color.T]
	// contains filtered or unexported fields
}

func NewBox

func NewBox(args BoxArgs) *Box

type BoxArgs

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

type BoxObject

type BoxObject struct {
	object.Object
	*Box
}

func NewBoxObject

func NewBoxObject(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(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(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[vertex.Mesh]
	// contains filtered or unexported fields
}

func NewWireframe

func NewWireframe(msh vertex.Mesh, clr color.T) *Wireframe

Jump to

Keyboard shortcuts

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