Cogs.Core
NearLimitComponent.h
1#pragma once
2
3#include "Components/Core/DynamicComponent.h"
4
5#include <limits>
6
7namespace Cogs
8{
9 namespace Core
10 {
17 {
18 public:
20 static void registerType();
21
22 void update();
23
25 float nearPlaneLimit = std::numeric_limits<float>::quiet_NaN();
26 };
27 }
28}
29
30template<> inline Cogs::StringView getName<Cogs::Core::NearLimitComponent>() { return "NearLimitComponent"; }
Base class for components implementing dynamic behavior.
Contains data to describe fog.
static void registerType()
Register the type in the type system.
float nearPlaneLimit
Overrides camera's near-plane limit when calculating the frustum. Set to NaN to disable.
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23