opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
scene_decoration_flags.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace osc
6{
7 // a flag associated with a `SceneDecoration`
8 enum class SceneDecorationFlag : unsigned {
9 None = 0,
10 NoCastsShadows = 1<<0, // the decoration should not cast shadows
11 NoDrawInScene = 1<<1, // the decoration should not be drawn in the scene (it still can cast shadows, show its wireframe, etc.)
12 RimHighlight0 = 1<<2, // the decoration should be highlighted with a colored rim (group #0)
13 RimHighlight1 = 1<<3, // the decoration should be highlighted with a colored rim (group #1)
14 DrawWireframeOverlay = 1<<4, // the decoration's wireframe should additionally be drawn in the scene
15
16 // The decoration should not contribute to the scene's functional volume.
17 //
18 // This is useful when a graphics backend emits `SceneDecoration`s that need
19 // to be visible to the user, but shouldn't be used to (e.g.) figure out how
20 // big the scene is in order to auto-focus a camera or similar (opensim-creator#1071).
22
23 CanBackfaceCull = 1<<6, // the decoration can be backface-culled (e.g. because it's using a "trusted" mesh)
24
25 // helpful combinations
26 Default = None,
32 };
33
34 // a set of flags associated with a `SceneDecoration`
36}
Definition custom_decoration_generator.h:5
SceneDecorationFlag
Definition scene_decoration_flags.h:8