Cogs.Core
VectorFieldComponent.h
1#pragma once
2
3#include "Resources/Buffer.h"
4
5#include "Foundation/ComponentModel/Component.h"
6
7#include <glm/vec3.hpp>
8#include <glm/vec4.hpp>
9
10namespace Cogs::Core::VectorField
11{
13 {
14 static void registerType();
15
16 float scale = 1.0f;
17 float length = 1.0f;
18 float tailScale = 1.0f;
19
20 BufferView<glm::vec3> positions;
22 BufferView<glm::vec3> directions;
24
25 bool animation = false;
26 bool animationFade = true;
27 bool animationUseSpeed = false;
28 float animationScale = 1.0f;
29 float animationSpeed = 1.0f;
30 float animationFadeTime = 0.1f;
31
32 bool centerArrow = true;
33
34 bool dither = false;
35 float ditherSize = 0.3f;
36 };
37}// namespace ...
38
39template<> inline Cogs::StringView getName<Cogs::Core::VectorField::VectorFieldComponent>() { return "VectorFieldComponent"; }
Base class for Component instances.
Definition: Component.h:143
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
BufferView provides a typed, reference-counted, span of an underlying buffer resource.
Definition: Buffer.h:118