Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPalette ¶
DefaultPalette is a palette used for tile decoding.
func PlaceholderPalette ¶
PlaceholderPalette is a placeholder palette used by PCX sprite decoder for different materials. It is set mostly to allow encoding PCX images directly to a pair of PNG images. Engine doesn't use this palette and instead sets its own palette based on the object's materials.
Types ¶
type Image ¶
type Image struct { image.Image ImageMeta // Material stores a color multiplier as a paletted image. Indexes in the palette are usually interpreted as materials. // Palette index value 0 indicates no material, meaning that color can be read from NRGBA directly. // All other palette indexes are moved by +1, comparing to the ones passed expected by the engine. Material *image.Paletted }
Click to show internal directories.
Click to hide internal directories.