Cogs.Core
SwathBottomComponent.h
1#pragma once
2
3#include "Resources/Resources.h"
4
5#include "Foundation/ComponentModel/Component.h"
6
7#include <glm/vec2.hpp>
8#include <glm/vec3.hpp>
9
10#include <vector>
11
12namespace Cogs
13{
14 namespace Core
15 {
16 namespace EchoSounder
17 {
18
20 {
21 enum struct TextureDomain : int32_t
22 {
23 Zero,
24 One,
25 PositionX,
26 PositionY,
27 VerticalDepth,
28 BeamDistance,
29 Reflectivity,
30 Size // Sentinel
31 };
32
33 TextureDomain uTextureDomain = TextureDomain::Zero;
34 glm::vec2 uTextureRange = { 0.f, 1.f };
35
36 TextureDomain vTextureDomain = TextureDomain::Zero;
37 glm::vec2 vTextureRange = { 0.f, 1.f };
38
39 static void registerType();
40
41 };
42
43 }
44 }
45}
46
47template<> inline
48Cogs::StringView getName<Cogs::Core::EchoSounder::SwathBottomComponent>()
49{
50 return "EchoSwathBottomComponent";
51}
52
53template<> inline
54Cogs::StringView getName<Cogs::Core::EchoSounder::SwathBottomComponent::TextureDomain>()
55{
56 return "EchoSwathBottomTexDomain";
57}
Base class for Component instances.
Definition: Component.h:143
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
@ Zero
Disable all color writes.
Contains all Cogs related functionality.
Definition: FieldSetter.h:23