Implement/match remaining Lego3DView functions (#623)

This commit is contained in:
Christian Semmler
2024-03-04 12:54:25 -05:00
committed by GitHub
parent d3b575169e
commit 00c05aa80b
6 changed files with 58 additions and 105 deletions

View File

@@ -32,6 +32,12 @@ ViewManager::~ViewManager()
SetPOVSource(NULL);
}
// STUB: LEGO1 0x100a6410
void ViewManager::Remove(ViewROI* p_roi)
{
// TODO
}
// FUNCTION: LEGO1 0x100a64d0
void ViewManager::RemoveAll(ViewROI* p_roi)
{
@@ -101,6 +107,13 @@ void ViewManager::SetPOVSource(const OrientableROI* point_of_view)
}
}
// STUB: LEGO1 0x100a6e00
ViewROI* ViewManager::Pick(Tgl::View* p_view, unsigned long x, unsigned long y)
{
// TODO
return NULL;
}
inline undefined4 SetD3DRM(IDirect3DRM2*& d3drm, Tgl::Renderer* pRenderer)
{
d3drm = ((TglImpl::RendererImpl*) pRenderer)->ImplementationData();

View File

@@ -21,9 +21,11 @@ public:
ViewManager(Tgl::Renderer* pRenderer, Tgl::Group* scene, const OrientableROI* point_of_view);
virtual ~ViewManager();
void Remove(ViewROI* p_roi);
void RemoveAll(ViewROI* p_roi);
void FUN_100a66a0(ViewROI* p_roi);
void SetPOVSource(const OrientableROI* point_of_view);
ViewROI* Pick(Tgl::View* p_view, unsigned long x, unsigned long y);
void SetResolution(int width, int height);
void SetFrustrum(float fov, float front, float back);
void Update(float p_previousRenderTime, float p_und2);