format

package
v0.0.0-...-23544e4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Invalid = iota
	B8G8R8A8
	R8G8B8A8
	A8
	R32F
	DXT1
	DXT3
	DXT5
	D16
	D24S8
	GXT
	PVR_2BPP
	PVR_4BPP
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format uint8

func ValueOf

func ValueOf(str string) (format Format)

func (*Format) Convert

func (f *Format) Convert(img image.Image) (b []byte)

func (Format) MarshalJSON

func (f Format) MarshalJSON() ([]byte, error)

func (Format) SizeInBytes

func (format Format) SizeInBytes() (size int)

func (Format) String

func (format Format) String() (str string)

func (*Format) UnmarshalJSON

func (f *Format) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

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