11#include <directxmath.h>
12using namespace DirectX;
86 float position_x_, position_y_, position_z_;
87 float rotation_x_, rotation_y_, rotation_z_;
88 XMMATRIX view_matrix_;
89 XMMATRIX reflection_view_matrix_;
void render()
Updates the camera's view matrix based on its position and rotation. This method recalculates the vie...
void set_rotation(float, float, float)
Sets the rotation of the camera in 3D space.
void set_position(float, float, float)
Sets the position of the camera in 3D space.
void render_reflection(float)
Renders the reflection of the scene from the camera's perspective.
XMFLOAT3 get_rotation()
Gets the current rotation of the camera.
XMMATRIX get_view_matrix(XMMATRIX &view_matrix) const
Retrieves the current view matrix of the camera.
camera_class()
Default constructor for camera_class. Initializes the camera position and rotation to zero.
void get_reflection_view_matrix(XMMATRIX &) const
Retrieves the reflection view matrix of the camera.
XMFLOAT3 get_position()
Gets the current position of the camera.