A class for the MovableCamera's.
More...
#include <MovableCamera.h>
|
glm::vec3 | GetPosition () |
|
glm::mat4 | GetViewMatrix () |
|
glm::mat4 | GetProjectionMatrix () |
|
void | SetPosition (const Vivid::Maths::Vec3 &position) |
|
void | SetPerspective (const glm::mat4 &perspective) |
|
void | SetViewMatrix (const glm::mat4 &view) |
|
virtual void | SetViewportSize (int width, int height)=0 |
|
virtual void | MoveForward ()=0 |
|
virtual void | MoveBackward ()=0 |
|
virtual void | MoveLeft ()=0 |
|
virtual void | MoveRight ()=0 |
|
virtual void | ProcessMouseScroll (float scrollOffset)=0 |
|
virtual void | ProcessMouseMovement (float xOffset, float yOffset, bool constrainPitch=true)=0 |
|
virtual glm::mat4 | GetViewMatrix ()=0 |
|
virtual glm::mat4 | GetProjectionMatrix ()=0 |
|
virtual void | SetPerspective (const glm::mat4 &perspective)=0 |
|
virtual void | SetViewMatrix (const glm::mat4 &view)=0 |
|
virtual void | SetViewportSize (int width, int height)=0 |
|
int | GetViewportWidth () |
|
int | GetViewportHeight () |
|
A class for the MovableCamera's.
MovableCamera is a camera that can be moved around in the scene. It can be moved forward, backward, left, right, and can be rotated using the mouse.
Definition at line 14 of file MovableCamera.h.
◆ GetPosition()
glm::vec3 MovableCamera::GetPosition |
( |
| ) |
|
|
inline |
◆ GetProjectionMatrix()
glm::mat4 MovableCamera::GetProjectionMatrix |
( |
| ) |
|
|
inlinevirtual |
◆ GetViewMatrix()
glm::mat4 MovableCamera::GetViewMatrix |
( |
| ) |
|
|
inlinevirtual |
◆ SetPerspective()
void MovableCamera::SetPerspective |
( |
const glm::mat4 & |
perspective | ) |
|
|
inlinevirtual |
◆ SetPosition()
◆ SetViewMatrix()
void MovableCamera::SetViewMatrix |
( |
const glm::mat4 & |
view | ) |
|
|
inlinevirtual |
◆ SetViewportSize()
virtual void MovableCamera::SetViewportSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
pure virtual |
◆ m_Position
◆ m_ProjectionMatrix
glm::mat4 MovableCamera::m_ProjectionMatrix |
|
protected |
◆ m_ViewMatrix
glm::mat4 MovableCamera::m_ViewMatrix |
|
protected |
The documentation for this class was generated from the following file: