Cogs.Core
PickingFlags.h
1#pragma once
2
3#include "Flags.h"
4
5#include <cstddef>
6
7namespace Cogs::Core
8{
12 enum class PickingFlags : uint32_t {
14 None = 0,
15
17 PickSprites = 1 << 0,
18
20 ReturnChildEntity = 1 << 1,
21
24
26 RemoveDuplicates = 1 << 3,
27
30
32 AddInstanceTexcoords = 1 << 5,
33 };
34
35 ENABLE_ENUM_FLAGS(PickingFlags);
36
40 enum class PicksReturned {
42 Closest,
43
46
49 };
50}
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
PicksReturned
  * Options for returning picking hits.
Definition: PickingFlags.h:40
@ 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.
PickingFlags
Options for COGS picking.
Definition: PickingFlags.h:12
@ 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 ...
@ 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.