Ports verified against 12340 that take the x64 client from character login to a playable world: - Camera: SetView/ResetView, motion, free-look facing, tracking, bobs, liquid bump, world collision; camera Lua scripts - Input: world frame key/mouse layers, default action, mouselook, turn/pitch player, TurnOrAction/CameraOrSelectOrMove scripts - Movement: legal facing range, turn/pitch/raw facing events, transport status, move spline copy, unit update info, smooth facing, anim end - Units: component and extended display init, model fade/scale, entity sort table, RenderEntitys, split-body culling - Interiors: WMO group bounds, BSP segment link query, face linking, interior lighting - Collision: CMap::QueryFacets closure with frustum queries and NDCClip - UI: game UI mouse filters, client control state, faction standing packet, many *_Scripts.cpp Lua tables; name generator dictionary fix Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
38 lines
1017 B
C++
38 lines
1017 B
C++
#ifndef WOW_SOURCE_UIUTIL_CSIMPLECAMERA_H
|
|
#define WOW_SOURCE_UIUTIL_CSIMPLECAMERA_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include "Engine/Source/Tempest/C3Vector.h"
|
|
#include "Engine/Source/Tempest/C33Matrix.h"
|
|
|
|
class CM2Scene;
|
|
class CRect;
|
|
|
|
class CSimpleCamera {
|
|
public:
|
|
void SetFacing(const C3Vector& forward);
|
|
void SetFacing(const C3Vector& forward, const C3Vector& up);
|
|
/* 0004 */ CM2Scene* m_scene;
|
|
/* 0008 */ C3Vector m_position;
|
|
/* 0014 */ C33Matrix m_facing;
|
|
/* 0038 */ float m_nearZ;
|
|
/* 003C */ float m_farZ;
|
|
/* 0040 */ float m_fov;
|
|
/* 0044 */ float m_aspect;
|
|
|
|
virtual float FOV() const;
|
|
virtual C3Vector Forward() const;
|
|
virtual C3Vector Right() const;
|
|
virtual C3Vector Up() const;
|
|
|
|
CSimpleCamera(float nearZ, float farZ, float fov);
|
|
~CSimpleCamera();
|
|
CM2Scene* GetScene();
|
|
void SetFacing(float yaw, float pitch, float roll);
|
|
void SetScreenAspect(const CRect& rect);
|
|
void SetGxProjectionAndView(const CRect& rect);
|
|
};
|
|
|
|
#endif
|