Implement LegoVideoManager::Create and related (#393)

* WIP

* Match

* Changes

* Fix format

* Style fixes

* Update naming.yml

* Match to ~85%
This commit is contained in:
Christian Semmler
2024-01-01 19:17:38 -05:00
committed by GitHub
parent 1e43f20af5
commit 935ebe6910
33 changed files with 742 additions and 199 deletions

View File

@@ -3,6 +3,7 @@
#include "../realtime/orientableroi.h"
#include "../tgl/tgl.h"
#include "decomp.h"
#include "viewlodlist.h"
/*
@@ -10,6 +11,9 @@
etc. Basically, anything which can be placed in a scene and manipilated
by the view manager is a ViewROI.
*/
// VTABLE: LEGO1 0x100dbe70
// SIZE 0xe0
class ViewROI : public OrientableROI {
public:
inline ViewROI(Tgl::Renderer* pRenderer, ViewLODList* lodList)
@@ -17,7 +21,12 @@ public:
SetLODList(lodList);
geometry = pRenderer->CreateGroup();
}
inline ~ViewROI();
inline ~ViewROI()
{
// SetLODList() will decrease refCount of LODList
SetLODList(0);
delete geometry;
}
inline void SetLODList(ViewLODList* lodList)
{
// ??? inherently type unsafe - kind of... because, now, ROI
@@ -39,6 +48,8 @@ public:
virtual Tgl::Group* GetGeometry();
virtual const Tgl::Group* GetGeometry() const;
static undefined SetUnk101013d8(undefined p_flag);
protected:
Tgl::Group* geometry;
void UpdateWorldData(const Matrix4Data& parent2world);