batch

package
v0.0.0-...-0518d83 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QuadBatch

type QuadBatch struct {
	Projection mgl32.Mat4
	// contains filtered or unexported fields
}

func NewQuadBatch

func NewQuadBatch() *QuadBatch

func NewQuadBatchPersistent

func NewQuadBatchPersistent() *QuadBatch

func NewQuadBatchSize

func NewQuadBatchSize(maxSprites int) *QuadBatch

func NewQuadBatchSizePersistent

func NewQuadBatchSizePersistent(maxSprites int) *QuadBatch

func (*QuadBatch) Begin

func (batch *QuadBatch) Begin()

func (*QuadBatch) DrawStObject

func (batch *QuadBatch) DrawStObject(position, origin, scale vector.Vector2d, flipX, flipY bool, rotation float64, color color2.Color, additive bool, texture texture.TextureRegion)

func (*QuadBatch) DrawTexture

func (batch *QuadBatch) DrawTexture(texture texture.TextureRegion)

func (*QuadBatch) DrawUnit

func (batch *QuadBatch) DrawUnit(texture texture.TextureRegion)

func (*QuadBatch) End

func (batch *QuadBatch) End()

func (*QuadBatch) Flush

func (batch *QuadBatch) Flush()

func (*QuadBatch) GetRotation

func (batch *QuadBatch) GetRotation() float64

func (*QuadBatch) GetScale

func (batch *QuadBatch) GetScale() vector.Vector2d

func (*QuadBatch) GetSubScale

func (batch *QuadBatch) GetSubScale() vector.Vector2d

func (*QuadBatch) ResetTransform

func (batch *QuadBatch) ResetTransform()

func (*QuadBatch) SetAdditive

func (batch *QuadBatch) SetAdditive(additive bool)

func (*QuadBatch) SetCamera

func (batch *QuadBatch) SetCamera(camera mgl32.Mat4)

func (*QuadBatch) SetColor

func (batch *QuadBatch) SetColor(r, g, b, a float64)

func (*QuadBatch) SetColor32

func (batch *QuadBatch) SetColor32(r, g, b, a float32)

func (*QuadBatch) SetColorM

func (batch *QuadBatch) SetColorM(color color2.Color)

func (*QuadBatch) SetRotation

func (batch *QuadBatch) SetRotation(rad float64)

func (*QuadBatch) SetScale

func (batch *QuadBatch) SetScale(scaleX, scaleY float64)

func (*QuadBatch) SetSubScale

func (batch *QuadBatch) SetSubScale(scaleX, scaleY float64)

func (*QuadBatch) SetTranslation

func (batch *QuadBatch) SetTranslation(vec vector.Vector2d)

Jump to

Keyboard shortcuts

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