Documentation ¶
Index ¶
- Constants
- type CelChunk
- type CelExtraChunk
- type ChunkHeader
- type ColorProfileChunk
- type ColorProfileICC
- type CompressedImage
- type CompressedImageCel
- type CompressedTilemap
- type CompressedTilemapCel
- type Element
- type ExternalFileEntry
- type ExternalFilesChunk
- type FileHeader
- type FrameHeader
- type GrayscalePixel
- type IndexedPixel
- type LayerChunk
- type LinkedCel
- type MaskChunk
- type NestedPropertyMap
- type OldPacketColor
- type OldPaletteHeader
- type OldPalettePacket
- type PaletteChunk
- type PaletteEntry
- type Point
- type RGBAPixel
- type RawImage
- type RawImageCel
- type Rect
- type Size
- type Slice9Patches
- type SliceChunk
- type SliceKey
- type SlicePivot
- type String
- type Tag
- type TagsChunk
- type TilesetChunk
- type TilesetCompressedData
- type TilesetExternalData
- type UserDataChunk
- type UserDataProperty
- type UserDataPropertyMap
- type UserDataPropertyMaps
- type VectorHeader
Constants ¶
View Source
const ( ChunkTypeOldPalette = 0x0004 ChunkTypeAltPalette = 0x0011 ChunkTypeLayer = 0x2004 ChunkTypeCel = 0x2005 ChunkTypeCelExtra = 0x2006 ChunkTypeColorProfile = 0x2007 ChunkTypeExternalFiles = 0x2008 ChunkTypeMask = 0x2016 ChunkTypeTags = 0x2018 ChunkTypePalette = 0x2019 ChunkTypeUserData = 0x2020 ChunkTypeSlice = 0x2022 ChunkTypeTileset = 0x2023 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CelExtraChunk ¶
type CelExtraChunk struct { Flags uint32 `label:"Flags"` XPosition [4]byte `label:"Precise X position"` YPosition [4]byte `label:"Precise Y position"` Width [4]byte `label:"Width of the cel in the sprite"` Height [4]byte `label:"Height of the cel in the sprite"` // contains filtered or unexported fields }
type ChunkHeader ¶
type ColorProfileChunk ¶
type ColorProfileICC ¶
type CompressedImage ¶
type CompressedImage struct { CompressedImageCel Data []byte `label:"Compressed image data"` }
type CompressedImageCel ¶
type CompressedTilemap ¶
type CompressedTilemap struct { CompressedTilemapCel Data []byte `label:"Compressed tilemap data"` }
type CompressedTilemapCel ¶
type CompressedTilemapCel struct { Width uint16 `label:"Width in number of tiles"` Height uint16 `label:"Height in number of tiles"` BitsPerTile uint16 `label:"Bits per tile (at the moment it's always 32-bit per tile)"` TileIDMask uint32 `label:"Bitmask for tile ID"` XFlipMask uint32 `label:"Bitmask for X flip"` YFlipMask uint32 `label:"Bitmask for Y flip"` DFlipMask uint32 `label:"Bitmask for diagonal flip"` // contains filtered or unexported fields }
type ExternalFileEntry ¶
type ExternalFilesChunk ¶
type ExternalFilesChunk struct { Entries uint32 `label:"Number of entries"` // contains filtered or unexported fields }
type FileHeader ¶
type FileHeader struct { FileSize uint32 `label:"File Size"` Magic uint16 `label:"Magic Number"` Frames uint16 `label:"Number of Frames"` Width uint16 `label:"Width in pixels"` Height uint16 `label:"Height in pixels"` ColorDepth uint16 `label:"Color depth (bits per pixel)"` Flags uint32 `label:"Flags"` Speed uint16 `label:"Speed (deprecated)"` PaletteIndex byte `label:"Palette Entry Index"` NumberOfColors uint16 `label:"Number of colors"` PixelWidth byte `label:"Pixel Width"` PixelHeight byte `label:"Pixel Height"` XGridPosition int16 `label:"X Grid Position"` YGridPosition int16 `label:"Y Grid Position"` GridWidth uint16 `label:"Grid Width"` GridHeight uint16 `label:"Grid Height"` // contains filtered or unexported fields }
type FrameHeader ¶
type GrayscalePixel ¶
type GrayscalePixel [2]byte
type IndexedPixel ¶
type IndexedPixel byte
type LayerChunk ¶
type LayerChunk struct { Flags uint16 `label:"Flags"` Type uint16 `label:"Layer Type"` ChildLevel uint16 `label:"Child Level"` DefaultWidth uint16 `label:"Default Layer Width"` DefaultHeight uint16 `label:"Default Layer Height"` BlendMode uint16 `label:"Blend Mode"` Opacity byte `label:"Opacity"` // contains filtered or unexported fields }
type NestedPropertyMap ¶
type OldPacketColor ¶
type OldPaletteHeader ¶
type OldPaletteHeader struct {
NumberOfPackets uint16 `label:"Number of Packets"`
}
type OldPalettePacket ¶
type PaletteChunk ¶
type PaletteEntry ¶
type RawImage ¶
type RawImage[T IndexedPixel | GrayscalePixel | RGBAPixel] struct { RawImageCel Data []T `label:"Pixel data"` }
type RawImageCel ¶
type Slice9Patches ¶
type SliceChunk ¶
type SlicePivot ¶
type TagsChunk ¶
type TagsChunk struct { Tags uint16 `label:"Number of tags"` // contains filtered or unexported fields }
type TilesetChunk ¶
type TilesetCompressedData ¶
type TilesetExternalData ¶
type UserDataChunk ¶
type UserDataChunk struct {
Flags uint32 `label:"Flags"`
}
type UserDataProperty ¶
type UserDataPropertyMap ¶
type UserDataPropertyMaps ¶
type VectorHeader ¶
Click to show internal directories.
Click to hide internal directories.