Khaotic Engine Reborn
|
Public Member Functions | |
camera_class () | |
Default constructor for camera_class. Initializes the camera position and rotation to zero. | |
camera_class (const camera_class &) | |
void | set_position (float, float, float) |
Sets the position of the camera in 3D space. | |
void | set_rotation (float, float, float) |
Sets the rotation of the camera in 3D space. | |
XMFLOAT3 | get_position () |
Gets the current position of the camera. | |
XMFLOAT3 | get_rotation () |
Gets the current rotation of the camera. | |
void | render () |
Updates the camera's view matrix based on its position and rotation. This method recalculates the view matrix to reflect the current camera state. | |
XMMATRIX | get_view_matrix (XMMATRIX &view_matrix) const |
Retrieves the current view matrix of the camera. | |
void | render_reflection (float) |
Renders the reflection of the scene from the camera's perspective. | |
void | get_reflection_view_matrix (XMMATRIX &) const |
Retrieves the reflection view matrix of the camera. | |
Definition at line 18 of file camera_class.h.
camera_class::camera_class | ( | ) |
Default constructor for camera_class. Initializes the camera position and rotation to zero.
Definition at line 6 of file camera_class.cpp.
camera_class::camera_class | ( | const camera_class & | other | ) |
Definition at line 18 of file camera_class.cpp.
camera_class::~camera_class | ( | ) |
Definition at line 23 of file camera_class.cpp.
XMFLOAT3 camera_class::get_position | ( | ) |
Gets the current position of the camera.
Definition at line 44 of file camera_class.cpp.
void camera_class::get_reflection_view_matrix | ( | XMMATRIX & | reflectionViewMatrix | ) | const |
Retrieves the reflection view matrix of the camera.
reflection_view_matrix | The matrix to store the reflection view matrix. |
Definition at line 167 of file camera_class.cpp.
XMFLOAT3 camera_class::get_rotation | ( | ) |
Gets the current rotation of the camera.
Definition at line 50 of file camera_class.cpp.
XMMATRIX camera_class::get_view_matrix | ( | XMMATRIX & | view_matrix | ) | const |
Retrieves the current view matrix of the camera.
Definition at line 108 of file camera_class.cpp.
void camera_class::render | ( | ) |
Updates the camera's view matrix based on its position and rotation. This method recalculates the view matrix to reflect the current camera state.
Definition at line 55 of file camera_class.cpp.
void camera_class::render_reflection | ( | float | height | ) |
Renders the reflection of the scene from the camera's perspective.
reflection_plane_y | The y-coordinate of the reflection plane. |
Definition at line 114 of file camera_class.cpp.
void camera_class::set_position | ( | float | x, |
float | y, | ||
float | z ) |
Sets the position of the camera in 3D space.
position_x | The x-coordinate of the camera's position. |
position_y | The y-coordinate of the camera's position. |
position_z | The z-coordinate of the camera's position. |
Definition at line 27 of file camera_class.cpp.
void camera_class::set_rotation | ( | float | x, |
float | y, | ||
float | z ) |
Sets the rotation of the camera in 3D space.
rotation_x | The rotation around the x-axis in degrees. |
rotation_y | The rotation around the y-axis in degrees. |
rotation_z | The rotation around the z-axis in degrees. |
Definition at line 36 of file camera_class.cpp.