d2d

package
v0.0.0-...-e0df81a Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Material2D

type Material2D struct {
	Texture load.Texture
	Region  vec4.Type

	Color   vec3.Type
	Opacity float32

	Z float32
}

func NewMaterial2D

func NewMaterial2D(texture load.Texture, region vec4.Type, color vec3.Type, opacity, z float32) Material2D

type Transform2D

type Transform2D struct {
	Position, Scale vec2.Type
	Rotation        float32
}

func NewTransform2D

func NewTransform2D(pos, scale vec2.Type, rot float32) Transform2D

func (*Transform2D) Translate

func (t *Transform2D) Translate(add vec2.Type)

Jump to

Keyboard shortcuts

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