texture

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PropertiesSize specifies, in bytes, the length a properties structure has.
	PropertiesSize = 11
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Properties

type Properties struct {
	DistanceModifier int16
	Climbable        byte

	TransparencyControl TransparencyControl

	AnimationGroup byte
	AnimationIndex byte
	// contains filtered or unexported fields
}

Properties describe additional information about a texture.

type PropertiesList

type PropertiesList []Properties

PropertiesList implements serial.Codable to serialize a set of texture properties.

func (PropertiesList) Code

func (list PropertiesList) Code(coder serial.Coder)

Code serializes the list with the provided coder.

type TransparencyControl

type TransparencyControl byte

TransparencyControl describes how a texture should be displayed.

const (
	// TransparencyControlRegular describes a typical texture.
	TransparencyControlRegular TransparencyControl = 0x00
	// TransparencyControlSpace marks space texture, which ignores bitmap data.
	TransparencyControlSpace TransparencyControl = 0x01
	// TransparencyControlSpaceBackground draws space for palette index 0x00.
	TransparencyControlSpaceBackground TransparencyControl = 0x02
)

func TransparencyControls

func TransparencyControls() []TransparencyControl

TransparencyControls returns all known transparency control values.

func (TransparencyControl) String

func (ctrl TransparencyControl) String() string

Jump to

Keyboard shortcuts

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