From 17702ca90bc6308c7b6287881e4accbac5dede1d Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 20 Sep 2024 09:52:58 -0700 Subject: [PATCH] Formatting --- LEGO1/viewmanager/viewmanager.cpp | 6 +++-- LEGO1/viewmanager/viewmanager.h | 38 +++++++++++++++---------------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/LEGO1/viewmanager/viewmanager.cpp b/LEGO1/viewmanager/viewmanager.cpp index be68a385..bc4f1be9 100644 --- a/LEGO1/viewmanager/viewmanager.cpp +++ b/LEGO1/viewmanager/viewmanager.cpp @@ -9,7 +9,8 @@ DECOMP_SIZE_ASSERT(ViewManager, 0x1bc) // GLOBAL: LEGO1 0x100dbc78 -int g_boundingBoxCornerMap[8][3] = {{0, 0, 0}, {0, 0, 1}, {0, 1, 0}, {1, 0, 0}, {0, 1, 1}, {1, 0, 1}, {1, 1, 0}, {1, 1, 1}}; +int g_boundingBoxCornerMap[8][3] = + {{0, 0, 0}, {0, 0, 1}, {0, 1, 0}, {1, 0, 0}, {0, 1, 1}, {1, 0, 1}, {1, 1, 0}, {1, 1, 1}}; // GLOBAL: LEGO1 0x100dbcd8 int g_planePointIndexMap[18] = {0, 1, 5, 6, 2, 3, 3, 0, 4, 1, 2, 6, 0, 3, 2, 4, 5, 6}; @@ -75,7 +76,8 @@ unsigned int ViewManager::IsBoundingBoxInFrustum(const BoundingBox& p_bounding_b for (i = 0; i < 6; i++) { for (k = 0; k < 8; k++) { - if (frustumPlanes[i][0] * und[k][0] + frustumPlanes[i][2] * und[k][2] + frustumPlanes[i][1] * und[k][1] + frustumPlanes[i][3] >= + if (frustumPlanes[i][0] * und[k][0] + frustumPlanes[i][2] * und[k][2] + frustumPlanes[i][1] * und[k][1] + + frustumPlanes[i][3] >= 0.0f) { break; } diff --git a/LEGO1/viewmanager/viewmanager.h b/LEGO1/viewmanager/viewmanager.h index 71c214e1..d985a6bb 100644 --- a/LEGO1/viewmanager/viewmanager.h +++ b/LEGO1/viewmanager/viewmanager.h @@ -46,25 +46,25 @@ class ViewManager { // ViewManager::`scalar deleting destructor' private: - Tgl::Group* scene; // 0x04 - CompoundObject rois; // 0x08 - RealtimeView rt_view; // 0x14 - ROIList visible_rois; // 0x18 - float prevRenderTime; // 0x28 - float view_area_at_one; // 0x2c - unsigned int flags; // 0x30 - float width; // 0x34 - float height; // 0x38 - float view_angle; // 0x3c - MxMatrix pov; // 0x40 - float front; // 0x88 - float back; // 0x8c - float frustumVertices[8][3]; // 0x90 - float transformedPoints[8][3]; // 0xf0 - float frustumPlanes[6][4]; // 0x150 - IDirect3DRM2* d3drm; // 0x1b0 - IDirect3DRMFrame2* frame; // 0x1b4 - float seconds_allowed; // 0x1b8 + Tgl::Group* scene; // 0x04 + CompoundObject rois; // 0x08 + RealtimeView rt_view; // 0x14 + ROIList visible_rois; // 0x18 + float prevRenderTime; // 0x28 + float view_area_at_one; // 0x2c + unsigned int flags; // 0x30 + float width; // 0x34 + float height; // 0x38 + float view_angle; // 0x3c + MxMatrix pov; // 0x40 + float front; // 0x88 + float back; // 0x8c + float frustumVertices[8][3]; // 0x90 + float transformedPoints[8][3]; // 0xf0 + float frustumPlanes[6][4]; // 0x150 + IDirect3DRM2* d3drm; // 0x1b0 + IDirect3DRMFrame2* frame; // 0x1b4 + float seconds_allowed; // 0x1b8 }; // TEMPLATE: LEGO1 0x10022030