rodecomp/Source/Contents/Camera/CameraFrame.h
ragnarok-clanker ba6ca37fa1 Maintenance: [forced, user-approved] Family G32: remove TerrainHeight (31 files, reassigned from agent 2). The height-grid methods ru
Batch #10268 by ragnarok-clanker: forced by an admin (17 lower score(s), 85 changed function(s)); checked with 222 compiled unit(s), including every includer of Source/Client/Mode/CGameMode.h, Source/Contents/Camera/CameraFrame.h, Source/Contents/Ground/TerrainHeight.h, Source/Contents/World/World.h, Source/Resource/World/TerrainResource.h.
2026-11-03 14:34:33 +00:00

32 lines
891 B
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_CAMERA_CAMERAFRAME_H
#define RAGNAROK_SOURCE_CONTENTS_CAMERA_CAMERAFRAME_H
#include "Contents/Camera/CameraState.h"
#include "Utility/Math/AffineMatrix.h"
#include <cstddef>
class CRenderer;
struct CameraFrame {
/* 0080 */ float eye[3];
/* 008C */ float up[3];
/* 0098 */ matrix view;
/* 00C8 */ matrix inverse;
void Build(const CameraState& camera);
void Refresh(const CameraState& camera, CRenderer& renderer);
void Forward(const CameraState& camera, float* output) const;
void AlternateView(const CameraState& camera, float yaw, matrix& output) const;
};
static_assert(sizeof(CameraFrame) == 120);
#if defined(_WIN32) && !defined(_WIN64)
static_assert(offsetof(CameraFrame, up) + 0x80 == 0x8C);
static_assert(offsetof(CameraFrame, view) + 0x80 == 0x98);
static_assert(offsetof(CameraFrame, inverse) + 0x80 == 0xC8);
#endif
#endif