drawable

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConstantFlag

type ConstantFlag struct {
	BlendAdditive       bool
	BlendMultiplicative bool
	IsDoubleSided       bool
	IsInvertedMask      bool
}

func ParseConstantFlag

func ParseConstantFlag(flag uint8) (c ConstantFlag)

type Drawable

type Drawable struct {
	Id              string
	Texture         int32
	VertexPositions []Vector2
	VertexUvs       []Vector2
	VertexIndices   []uint16
	ConstantFlag    ConstantFlag
	DynamicFlag     DynamicFlag
	Opacity         float32
	Masks           []int32
}

type DynamicFlag

type DynamicFlag struct {
	IsVisible                bool
	VisibilityDidChange      bool
	OpacityDidChange         bool
	DrawOrderDidChange       bool
	RenderOrderDidChange     bool
	VertexPositionsDidChange bool
	BlendColorDidChange      bool
}

func ParseDynamicFlag

func ParseDynamicFlag(flag uint8) (d DynamicFlag)

type Vector2

type Vector2 struct {
	X float32
	Y float32
}

Jump to

Keyboard shortcuts

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