Cogs.Core
AnnotationAxisComponent.h
1#pragma once
2
3#include "Foundation/ComponentModel/Component.h"
4
5#include <glm/vec3.hpp>
6
7#include <vector>
8
9namespace Cogs
10{
11 namespace Core
12 {
14 {
15 public:
16 bool visible = true;
17
19 bool viewDependentAnchor = false;
20
22 glm::vec3 viewDependentAnchorReference = glm::vec3(0.f);
23
24 std::vector<std::string> strings;
25 std::vector<glm::vec3> positions;
26
27 float distance = 10.0f;
28
29 static void registerType();
30 };
31 }
32}
33
34template<> inline Cogs::StringView getName<Cogs::Core::AnnotationAxisComponent>() { return "AnnotationAxisComponent"; }
Base class for Component instances.
Definition: Component.h:143
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23