Cogs.Core
CubeMarkerComponent.h
1#pragma once
2
3#include "../../../../Source/Components/Core/DynamicComponent.h"
4#include "../../../../Source/EntityDefinition.h"
5
6#include "Foundation/ComponentModel/Entity.h"
7
8#include <string>
9
10namespace Cogs
11{
12 namespace Core
13 {
15 {
16
18
19 float markerSize = 1.f;
20 bool showCenterMarker = true;
21 bool showWallMarkers = true;
22
23 glm::vec4 xColor = glm::vec4(1.f, 0.f, 0.f, 1.f);
24 glm::vec4 yColor = glm::vec4(0.f, 1.f, 0.f, 1.f);
25 glm::vec4 zColor = glm::vec4(0.f, 0.f, 1.f, 1.f);
26
27 static void registerType();
28 };
29
30 } // namespace Core
31} // namespace Cogs
32
33template<> inline Cogs::StringView getName<Cogs::Core::CubeMarkerComponent>() { return "CubeMarkerComponent"; }
Base class for Component instances.
Definition: Component.h:143
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
std::weak_ptr< ComponentModel::Entity > WeakEntityPtr
Weak Smart pointer for Entity access.
Definition: EntityPtr.h:18
Contains all Cogs related functionality.
Definition: FieldSetter.h:23
WeakEntityPtr cube
AxisCube into which to embed the marker.
glm::vec4 zColor
Color of z-axis.
glm::vec4 yColor
Color of y-axis.
glm::vec4 xColor
Color of x-axis.