blp

package
v0.0.0-...-6888f03 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodePlainBLP

func EncodePlainBLP(img image.Image) ([]byte, error)

Types

type BGRA

type BGRA struct {
	Pix    []byte
	Rect   image.Rectangle
	Stride int
}

func NewBGRA

func NewBGRA(r image.Rectangle) *BGRA

NewBGRA returns a new BGRA image with the given bounds.

func (*BGRA) At

func (i *BGRA) At(x, y int) color.Color

func (*BGRA) Bounds

func (i *BGRA) Bounds() image.Rectangle

func (*BGRA) ColorModel

func (i *BGRA) ColorModel() color.Model

func (*BGRA) PixOffset

func (i *BGRA) PixOffset(x, y int) int

func (*BGRA) Set

func (i *BGRA) Set(x, y int, c color.Color)

func (*BGRA) SetRGBA

func (i *BGRA) SetRGBA(x, y int, c color.RGBA)

type BGRAPixel

type BGRAPixel struct {
	// contains filtered or unexported fields
}

type BLPCompressionType

type BLPCompressionType uint8
const (
	BLPCompressionTypePalettized BLPCompressionType
	BLPCompressionTypeDXT
	BLPCompressionTypePlain
)

type BLPHeader

type BLPHeader struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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