3#include "Foundation/ComponentModel/Component.h"
22 static void registerType();
28 glm::vec3
min = glm::vec3(-1.f);
31 glm::vec3
max = glm::vec3(1.f);
39 static void registerType();
47template<>
inline Cogs::StringView getName<Cogs::Core::ClipShapeType>() {
return "ClipShapeType"; }
48template<>
inline Cogs::StringView getName<Cogs::Core::ClipShapeComponent>() {
return "ClipShapeComponent"; }
49template<>
inline Cogs::StringView getName<Cogs::Core::ClipShapeRefComponent>() {
return "ClipShapeRefComponent"; }
Base class for Component instances.
Sets up a clipping shape that can be used by multiple entities.
glm::vec3 max
The high-end corner of cube-shapes.
ClipShapeType shape
The basic shape of the clip region.
glm::vec3 min
The low-end corner of cube-shapes.
Component that attaches a ClipShape to an entity.
WeakEntityPtr clipShape
Reference to the clip shape that should clip this entity.
Provides a weakly referenced view over the contents of a string.
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
ClipShapeType
Specifices what kind of shape a clip shape has.
@ InvertedCube
Clip the inside of a cube.
@ None
No clipping at all.
@ Cube
Clip the outside of a cube,.
std::weak_ptr< ComponentModel::Entity > WeakEntityPtr
Weak Smart pointer for Entity access.