LegoResult Read(LegoStorage *p_storage, LegoU32 p_square)
[AI] Reads the full image from the storage source, including width, height, count,...
LegoResult Write(LegoStorage *p_storage)
[AI] Writes the full image to the given storage: width, height, count, palette, pixel indices.
[AI] Represents a texture which wraps a LegoImage and provides loading/saving functionality.
LegoResult Read(LegoStorage *p_storage, LegoU32 p_square)
[AI] Reads texture data from a LegoStorage.
LegoTexture()
[AI] Constructs a LegoTexture object and allocates a new LegoImage.
LegoImage * m_image
[AI] Pointer to the image data associated with this texture. Owned by the LegoTexture instance.
LegoResult Write(LegoStorage *p_storage)
[AI] Writes texture data to a LegoStorage.
~LegoTexture()
[AI] Destructor. Frees the owned LegoImage.