mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
a06a360dc6
* Implement Lego3DManager * Update lego3dview.cpp * fix * fixes * fix wrong vtable address * Fixes/matches * Fix Lego3DView * Use undefined * More fixes * Rename * Rename pad * Add blank line * Delete stuff --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
46 lines
859 B
C++
46 lines
859 B
C++
#include "lego3dmanager.h"
|
|
|
|
#include "decomp.h"
|
|
#include "mxrendersettings.h"
|
|
#include "mxunknown100dbdbc.h"
|
|
#include "tgl/tgl.h"
|
|
|
|
DECOMP_SIZE_ASSERT(Lego3DManager, 0x10);
|
|
|
|
// FUNCTION: LEGO1 0x100ab320
|
|
Lego3DManager::Lego3DManager()
|
|
{
|
|
m_render = NULL;
|
|
m_3dView = NULL;
|
|
m_unk0x0c = NULL;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100ab360
|
|
Lego3DManager::~Lego3DManager()
|
|
{
|
|
Destroy();
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100ab370
|
|
void Lego3DManager::Init(MxRenderSettings& p_settings)
|
|
{
|
|
m_unk0x0c = new MxUnknown100dbdbc();
|
|
m_render = Tgl::CreateRenderer();
|
|
m_3dView = new Lego3DView();
|
|
|
|
MxRenderSettings settings;
|
|
MxRenderSettings::CopyFrom(settings, p_settings);
|
|
|
|
m_3dView->Init(settings, *m_render);
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100ab460
|
|
void Lego3DManager::Destroy()
|
|
{
|
|
delete m_3dView;
|
|
m_3dView = NULL;
|
|
delete m_render;
|
|
m_render = NULL;
|
|
delete m_unk0x0c;
|
|
m_unk0x0c = NULL;
|
|
}
|