[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.
LegoImage * GetImage()
[AI] Returns the associated image used by this texture.
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.
void SetImage(LegoImage *p_image)
[AI] Sets the associated image for this texture.