Batch #14947 by ragnarok-clanker: no function's compiled code changes; checked with 596 compiled unit(s), including every includer of Source/Client/Input/Language.h, Source/Client/Input/LanguageTC.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Mode/EquipWindowLook.h, Source/Client/Session.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/GraffiSkill.h, Source/Contents/Actors/GrannyGameActor.h, Source/Contents/Actors/Pc.h, Source/Contents/Camera/Camera.h, Source/Contents/Effects/EffectEmitter.h, Source/Contents/Effects/EffectPrimitiveState.h, Source/Contents/FlyingShipRouteInfo.h, Source/Contents/Ground/GroundGeometry.h, Source/Contents/Ground/GroundSpatial.h, Source/Contents/Items/ItemInfo.h, Source/Render/SpriteQuad.h, Source/Resource/EZeffectResource.h, Source/Resource/Models/AnimatedModelResource.h, Source/Resource/Models/GrannyModelResource.h, Source/Resource/Models/ModelMesh.h, Source/Resource/World/WorldResource.h, Source/UI/Dialogs/UIChooseWnd.h, Source/UI/Items/UISpellListWnd.h, Source/UI/Lists/UIListBoxTemplate.h, Source/UI/MiniPartyGrid.h, Source/UI/Quest/UIOngoingQuestInfo.h, Source/UI/Text/UIAchWnd.h, Source/UI/Window/UIMonsterInfoWnd.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UINewMakeCharWnd.h, Source/UI/Window/UITalkboxTrapInputWnd.h, Source/UI/Window/UIWindowMgr.h.
60 lines
1.7 KiB
C++
60 lines
1.7 KiB
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_CAMERA_CAMERA_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_CAMERA_CAMERA_H
|
|
|
|
#include "Contents/Camera/CameraFrame.h"
|
|
#include "Contents/Camera/CameraState.h"
|
|
#include "Contents/World/WorldModelView.h"
|
|
|
|
#include <cstddef>
|
|
|
|
struct CWorld;
|
|
class CSkyBox;
|
|
|
|
extern float g_cameraDistance;
|
|
extern float g_cameraMinDistance;
|
|
extern float g_cameraBaseDistance;
|
|
extern float g_projectionScale;
|
|
extern float g_cameraPitch;
|
|
extern float g_indoorCameraPitch;
|
|
extern float g_indoorCameraDistance;
|
|
extern float g_outdoorCameraPitch;
|
|
extern float g_outdoorCameraDistance;
|
|
|
|
// VTABLE: vt_01610
|
|
class CView {
|
|
public:
|
|
CView();
|
|
virtual ~CView();
|
|
virtual void Reset();
|
|
virtual void OnExitFrame();
|
|
virtual void Render();
|
|
virtual void Update();
|
|
|
|
matrix AlternateView(float yaw) const;
|
|
void Refresh();
|
|
|
|
void Apply(CameraState& camera, int& frameLatch);
|
|
void Start(int enabled, unsigned duration, float horizontal, float distance, float pitch);
|
|
void SetAmplitudes(float horizontal, float distance, float pitch);
|
|
|
|
/* 0004 */ CameraShake shake;
|
|
/* 0020 */ CameraState camera;
|
|
/* 0050 */ float backupCurrentTarget[3];
|
|
/* 005C */ unsigned char backupCurrentAnglesAndDistance[0xC];
|
|
/* 0068 */ float backupDesiredTarget[3];
|
|
/* 0074 */ unsigned char backupDesiredAnglesAndDistance[0xC];
|
|
/* 0080 */ CameraFrame frame;
|
|
/* 00F8 */ WorldViewSpatial spatial;
|
|
/* 01B0 */ CWorld* scene;
|
|
/* 01B4 */ CSkyBox* skyBox;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(offsetof(CView, camera) == 0x0020);
|
|
static_assert(offsetof(CView, frame) == 0x0080);
|
|
static_assert(offsetof(CView, spatial) == 0x00F8);
|
|
static_assert(offsetof(CView, scene) == 0x01B0);
|
|
static_assert(sizeof(CView) == 0x1B8);
|
|
#endif
|
|
|
|
#endif
|