Vivid
Loading...
Searching...
No Matches
Camera Class Referenceabstract

A class that represents the camera. More...

#include <Camera.h>

Inheritance diagram for Camera:
[legend]

Public Member Functions

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 ()
 

Protected Attributes

int m_ViewportWidth = 1920
 
int m_ViewportHeight = 1080
 

Detailed Description

A class that represents the camera.

It contains functions to get the view matrix, get the projection matrix, set the perspective, set the view matrix, set the viewport size, get the viewport width, and get the viewport height. This is an abstract class.

Definition at line 24 of file Camera.h.

Member Function Documentation

◆ GetViewportHeight()

int Camera::GetViewportHeight ( )
inline

Definition at line 39 of file Camera.h.

◆ GetViewportWidth()

int Camera::GetViewportWidth ( )
inline

Definition at line 38 of file Camera.h.

Member Data Documentation

◆ m_ViewportHeight

int Camera::m_ViewportHeight = 1080
protected

Definition at line 28 of file Camera.h.

◆ m_ViewportWidth

int Camera::m_ViewportWidth = 1920
protected

Definition at line 27 of file Camera.h.


The documentation for this class was generated from the following file: