texture

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode added in v0.3.0

func Decode(f *stingray.File, readMipMaps bool) (*dds.DDS, error)

Decode DDS texture with Stingray wrapper.

Types

type Info added in v0.3.0

type Info struct {
	HeaderOffset uint32
	Sections     []StreamableSection
}

func DecodeInfo added in v0.3.0

func DecodeInfo(r io.Reader) (*Info, error)

Decode Stingray's texture info header wrapped around the DDS file. r must be from a file of type stingray.DataMain.

type StreamableSection

type StreamableSection struct {
	Offset uint32
	Size   uint32
	Width  uint16
	Height uint16
}

Jump to

Keyboard shortcuts

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