texture

package
v0.0.0-...-e791307 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format uint32
const (
	Luminance8 Format = iota
	Luminance32F
	Rgba8
	Rgba32F
)

type Texture

type Texture struct {
	Format Format

	Width  uint32
	Height uint32

	Data []byte
}

A texture image and its metadata.

func New

func New(res *asset.Resource) (*Texture, error)

Create a new texture from a Resource.

Jump to

Keyboard shortcuts

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