geometry

package
v0.0.0-...-3eebe10 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OnePixelSize = 1.0 / 35.0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Plane

type Plane struct {
	*graphic.Graphic

	Geometry *graphic.Geometry
	Texture  *graphic.Texture

	Width, Height float32
	// contains filtered or unexported fields
}

func NewPlane

func NewPlane(width, height float32, texture *graphic.Texture) *Plane

func (*Plane) SetBounds

func (s *Plane) SetBounds(width, height float32)

func (*Plane) SetColors

func (s *Plane) SetColors(colors []float32)

func (*Plane) SetTexture

func (s *Plane) SetTexture(text *graphic.Texture)

Jump to

Keyboard shortcuts

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