2023-06-11 21:03:54 -04:00
|
|
|
#ifndef VIEWMANAGER_H
|
|
|
|
#define VIEWMANAGER_H
|
|
|
|
|
2024-03-02 09:43:19 -05:00
|
|
|
#include "decomp.h"
|
|
|
|
#include "realtime/realtimeview.h"
|
2024-01-10 17:40:24 -05:00
|
|
|
#include "viewroi.h"
|
2023-06-18 08:02:16 -04:00
|
|
|
|
2024-03-02 09:43:19 -05:00
|
|
|
#include <d3drm.h>
|
|
|
|
|
2024-01-10 17:40:24 -05:00
|
|
|
// VTABLE: LEGO1 0x100dbd88
|
|
|
|
// SIZE 0x1bc
|
2023-10-24 19:38:27 -04:00
|
|
|
class ViewManager {
|
2023-06-11 21:03:54 -04:00
|
|
|
public:
|
2024-03-02 09:43:19 -05:00
|
|
|
enum Flags {
|
|
|
|
c_bit1 = 0x01,
|
|
|
|
c_bit2 = 0x02,
|
|
|
|
c_bit3 = 0x04,
|
|
|
|
c_bit4 = 0x08
|
|
|
|
};
|
|
|
|
|
2024-01-13 14:58:10 -05:00
|
|
|
ViewManager(Tgl::Renderer* pRenderer, Tgl::Group* scene, const OrientableROI* point_of_view);
|
2024-01-10 17:40:24 -05:00
|
|
|
virtual ~ViewManager();
|
|
|
|
|
2024-03-04 12:54:25 -05:00
|
|
|
void Remove(ViewROI* p_roi);
|
2024-03-02 14:26:19 -05:00
|
|
|
void RemoveAll(ViewROI* p_roi);
|
|
|
|
void FUN_100a66a0(ViewROI* p_roi);
|
2024-01-10 17:40:24 -05:00
|
|
|
void SetPOVSource(const OrientableROI* point_of_view);
|
2024-03-04 12:54:25 -05:00
|
|
|
ViewROI* Pick(Tgl::View* p_view, unsigned long x, unsigned long y);
|
2024-01-13 14:58:10 -05:00
|
|
|
void SetResolution(int width, int height);
|
|
|
|
void SetFrustrum(float fov, float front, float back);
|
2024-03-09 18:40:29 -05:00
|
|
|
void FUN_100a6b90();
|
2024-01-20 15:43:53 -05:00
|
|
|
void Update(float p_previousRenderTime, float p_und2);
|
2024-01-13 14:58:10 -05:00
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100a6000
|
|
|
|
// ViewManager::`scalar deleting destructor'
|
|
|
|
|
2024-03-02 14:26:19 -05:00
|
|
|
inline const CompoundObject& GetROIs() { return rois; }
|
2024-02-16 19:34:30 -05:00
|
|
|
|
2024-03-02 14:26:19 -05:00
|
|
|
inline void Add(ViewROI* p_roi) { rois.push_back(p_roi); }
|
2024-02-02 12:18:46 -05:00
|
|
|
|
2024-01-13 14:58:10 -05:00
|
|
|
private:
|
2024-03-02 09:43:19 -05:00
|
|
|
Tgl::Group* scene; // 0x04
|
2024-03-02 14:26:19 -05:00
|
|
|
CompoundObject rois; // 0x08
|
2024-03-02 09:43:19 -05:00
|
|
|
RealtimeView rt_view; // 0x14
|
|
|
|
ROIList visible_rois; // 0x18
|
|
|
|
float unk0x28; // 0x28
|
|
|
|
undefined4 unk0x2c; // 0x2c
|
|
|
|
unsigned int flags; // 0x30
|
2024-03-02 13:40:42 -05:00
|
|
|
float width; // 0x34
|
|
|
|
float height; // 0x38
|
|
|
|
float view_angle; // 0x3c
|
|
|
|
MxMatrix pov; // 0x40
|
|
|
|
float front; // 0x88
|
|
|
|
float back; // 0x8c
|
2024-03-09 18:40:29 -05:00
|
|
|
float unk0x90[8][3]; // 0x90
|
|
|
|
float unk0xf0[8][3]; // 0xf0
|
|
|
|
float unk0x150[6][4]; // 0x150
|
2024-03-02 09:43:19 -05:00
|
|
|
IDirect3DRM2* d3drm; // 0x1b0
|
|
|
|
IDirect3DRMFrame2* frame; // 0x1b4
|
|
|
|
float seconds_allowed; // 0x1b8
|
2023-06-11 21:03:54 -04:00
|
|
|
};
|
|
|
|
|
2024-02-02 12:18:46 -05:00
|
|
|
// TEMPLATE: LEGO1 0x10022030
|
|
|
|
// list<ROI *,allocator<ROI *> >::insert
|
|
|
|
|
2024-03-02 09:43:19 -05:00
|
|
|
// TEMPLATE: LEGO1 0x100a6020
|
|
|
|
// List<ROI *>::~List<ROI *>
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x100a6070
|
|
|
|
// Vector<ROI const *>::~Vector<ROI const *>
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x100a6f80
|
|
|
|
// vector<ROI const *,allocator<ROI const *> >::~vector<ROI const *,allocator<ROI const *> >
|
|
|
|
|
2023-06-11 21:03:54 -04:00
|
|
|
#endif // VIEWMANAGER_H
|