mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 09:54:18 +00:00
Implement/match LegoPhonemePresenter::LoadFrame & PutFrame (#812)
* Implement/match LegoPhonemePresenter::LoadFrame & PutFrame * add beta10 annotations
This commit is contained in:
committed by
GitHub
parent
d639eb4c2b
commit
11410890cd
@@ -21,13 +21,14 @@ LegoPhonemePresenter::~LegoPhonemePresenter()
|
||||
// FUNCTION: LEGO1 0x1004e3b0
|
||||
void LegoPhonemePresenter::Init()
|
||||
{
|
||||
m_unk0x68 = 0;
|
||||
m_rectCount = 0;
|
||||
m_textureInfo = NULL;
|
||||
m_unk0x70 = FALSE;
|
||||
m_unk0x84 = FALSE;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1004e3d0
|
||||
// FUNCTION: BETA10 0x100c3646
|
||||
void LegoPhonemePresenter::StartingTickle()
|
||||
{
|
||||
MxFlcPresenter::StartingTickle();
|
||||
@@ -84,16 +85,36 @@ void LegoPhonemePresenter::StartingTickle()
|
||||
}
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1004e800
|
||||
// FUNCTION: LEGO1 0x1004e800
|
||||
// FUNCTION: BETA10 0x100c3ac9
|
||||
void LegoPhonemePresenter::LoadFrame(MxStreamChunk* p_chunk)
|
||||
{
|
||||
// TODO
|
||||
MxU8* data = p_chunk->GetData();
|
||||
|
||||
m_rectCount = *(MxS32*) data;
|
||||
data += sizeof(MxS32);
|
||||
|
||||
MxRect32* rects = (MxRect32*) data;
|
||||
data += m_rectCount * sizeof(MxRect32);
|
||||
|
||||
MxBool decodedColorMap;
|
||||
DecodeFLCFrame(
|
||||
&m_frameBitmap->GetBitmapInfo()->m_bmiHeader,
|
||||
m_frameBitmap->GetImage(),
|
||||
m_flcHeader,
|
||||
(FLIC_FRAME*) data,
|
||||
&decodedColorMap
|
||||
);
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1004e840
|
||||
// FUNCTION: LEGO1 0x1004e840
|
||||
// FUNCTION: BETA10 0x100c3b5d
|
||||
void LegoPhonemePresenter::PutFrame()
|
||||
{
|
||||
// TODO
|
||||
if (m_textureInfo != NULL && m_rectCount != 0) {
|
||||
m_textureInfo->FUN_10066010(m_frameBitmap->GetImage());
|
||||
m_rectCount = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1004e870
|
||||
|
||||
Reference in New Issue
Block a user