mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Bootstrap LegoLOD, implement/match ViewManager::FUN_100a66a0 (#625)
* Bootstrap LegoLOD, implement/match ViewManager::FUN_100a66a0 * Fixes * Try fix * Try this * Fix
This commit is contained in:

committed by
GitHub

parent
b8aa16ff80
commit
c9210c02fb
@@ -79,33 +79,35 @@ Result GroupImpl::SetMaterialMode(MaterialMode mode)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a3410
|
||||
Result GroupImpl::Add(const Mesh* pMesh)
|
||||
{
|
||||
const MeshImpl* pMeshImpl = static_cast<const MeshImpl*>(pMesh);
|
||||
return ResultVal(m_data->AddVisual(pMeshImpl->ImplementationData()->groupMesh));
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a3430
|
||||
Result GroupImpl::Add(const Group* pGroup)
|
||||
{
|
||||
const GroupImpl* pGroupImpl = static_cast<const GroupImpl*>(pGroup);
|
||||
return ResultVal(m_data->AddVisual(pGroupImpl->m_data));
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a3430
|
||||
Result GroupImpl::Add(const Mesh* pMesh)
|
||||
{
|
||||
const MeshImpl* pMeshImpl = static_cast<const MeshImpl*>(pMesh);
|
||||
// TODO: Incorrect structure
|
||||
return ResultVal(m_data->AddVisual((IDirect3DRMMesh*) pMeshImpl->ImplementationData()));
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a3450
|
||||
Result GroupImpl::Remove(const Mesh* pMesh)
|
||||
{
|
||||
const MeshImpl* pMeshImpl = static_cast<const MeshImpl*>(pMesh);
|
||||
// TODO: Incorrect structure
|
||||
return ResultVal(m_data->DeleteVisual((IDirect3DRMMesh*) pMeshImpl->ImplementationData()));
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a3480
|
||||
Result GroupImpl::Remove(const Group* pGroup)
|
||||
{
|
||||
const GroupImpl* pGroupImpl = static_cast<const GroupImpl*>(pGroup);
|
||||
return ResultVal(m_data->DeleteVisual(pGroupImpl->m_data));
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a3480
|
||||
Result GroupImpl::Remove(const Mesh* pMesh)
|
||||
{
|
||||
const MeshImpl* pMeshImpl = static_cast<const MeshImpl*>(pMesh);
|
||||
return ResultVal(m_data->DeleteVisual(pMeshImpl->ImplementationData()->groupMesh));
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100a34b0
|
||||
Result GroupImpl::RemoveAll()
|
||||
{
|
||||
|
Reference in New Issue
Block a user