Batch #12475 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_17920 CView::Refresh: logic confirmed by peer review Peer-reviewed-by: Yommy, gordaoprogramas, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
29 lines
704 B
C++
29 lines
704 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 Forward(const CameraState& camera, float* 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
|