Isle
Loading...
Searching...
No Matches
legotexturepresenter.h
Go to the documentation of this file.
1#ifndef LEGOTEXTUREPRESENTER_H
2#define LEGOTEXTUREPRESENTER_H
3
5#include "mxmediapresenter.h"
6
7// VTABLE: LEGO1 0x100d4d90
8// SIZE 0x54
9
23public:
27 LegoTexturePresenter() : m_textures(NULL) {}
28
32 ~LegoTexturePresenter() override;
33
38 static const char* HandlerClassName()
39 {
40 // STRING: LEGO1 0x100f0664
41 return "LegoTexturePresenter";
42 }
43
48 const char* ClassName() const override // vtable+0x0c
49 {
50 return HandlerClassName();
51 }
52
58 MxBool IsA(const char* p_name) const override // vtable+0x10
59 {
60 return !strcmp(p_name, LegoTexturePresenter::ClassName()) || MxMediaPresenter::IsA(p_name);
61 }
62
66 void DoneTickle() override; // vtable+0x2c
67
72 MxResult AddToManager() override; // vtable+0x34
73
78 MxResult PutData() override; // vtable+0x4c
79
80 // SYNTHETIC: LEGO1 0x1000cf40
81 // LegoTexturePresenter::`scalar deleting destructor'
82
93 MxResult Read(MxDSChunk& p_chunk);
94
103 MxResult Store();
104
105private:
109 LegoNamedTextureList* m_textures; // 0x50
110};
111
112#endif // LEGOTEXTUREPRESENTER_H
[AI] A list class that manages a collection of pointers to LegoNamedTexture objects.
[AI] Manages the loading, storage, and management of named textures for the LEGO Island engine.
~LegoTexturePresenter() override
[AI] Destructor: Unregisters the presenter from the VideoManager and cleans up owned texture data.
MxBool IsA(const char *p_name) const override
[AI] Determines if the presenter is or inherits from a given class name.
MxResult Read(MxDSChunk &p_chunk)
[AI] Loads and parses one or more texture objects from a provided serialized data chunk.
MxResult Store()
[AI] Transfers all loaded textures to the global texture container and initializes their info structu...
void DoneTickle() override
[AI] Updates this presenter when the tickle state reaches "Done".
static const char * HandlerClassName()
[AI] Returns the handler class name used for presenter name dispatching and type identification.
LegoTexturePresenter()
[AI] Constructs a LegoTexturePresenter and initializes its texture list pointer to NULL.
MxResult PutData() override
[AI] Loads texture data from the current data chunk, registers these textures with the global texture...
MxResult AddToManager() override
[AI] Registers this presenter with the VideoManager, making it available for video/texture updates an...
const char * ClassName() const override
[AI] Returns the dynamic class name for runtime type identification.
[AI] Represents a chunk of data extracted from a stream (typically from a Mindscape/Mx SI file or str...
Definition: mxdschunk.h:38
[AI] Abstract base class for presenters that play back continuous media streams such as video or audi...
MxBool IsA(const char *p_name) const override
[AI] Returns TRUE if the provided class name matches this class or any of its parents.
#define override
Definition: compat.h:21
#define NULL
[AI] Null pointer value (C/C++ semantics).
Definition: legotypes.h:26
MxU8 MxBool
[AI]
Definition: mxtypes.h:124
MxLong MxResult
[AI]
Definition: mxtypes.h:106