geometries

package
v0.0.0-...-e95280a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Create() Builder
	WithID(id *uuid.UUID) Builder
	WithPrimitive(primitive primitives.Primitive) Builder
	WithVertices(vertices []vertices.Vertex) Builder
	WithShader(shader shaders.Shader) Builder
	IsTriangle() Builder
	Now() (Geometry, error)
}

Builder represents the geometry builder

func NewBuilder

func NewBuilder() Builder

NewBuilder creates a new builder instance

type Geometry

type Geometry interface {
	ID() *uuid.UUID
	Type() Type
	Shader() shaders.Shader
	Vertices() []vertices.Vertex
}

Geometry represents a geometry

type Type

type Type interface {
	IsTriangle() bool
}

Type represents geometry type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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