Documentation ¶
Index ¶
- Constants
- func CalcRuns(buffer io.Reader, maxVal int) (int, int)
- func TilesToPixels(width int, height int, tiles []Tile) [][]CPixel
- type CPixel
- type PackedPaletteEncoding
- type PrleEncoding
- type RawEncoding
- type RleEncoding
- type SolidEncoding
- type SubType
- type Subencoding
- type Tile
- type TileConfig
- type ZlibStream
Constants ¶
View Source
const ( // TileWidth is the expected, standard width of a tile TileWidth int = 64 // TileHeight is the expected, standard height of a tile TileHeight = 64 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PackedPaletteEncoding ¶
type PackedPaletteEncoding struct{}
func (PackedPaletteEncoding) String ¶
func (PackedPaletteEncoding) String() string
func (PackedPaletteEncoding) SubType ¶
func (PackedPaletteEncoding) SubType() SubType
type PrleEncoding ¶
type PrleEncoding struct{}
func (PrleEncoding) String ¶
func (PrleEncoding) String() string
func (PrleEncoding) SubType ¶
func (PrleEncoding) SubType() SubType
type RawEncoding ¶
type RawEncoding struct{}
func (RawEncoding) String ¶
func (RawEncoding) String() string
func (RawEncoding) SubType ¶
func (RawEncoding) SubType() SubType
type RleEncoding ¶
type RleEncoding struct{}
func (RleEncoding) String ¶
func (RleEncoding) String() string
func (RleEncoding) SubType ¶
func (RleEncoding) SubType() SubType
type SolidEncoding ¶
type SolidEncoding struct{}
func (SolidEncoding) String ¶
func (SolidEncoding) String() string
func (SolidEncoding) SubType ¶
func (SolidEncoding) SubType() SubType
type Subencoding ¶
type Subencoding interface { SubType() SubType Read(buf io.Reader, t *Tile) (int, error) String() string }
Subencoding defines a subencoding structure
func GetSubencoding ¶
func GetSubencoding(b byte) (encoding Subencoding, err error)
GetSubencoding returns the sub-encoding of a ZRLE data stream
type Tile ¶
Tile defines a tile
func CreateTiles ¶
CreateTiles creates a grid of tiles based on a width and height
func (Tile) ToPixelGrid ¶
ToPixelGrid converts a tile into a CPIXEL grid
type TileConfig ¶
type TileConfig struct {
// contains filtered or unexported fields
}
TileConfig defines the underlying structure of all tiles
type ZlibStream ¶
type ZlibStream struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.