Cogs.Core
Source
Components
Behavior
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
8
namespace
Cogs
9
{
10
namespace
Core
11
{
12
class
ReflectionComponent
:
public
DynamicComponent
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
34
template
<>
inline
Cogs::StringView
getName<Cogs::Core::ReflectionComponent>() {
return
"ReflectionComponent"
; }
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Core::DynamicComponent
Base class for components implementing dynamic behavior.
Definition:
DynamicComponent.h:31
Cogs::Core::ReflectionComponent
Definition:
ReflectionComponent.h:13
Cogs::StringView
Provides a weakly referenced view over the contents of a string.
Definition:
StringView.h:24
Cogs
Contains all Cogs related functionality.
Definition:
FieldSetter.h:23
Cogs::Core::RenderPassOptions
Definition:
CameraSystem.h:38
Cogs::Core::ResourceHandle_t< Texture >
Generated by
1.9.6