quads

package
v0.0.0-...-592db01 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoxCollider2D

type BoxCollider2D struct {
	Quad

	W float32
	H float32
}

func NewBoxCollider2D

func NewBoxCollider2D(w, h float32) *BoxCollider2D

func (*BoxCollider2D) BotLeft

func (b *BoxCollider2D) BotLeft() *gglm.Vec2

func (*BoxCollider2D) TopRight

func (b *BoxCollider2D) TopRight() *gglm.Vec2

type Quad

type Quad struct {
	entity.Entity

	Mesh *meshes.Mesh
	Tex  assets.Texture
}

func NewQuad

func NewQuad(spriteName, spritePath string) (*Quad, error)

Jump to

Keyboard shortcuts

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