Isle
Loading...
Searching...
No Matches
legotexture.h
Go to the documentation of this file.
1#ifndef __LEGOTEXTURE_H
2#define __LEGOTEXTURE_H
3
4#include "legotypes.h"
5
6class LegoImage;
7class LegoStorage;
8
16public:
19
22
25 LegoImage* GetImage() { return m_image; }
26
29 void SetImage(LegoImage* p_image) { m_image = p_image; }
30
36 LegoResult Read(LegoStorage* p_storage, LegoU32 p_square);
37
42 LegoResult Write(LegoStorage* p_storage);
43
44protected:
46};
47
48#endif // __LEGOTEXTURE_H
[AI] Class representing an 8-bit palettized image with up to 256 palette entries and indexed pixel da...
Definition: legoimage.h:68
Abstract base class providing an interface for file-like storage with binary and text read/write oper...
Definition: legostorage.h:16
[AI] Represents a texture which wraps a LegoImage and provides loading/saving functionality.
Definition: legotexture.h:15
LegoResult Read(LegoStorage *p_storage, LegoU32 p_square)
[AI] Reads texture data from a LegoStorage.
Definition: legotexture.cpp:22
LegoImage * GetImage()
[AI] Returns the associated image used by this texture.
Definition: legotexture.h:25
LegoTexture()
[AI] Constructs a LegoTexture object and allocates a new LegoImage.
Definition: legotexture.cpp:10
LegoImage * m_image
[AI] Pointer to the image data associated with this texture. Owned by the LegoTexture instance.
Definition: legotexture.h:45
LegoResult Write(LegoStorage *p_storage)
[AI] Writes texture data to a LegoStorage.
Definition: legotexture.cpp:28
~LegoTexture()
[AI] Destructor. Frees the owned LegoImage.
Definition: legotexture.cpp:16
void SetImage(LegoImage *p_image)
[AI] Sets the associated image for this texture.
Definition: legotexture.h:29
[AI] Defines basic fixed-width data types and platform-neutral constants for LEGO Island codebase.
unsigned long LegoU32
[AI] Unsigned 32-bit integer type for cross-platform compatibility.
Definition: legotypes.h:71
LegoS32 LegoResult
[AI] Function result type (return code): typically SUCCESS (0) or FAILURE (-1).
Definition: legotypes.h:101