isle/LEGO1/lego/sources/3dmanager/legoview1.h
Anonymous Maarten 9e686e2a87
cmake+ci: run clang-tidy (#512)
* cmake+ci: run clang-tidy

* Remove DESCRIPTION from LEGO1/LegoOmni.mingw.def

* Add initial .clang-tidy and fixes

* fix file perms

* Comment out DESCRIPTION

* Remove LegoEntity::~LegoEntity and MxPresenter::~MxPresenter from mingw's LEGO1.def

* Looks like clang is allergic to the libs in the directx5 SDK

* Update .clang-tidy

* Fix typo in .clang-tidy

* Attempt to generate an action error

* Revert "Attempt to generate an action error"

This reverts commit 96c4c65fed.

* cmake: test with -Wparentheses + optionally with -Werror

* ci: -k0 is a Ninja argument

* Use -Werror only for msys2 builds

* cmake: only emit warnings for specific warnings

* cmake: and don't do -Werror/-WX anymore

* Fix warnings

* Fix mingw warnings

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2024-02-01 21:42:10 +01:00

76 lines
1.6 KiB
C++

#ifndef _LegoView1_h
#define _LegoView1_h
#include "compat.h"
#include "decomp.h"
#include "tglsurface.h"
namespace Tgl
{
class Camera;
}
/////////////////////////////////////////////////////////////////////////////
// LegoView
// VTABLE: LEGO1 0x100dc000
// SIZE 0x78
class LegoView : public TglSurface {
public:
LegoView();
~LegoView() override;
BOOL Create(const CreateStruct&, Tgl::Renderer*);
void Destroy() override; // vtable+0x08
Tgl::Group* GetScene() const;
Tgl::Camera* GetCamera() const;
protected:
Tgl::View* CreateView(Tgl::Renderer*, Tgl::Device*) override; // vtable+0x10
private:
Tgl::Group* m_pScene; // 0x70
Tgl::Camera* m_pCamera; // 0x74
};
/////////////////////////////////////////////////////////////////////////////
// LegoView implementation
inline Tgl::Group* LegoView::GetScene() const
{
return m_pScene;
}
inline Tgl::Camera* LegoView::GetCamera() const
{
return m_pCamera;
}
// SYNTHETIC: LEGO1 0x100ab580
// LegoView::`scalar deleting destructor'
/////////////////////////////////////////////////////////////////////////////
// LegoView1
// VTABLE: LEGO1 0x100dc018
// SIZE 0x88
class LegoView1 : public LegoView {
public:
LegoView1();
~LegoView1() override;
BOOL AddLightsToViewport();
BOOL Create(const TglSurface::CreateStruct&, Tgl::Renderer*);
void Destroy() override; // vtable+0x08
private:
Tgl::Light* m_pSunLight; // 0x78
Tgl::Light* m_pDirectionalLight; // 0x7c
Tgl::Light* m_pAmbientLight; // 0x80
};
// SYNTHETIC: LEGO1 0x100ab7a0
// LegoView1::`scalar deleting destructor'
#endif /* _LegoView1_h */