Cogs.Core
Image360Component.h
1#pragma once
2
3#include "Components/Core/RenderComponent.h"
4#include "Resources/Resources.h"
5
6namespace Cogs::Core
7{
8
10 {
11 None,
12 Ready,
15 };
16
18 {
19 Image360Component() { renderFlags = RenderFlags::DefaultNoShadows; layer = RenderLayers::Sky; }
20
21 std::string source;
23 float subsampling = 4.0f; //|< A value of 1 is a pixel-pixel match, a value of 4 maps 1 data source pixels to 4 screen piels.
24 uint32_t valueChannel = 0;
25 float valueDomainMin = 0.f;
26 float valueDomainMax = 1.f;
27 bool hasDepth = true;
28 bool disableLodUpdates = false;
29 bool debugColors = false;
30 bool debugDepth = false;
31
32 static void registerType();
33 };
34}
35
36template<> inline Cogs::StringView getName<Cogs::Core::Image360Component>() { return "Image360Component"; }
37template<> inline Cogs::StringView getName<Cogs::Core::Image360Notification>() { return "Image360Notification"; }
Base component for all rendering content.
RenderLayers layer
Layer mask used to determine visibility for a given camera viewport.
RenderFlags renderFlags
Render flags used to control rendering behavior.
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
@ FetchingBegin
Loading queue transitions from empty to non-empty, that is, instance needs data.
@ FetchingEnd
Loading queue transitions from non-empty to empty, that is, instance has all data it currently needs.
@ Ready
All 6 baselayers are fully loaded, instance will begin rendering.
std::string source
URL of json describing image pyramid.
bool disableLodUpdates
Debugging: Disable update of dynamic lod calculations.
float valueDomainMin
Set the source domain for scalar values, see 360.json's bias and scale to account for datatype.
bool debugColors
Debugging: Enable colors that show structure of dynamic hierarchy.
uint32_t valueChannel
Which channel to use for color.
TextureHandle gradient
Gradient texture to colorize scalar values.
bool debugDepth
Debugging: Enable colors that show depth values.
float valueDomainMax
Set the source domain for scalar values, see 360.json's bias and scale to account for datatype.
bool hasDepth
Use depth data if data source has depth data.