#include <AnvilCamera.h>
◆ ACamera()
| ACamera::ACamera |
( |
glm::vec3 | position = glm::vec3(0.0f, 0.0f, 0.0f) | ) |
|
Constructor for ACamera class Initializes camera with position and default vectors
- Parameters
-
| position | The initial position of the camera in 3D space |
◆ GetViewMatrix()
| glm::mat4 ACamera::GetViewMatrix |
( |
| ) |
|
◆ ProcessKeyboard()
| void ACamera::ProcessKeyboard |
( |
Camera_Movement | direction, |
|
|
float | deltaTime ) |
Processes keyboard input to move the camera in different directions
- Parameters
-
| direction | The direction of camera movement (FORWARD, BACKWARD, LEFT, RIGHT) |
| deltaTime | The time elapsed since the last frame, used to calculate movement distance |
◆ ProcessMouseMovement()
| void ACamera::ProcessMouseMovement |
( |
float | xoffset, |
|
|
float | yoffset ) |
Processes mouse movement input and updates camera orientation
- Parameters
-
| xoffset | Horizontal offset of mouse movement |
| yoffset | Vertical offset of mouse movement |
◆ Front
◆ MouseSensitivity
| float ACamera::MouseSensitivity = 0.1f |
◆ MovementSpeed
| float ACamera::MovementSpeed = 5.0f |
◆ Pitch
◆ Position
| glm::vec3 ACamera::Position |
◆ Right
◆ Up
◆ WorldUp
| glm::vec3 ACamera::WorldUp |
◆ Yaw
The documentation for this class was generated from the following files: