#include <Camera.hpp>
|
|
static void | addObserver (shared_ptr< Observer > observer) |
| |
|
static void | removeObserver (shared_ptr< Observer > observer) |
| |
| void | setCopyMode (bool initWithData) |
| |
|
static void | notify (ComponentEventType type, shared_ptr< Component > component, bool isEditor) |
| |
|
static void | notify (ActorEventType type, shared_ptr< Actor > actor, bool isEditor) |
| |
| bool | initWithData |
| |
| bool | isActive |
| |
Camera Component. This component simulates a camera in a 3D environment. It's the point of view used for rendering the Actors of the World
| Camera::Camera |
( |
float |
nearClipPlane, |
|
|
float |
farClipPlane, |
|
|
float |
fov, |
|
|
float |
ratio |
|
) |
| |
Constructor with custom parameters near clip plane, far clip plane, field of vision and screen ratio.
Default Destructor. Virtual because inherits Component
| void Camera::computeModelViewMatrix |
( |
| ) |
|
Computes the current Model View Matrix and puts it into MVPMatrix
Computes the current Model View Matrix
Component destroy override. Notifies that the camera has been destroyed
Reimplemented from Component.
| float Camera::getFarClip |
( |
| ) |
|
| glm::mat4 Camera::getModelMatrix |
( |
| ) |
|
Returns Model Matrix without the scale factor
| glm::mat4 Camera::getMVPMatrix |
( |
| ) |
|
| float Camera::getNearClip |
( |
| ) |
|
| glm::mat4 Camera::getProjectionMatrix |
( |
| ) |
|
| float Camera::getScreenRatio |
( |
| ) |
|
| glm::mat4 Camera::getViewMatrix |
( |
| ) |
|
Component init override. Notifies that a new camera has been created
Reimplemented from Component.
| Ray Camera::screenPointToRay |
( |
glm::vec2 |
pos | ) |
|
Transforms a screen point to Ray. Commonly used for transforming mouse position into a Ray
| Ray Camera::screenPointToRay2 |
( |
glm::vec2 |
pos | ) |
|
Transforms a screen point to Ray. Commonly used for transforming mouse position into a Ray
| glm::vec3 Camera::screenPointToWorld |
( |
glm::vec2 |
pos | ) |
|
Transforms a screen point to a world point. Commonly used for transforming mouse position into world points
| void Camera::tick |
( |
float |
deltaSecods | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files:
- /Users/guilherme_cunha/Dev/GITHUB/GUInity/Source/Camera.hpp
- /Users/guilherme_cunha/Dev/GITHUB/GUInity/Source/Camera.cpp