1#include "SceneComponent.h"
2#include "Scene/PickingFlags.h"
8template<>
Cogs::StringView getName<Cogs::Core::PickingFlags>() {
return "PickingFlags"; }
9template<>
Cogs::StringView getName<Cogs::Core::PicksReturned>() {
return "PicksReturned"; }
19 TypeDatabase::createType<SceneComponent>().setBase<Component>().setFields(fields);
32 TypeDatabase::createType<PickingFlags>().setEnumerators(pickingEnums).setEnumFlags();
41 TypeDatabase::createType<PicksReturned>().setEnumerators(pickReturnEnums);
std::vector< EntityPtr > children
Contains all child entities owned by this component.
static void registerType()
Register the type in the type system.
bool visible
If the entity this component is a member of should be visible.
bool pickable
If the entity this component is a member of should be pickable.
Field definition describing a single data member of a data structure.
Provides a weakly referenced view over the contents of a string.
@ Closest
Return just the closest hit.
@ AllUnsorted
Return all hits in no specific order.
@ AllSorted
Return all hits sorted based on distance from the ray start, closest first.
@ ReturnChildEntity
Return ID if sub-entity picked, not set: return root parent entity.
@ RemoveDuplicates
For multi-pick return - remove entries with same EntityId & TextureId. Note: May cause slowdown with ...
@ None
No flags specified,.
@ FlatTexcoordInterpolation
Do not interpolate texture coordinates. Needed if integer IDs are encoded as texture coordinates.
@ PickSprites
Check picking for entities with SpriteRenderComponent. I.e. Text, Annotation, Billboard,...
@ RemoveDuplicateEntities
For multi-pick return - remove entries with same EntityId. Note: May cause slowdown with many hits du...
@ AddInstanceTexcoords
If mesh has an offset to IDs encoded in a per-instance texcoords stream, add this to the result.
Contains reflection support.
Represents an unique name.