Documentation
¶
Index ¶
- type Dxt
- type Dxt1
- type Dxt5
- func (p *Dxt5) At(x, y int) color.Color
- func (p *Dxt5) Bounds() image.Rectangle
- func (p *Dxt5) ColorModel() color.Model
- func (p *Dxt5) Decompress(packed []byte, withHeader bool) error
- func (p *Dxt5) PixOffset(x, y int) int
- func (p *Dxt5) RGBAAt(x, y int) color.RGBA
- func (p *Dxt5) Set(x, y int, c color.Color)
- type Header
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dxt5 ¶
Dxt5 Dxt5 Image fulfills the standard golang image interface. It also fulfils a slightly more specialised Dxt interface in the package.
func (*Dxt5) At ¶
At Returns generic Color data for a single pixel at location x,y Fulfills the requirements for the image interface
func (*Dxt5) Bounds ¶
Bounds Returns image boundaries Fulfills the requirements for the image interface
func (*Dxt5) ColorModel ¶
ColorModel Returns the color Model for the image (always RGBA) Fulfills the requirements for the image interface
func (*Dxt5) Decompress ¶
Decompress Decompresses and populates the image from packed dxt5 data
func (*Dxt5) PixOffset ¶
PixOffset Returns the offset into image data of an x,y coordinate Fulfills the requirements for the image interface
type Header ¶
type Header struct {
Id uint32
Size uint32
Flags uint32
Height uint32
Width uint32
PitchOrLinearSize uint32
Depth uint32
MipMapCount uint32
Reserved1 [11]uint32
Spf struct {
Size uint32
Flags uint32
FourCC uint32
RGBBitCount uint32
RBitMask uint32
GBitMask uint32
BBitMask uint32
ABitMask uint32
}
Caps uint32
Caps2 uint32
Caps3 uint32
Caps4 uint32
Reserved2 uint32
}