Maintenance: Make CView a real polymorphic class instead of a void* vtable field set to 0x011598E8. vt_01610 has 5 slots: scalar dele

Batch #9484 by ragnarok-clanker: forced by an admin (2 lower score(s), 5 changed function(s)); checked with 87 compiled unit(s), including every includer of Source/Contents/Camera/Camera.h, Source/Contents/Camera/CameraFrame.h, Source/Contents/Camera/CameraState.h.
This commit is contained in:
ragnarok-clanker 2026-11-01 14:21:24 +00:00
commit 0440a63dcd
7 changed files with 76 additions and 58 deletions

View file

@ -2,15 +2,6 @@
#include "Contents/Ground/TerrainHeight.h"
#include "Render/Renderer.h"
// OFFSET: 0x00ADC150
// FUNCTION: fn_17928
void ResetCamera(CameraState& camera, CameraFrame& frame) {
camera.Reset();
frame.up[0] = 0;
frame.up[1] = 1;
frame.up[2] = 0;
}
// INLINED
void CameraFrame::Build(const CameraState& camera, const TerrainHeight& terrain) {
constexpr float pi = 3.141592f;
@ -39,18 +30,3 @@ void CameraFrame::Refresh(const CameraState& camera, const TerrainHeight& terrai
this->Build(camera, terrain);
renderer.SetCamera(this->eye, camera.target, this->up);
}
// OFFSET: 0x00ADBF60
// FUNCTION: fn_17927
void UpdateCameraFrame(
CameraState& camera, CameraShake& shake, int& frameLatch, const float* desiredTarget, const ServiceOptions& options, const float& rendererScale,
const float& projectionScale, const float& baseDistance, CameraProjectionOutputs& outputs, const TerrainHeight& terrain, CameraFrame& frame,
CRenderer& renderer
) {
camera.desiredTarget[0] = desiredTarget[0];
camera.desiredTarget[1] = desiredTarget[1];
camera.desiredTarget[2] = desiredTarget[2];
camera.Smooth(options, rendererScale, projectionScale, baseDistance, outputs);
shake.Apply(camera, frameLatch);
frame.Refresh(camera, terrain, renderer);
}