Isle
Loading...
Searching...
No Matches
legopalettepresenter.h
Go to the documentation of this file.
1#ifndef LEGOPALETTEPRESENTER_H
2#define LEGOPALETTEPRESENTER_H
3
4#include "decomp.h"
5#include "mxvideopresenter.h"
6
7class MxPalette;
8
15public:
20
24 ~LegoPalettePresenter() override; // vtable+0x00
25
30 static const char* HandlerClassName()
31 {
32 // STRING: LEGO1 0x100f061c
33 return "LegoPalettePresenter";
34 }
35
40 const char* ClassName() const override // vtable+0x0c
41 {
42 return HandlerClassName();
43 }
44
50 MxBool IsA(const char* p_name) const override // vtable+0x10
51 {
52 return !strcmp(p_name, ClassName()) || MxVideoPresenter::IsA(p_name);
53 }
54
59 void ReadyTickle() override; // vtable+0x18
60
64 void Destroy() override; // vtable+0x38
65
73
74 // SYNTHETIC: LEGO1 0x1007a050
75 // LegoPalettePresenter::`scalar deleting destructor'
76
77private:
81 void Init();
82
88 void Destroy(MxBool p_fromDestructor);
89
90 MxPalette* m_palette;
91};
92
93#endif // LEGOPALETTEPRESENTER_H
Class responsible for presenting and handling palettes for video sequences that require palette manag...
const char * ClassName() const override
Gets the presenter class name as used for RTTI (run-time type identification) and class dispatch.
MxResult ParsePalette(MxStreamChunk *p_chunk)
Parses a palette from a chunk in the streaming media resource.
void ReadyTickle() override
Called by the tickle manager when presenter is in Ready state; handles next palette chunk if availabl...
MxBool IsA(const char *p_name) const override
Implements run-time type identification matching for this presenter.
void Destroy() override
Handles destruction and cleanup of palette presenter resources (public destroy invocation).
static const char * HandlerClassName()
Provides the unique class handler name required for presenter dispatching.
~LegoPalettePresenter() override
Cleans up and releases owned resources, including any loaded palette.
LegoPalettePresenter()
Constructs the LegoPalettePresenter and initializes its internal state.
[AI] Encapsulates a DirectDraw 8-bit (256 color) palette for use with DirectX rendering.
Definition: mxpalette.h:17
[AI] Represents a streamable chunk of data, typically sourced from a media buffer and designed for no...
Definition: mxstreamchunk.h:19
Derived video presenter responsible for displaying video frames using DirectDraw surfaces.
MxBool IsA(const char *p_name) const override
Determines if this object is or derives from a class with the given name.
#define override
Definition: compat.h:21
MxU8 MxBool
[AI]
Definition: mxtypes.h:124
MxLong MxResult
[AI]
Definition: mxtypes.h:106