mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-24 04:26:55 -04:00
Named unknown function in LegoTextureInfo
(#1544)
This commit is contained in:
parent
d714bf62f1
commit
7471852e9d
@ -19,7 +19,7 @@ public:
|
|||||||
static BOOL SetGroupTexture(Tgl::Mesh* pMesh, LegoTextureInfo* p_textureInfo);
|
static BOOL SetGroupTexture(Tgl::Mesh* pMesh, LegoTextureInfo* p_textureInfo);
|
||||||
static BOOL GetGroupTexture(Tgl::Mesh* pMesh, LegoTextureInfo*& p_textureInfo);
|
static BOOL GetGroupTexture(Tgl::Mesh* pMesh, LegoTextureInfo*& p_textureInfo);
|
||||||
|
|
||||||
LegoResult FUN_10066010(const LegoU8* p_bits);
|
LegoResult LoadBits(const LegoU8* p_bits);
|
||||||
|
|
||||||
// private:
|
// private:
|
||||||
char* m_name; // 0x00
|
char* m_name; // 0x00
|
||||||
|
@ -186,7 +186,7 @@ BOOL LegoTextureInfo::GetGroupTexture(Tgl::Mesh* pMesh, LegoTextureInfo*& p_text
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10066010
|
// FUNCTION: LEGO1 0x10066010
|
||||||
LegoResult LegoTextureInfo::FUN_10066010(const LegoU8* p_bits)
|
LegoResult LegoTextureInfo::LoadBits(const LegoU8* p_bits)
|
||||||
{
|
{
|
||||||
if (m_surface != NULL && m_texture != NULL) {
|
if (m_surface != NULL && m_texture != NULL) {
|
||||||
DDSURFACEDESC desc;
|
DDSURFACEDESC desc;
|
||||||
|
@ -770,6 +770,6 @@ void FUN_1003f930(LegoNamedTexture* p_namedTexture)
|
|||||||
LegoTextureInfo* textureInfo = TextureContainer()->Get(p_namedTexture->GetName()->GetData());
|
LegoTextureInfo* textureInfo = TextureContainer()->Get(p_namedTexture->GetName()->GetData());
|
||||||
|
|
||||||
if (textureInfo != NULL) {
|
if (textureInfo != NULL) {
|
||||||
textureInfo->FUN_10066010(p_namedTexture->GetTexture()->GetImage()->GetBits());
|
textureInfo->LoadBits(p_namedTexture->GetTexture()->GetImage()->GetBits());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ void LegoFlcTexturePresenter::LoadFrame(MxStreamChunk* p_chunk)
|
|||||||
void LegoFlcTexturePresenter::PutFrame()
|
void LegoFlcTexturePresenter::PutFrame()
|
||||||
{
|
{
|
||||||
if (m_texture != NULL && m_rectCount != 0) {
|
if (m_texture != NULL && m_rectCount != 0) {
|
||||||
m_texture->FUN_10066010(m_frameBitmap->GetImage());
|
m_texture->LoadBits(m_frameBitmap->GetImage());
|
||||||
m_rectCount = 0;
|
m_rectCount = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ void LegoPhonemePresenter::LoadFrame(MxStreamChunk* p_chunk)
|
|||||||
void LegoPhonemePresenter::PutFrame()
|
void LegoPhonemePresenter::PutFrame()
|
||||||
{
|
{
|
||||||
if (m_textureInfo != NULL && m_rectCount != 0) {
|
if (m_textureInfo != NULL && m_rectCount != 0) {
|
||||||
m_textureInfo->FUN_10066010(m_frameBitmap->GetImage());
|
m_textureInfo->LoadBits(m_frameBitmap->GetImage());
|
||||||
m_rectCount = 0;
|
m_rectCount = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ MxResult LegoTexturePresenter::Store()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
textureInfo->FUN_10066010(texture->GetImage()->GetBits());
|
textureInfo->LoadBits(texture->GetImage()->GetBits());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user