Isle
Loading...
Searching...
No Matches
legonamedtexture.h
Go to the documentation of this file.
1#ifndef LEGONAMEDTEXTURE_H
2#define LEGONAMEDTEXTURE_H
3
4#include "misc/legotexture.h"
5#include "mxstring.h"
6
7// SIZE 0x14
8
16public:
22 LegoNamedTexture(const char* p_name, LegoTexture* p_texture)
23 {
24 m_name = p_name;
25 m_texture = p_texture;
26 }
27
32 ~LegoNamedTexture() { delete m_texture; }
33
38 const MxString* GetName() const { return &m_name; }
39
44 LegoTexture* GetTexture() { return m_texture; }
45
46private:
47 MxString m_name;
48 LegoTexture* m_texture;
49};
50
51#endif // LEGONAMEDTEXTURE_H
[AI] Associates a named string with a LegoTexture instance, allowing textures to be referenced symbol...
LegoNamedTexture(const char *p_name, LegoTexture *p_texture)
[AI] Constructor.
~LegoNamedTexture()
[AI] Destructor.
LegoTexture * GetTexture()
[AI] Returns a pointer to the owned LegoTexture instance.
const MxString * GetName() const
[AI] Returns a pointer to the name string associated with this texture.
[AI] Represents a texture which wraps a LegoImage and provides loading/saving functionality.
Definition: legotexture.h:15
Mindscape custom string class for managing dynamic C-strings within the game engine.
Definition: mxstring.h:14