Cogs.Core
ReflectionComponent.h
1#pragma once
2
3#include "Components/Core/DynamicComponent.h"
4#include "Systems/Core/CameraSystem.h"
5
6#include "Resources/Resources.h"
7
8namespace Cogs
9{
10 namespace Core
11 {
13 {
14 public:
15 ReflectionComponent() = default;
16
17 void initialize(Context * context);
18 void postUpdate();
19
20 glm::vec3 position = glm::vec3(0, 0, 0);
21 glm::vec3 normal = glm::vec3(0, 0, 1);
22
23 TextureHandle texture;
24
25 static void registerType();
26
27 private:
28 Context * context = nullptr;
29 RenderPassOptions passOptions{};
30 };
31 }
32}
33
34template<> inline Cogs::StringView getName<Cogs::Core::ReflectionComponent>() { return "ReflectionComponent"; }
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
Base class for components implementing dynamic behavior.
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23