Decompile 2 functions in Source/Render/Renderer.cpp, Source/Render/Renderer.h

Batch #1260 by ragnarok-clanker: 2 byte-identical, 0 confirmed by peer review.

- fn_02098 CRenderer::UiScaleX: byte-identical
- fn_02099 CRenderer::UiScaleY: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-10-28 00:04:42 +00:00
commit 128b956184
2 changed files with 21 additions and 1 deletions

View file

@ -1,5 +1,22 @@
#include "Render/Renderer.h"
// OFFSET: 0x0055D150
float CRenderer::ScaleDistance(float distance) const {
return (this->viewport.scaleX * distance) / 7.0f;
}
// OFFSET: 0x0055D170
// FUNCTION: fn_02098
float CRenderer::UiScaleX() const {
return this->viewport.uiScaleX;
}
// OFFSET: 0x0055D180
// FUNCTION: fn_02099
float CRenderer::UiScaleY() const {
return this->viewport.uiScaleY;
}
// OFFSET: 0x00560A40
// FUNCTION: fn_02161
CRenderer::CRenderer(CRenderSystemBase& system) : frame(0), unknown_003C(0), unknown_0040(0), unknown_0044(0), twoPass(0), unknown_004C(0) {
@ -10,6 +27,6 @@ CRenderer::CRenderer(CRenderSystemBase& system) : frame(0), unknown_003C(0), unk
}
// OFFSET: 0x00562090
// OFFSET: 0x00562260
// FUNCTION: fn_02175
// OFFSET: 0x00562260
CRenderer::~CRenderer() = default;

View file

@ -45,6 +45,9 @@ public:
float* ProjectViewportCentered(
const float* position, const float* matrix, float* x, float* y, float* reciprocalDepth, float width, float height
);
float ScaleDistance(float distance) const;
float UiScaleX() const;
float UiScaleY() const;
/* 0004 */ RendererViewport viewport;
/* 0038 */ unsigned frame;