Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Camera.hpp
1
#pragma once
2
3
#include <glm/glm.hpp>
4
#include <glm/gtc/quaternion.hpp>
5
6
namespace
Grindstone {
7
class
Camera
{
8
public
:
9
void
Render();
10
void
ResizeViewport(uint32_t width, uint32_t height);
11
void
UpdateProjectionMatrix();
12
void
UpdateViewMatrix();
13
private
:
14
glm::mat4 projection;
15
glm::mat4 view;
16
glm::vec3 position;
17
glm::quat rotation;
18
uint32_t width;
19
uint32_t height;
20
float
fieldOfView;
21
float
nearPlaneDistance = 0.1f;
22
float
farPlaneDistance = 200.f;
23
};
24
}
Grindstone::Camera
Definition
Camera.hpp:7
sources
code
EngineCore
Rendering
Camera.hpp
Generated by
1.12.0