Saga
Saga Game Engine
Loading...
Searching...
No Matches
camera.h
Go to the documentation of this file.
1#pragma once
2
3#include "Graphics/camera.h"
4#include <memory>
5#include <glm/vec3.hpp>
6#include <string>
7
8namespace Saga {
9
14struct Camera {
15 std::shared_ptr<GraphicsEngine::Camera> camera;
17 glm::vec3 clearColor;
19 std::string shader;
20
21 operator const std::shared_ptr<GraphicsEngine::Camera>() const { return camera; }
22};
23
24} // namespace Saga
Definition: app.cpp:8
Wrapper around the GraphicsEngine camera.
Definition: camera.h:14
bool clearColorBufferOnDraw
determine if the draw system should clear the color buffer (or only the depth buffer) when using this...
Definition: camera.h:16
glm::vec3 globalShaderCoefs
only relevant if using phong shading. Coefficients for ambient, diffuse, and specular respectively....
Definition: camera.h:18
std::string shader
shader used to render Meshes seen by this camera.
Definition: camera.h:19
std::shared_ptr< GraphicsEngine::Camera > camera
Definition: camera.h:15
glm::vec3 clearColor
only relevant if clearColorBufferOnDraw is true.
Definition: camera.h:17