Isle
|
[AI] Associates a named string with a LegoTexture instance, allowing textures to be referenced symbolically (by name). More...
#include <legonamedtexture.h>
Public Member Functions | |
LegoNamedTexture (const char *p_name, LegoTexture *p_texture) | |
[AI] Constructor. More... | |
~LegoNamedTexture () | |
[AI] Destructor. More... | |
const MxString * | GetName () const |
[AI] Returns a pointer to the name string associated with this texture. More... | |
LegoTexture * | GetTexture () |
[AI] Returns a pointer to the owned LegoTexture instance. More... | |
[AI] Associates a named string with a LegoTexture instance, allowing textures to be referenced symbolically (by name).
This class owns the texture pointer and automatically deletes it in its destructor. It is useful for managing named texture resources, for example for lookup and resource management.
[AI]
Definition at line 15 of file legonamedtexture.h.
|
inline |
[AI] Constructor.
Creates a LegoNamedTexture pairing a name with a texture.
p_name | The symbolic name to associate with the texture. [AI] |
p_texture | Pointer to the LegoTexture to own and manage. [AI] |
Definition at line 22 of file legonamedtexture.h.
|
inline |
[AI] Destructor.
Deletes the associated LegoTexture automatically to manage memory.
[AI]
Definition at line 32 of file legonamedtexture.h.
|
inline |
[AI] Returns a pointer to the name string associated with this texture.
Definition at line 38 of file legonamedtexture.h.
|
inline |
[AI] Returns a pointer to the owned LegoTexture instance.
Definition at line 44 of file legonamedtexture.h.