Saga
Saga Game Engine
Loading...
Searching...
No Matches
Saga::Camera Struct Reference

Wrapper around the GraphicsEngine camera. More...

#include <camera.h>

Public Member Functions

 operator const std::shared_ptr< GraphicsEngine::Camera > () const
 

Public Attributes

std::shared_ptr< GraphicsEngine::Camera > camera
 
bool clearColorBufferOnDraw
 determine if the draw system should clear the color buffer (or only the depth buffer) when using this camera.
 
glm::vec3 clearColor
 only relevant if clearColorBufferOnDraw is true.
 
glm::vec3 globalShaderCoefs
 only relevant if using phong shading. Coefficients for ambient, diffuse, and specular respectively. Must all be in the range [0,1].
 
std::string shader
 shader used to render Meshes seen by this camera.
 

Detailed Description

Wrapper around the GraphicsEngine camera.

Member Function Documentation

◆ operator const std::shared_ptr< GraphicsEngine::Camera >()

Saga::Camera::operator const std::shared_ptr< GraphicsEngine::Camera > ( ) const
inline

Member Data Documentation

◆ camera

std::shared_ptr<GraphicsEngine::Camera> Saga::Camera::camera

◆ clearColor

glm::vec3 Saga::Camera::clearColor

only relevant if clearColorBufferOnDraw is true.

◆ clearColorBufferOnDraw

bool Saga::Camera::clearColorBufferOnDraw

determine if the draw system should clear the color buffer (or only the depth buffer) when using this camera.

◆ globalShaderCoefs

glm::vec3 Saga::Camera::globalShaderCoefs

only relevant if using phong shading. Coefficients for ambient, diffuse, and specular respectively. Must all be in the range [0,1].

◆ shader

std::string Saga::Camera::shader

shader used to render Meshes seen by this camera.


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