Carpenter Engine
A C++ game engine with a build once run anywhere solution
Loading...
Searching...
No Matches
Camera.hpp
1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5 */
6
7#ifndef ENGINE_CAMERA
8#define ENGINE_CAMERA
9
10#include "../GameObject.hpp"
11
12namespace Engine {
19 class Camera : public GameObject {
20 private:
21 float m_FOV;
22
23 public:
24
35 Camera(std::string name, float fov = 60.0f);
36
42 float getFOV() const;
43 };
44}
45
46#endif
Camera class for the game engine.
Definition Camera.hpp:19
float getFOV() const
Getter for the field of view of the camera.
Definition Camera.cpp:13
A Game Object loaded in the scene.
Definition GameObject.hpp:50