shapes

package
v0.0.0-...-4142f2f Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShapesShaderCode string

Functions

This section is empty.

Types

type Polygon

type Polygon struct {
	*wgpu.SwapChainDescriptor

	*common.Transform
	// contains filtered or unexported fields
}

func NewPolygon

func NewPolygon(surface common.Surface, device *wgpu.Device, scd *wgpu.SwapChainDescriptor, rq renderQueue, vertices []common.Vertex) *Polygon

func (*Polygon) Dispose

func (p *Polygon) Dispose()

Dispose releases any resources used by the Triangle.

func (*Polygon) Hide

func (p *Polygon) Hide()

func (*Polygon) IsDisposed

func (p *Polygon) IsDisposed() bool

func (*Polygon) Move

func (p *Polygon) Move(destX, destY float32)

func (*Polygon) Render

func (p *Polygon) Render()

func (*Polygon) RenderPass

func (p *Polygon) RenderPass(encoder *wgpu.RenderPassEncoder)

func (*Polygon) SetColor

func (p *Polygon) SetColor(c color.Color)

Jump to

Keyboard shortcuts

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