Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
CameraComponent.hpp
1#pragma once
2
3#include <glm/glm.hpp>
4#include "EngineCore/Reflection/ComponentReflection.hpp"
5#include "EngineCore/ECS/Entity.hpp"
6
7namespace Grindstone {
8 class WorldContextSet;
9
10 namespace Events {
11 struct BaseEvent;
12 }
13
15 bool isMainCamera = true;
16 bool isOrthographic = false;
17 float nearPlaneDistance = 0.1f;
18 float farPlaneDistance = 200.0f;
19 float fieldOfView = glm::radians(90.0f);
20 float aspectRatio = 800.0f / 600.0f;
21
22 static void Construct(Grindstone::WorldContextSet&, entt::entity);
23 static void Destroy(Grindstone::WorldContextSet&, entt::entity);
24 bool OnWindowResize(Events::BaseEvent* ev);
25
26 REFLECT("Camera")
27 };
28}
Definition WorldContextSet.hpp:11
Definition BaseEvent.hpp:6
Definition Assert.hpp:16
Definition CameraComponent.hpp:14
Definition BaseEvent.hpp:7