![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include <SceneState.h>
Public Types | |
enum class | RenderOptions : U16 { RENDER_AABB = toBit(1) , RENDER_OBB = toBit(2) , RENDER_BSPHERES = toBit(3) , RENDER_CUSTOM_PRIMITIVES = toBit(4) , RENDER_GEOMETRY = toBit(5) , RENDER_SKELETONS = toBit(6) , RENDER_WIREFRAME = toBit(7) , SELECTION_GIZMO = toBit(8) , ALL_GIZMOS = toBit(9) , COUNT = 9 } |
Public Member Functions | |
SceneRenderState (Scene &parentScene) noexcept | |
void | renderMask (U16 mask) |
void | enableOption (RenderOptions option) noexcept |
void | disableOption (RenderOptions option) noexcept |
void | toggleOption (RenderOptions option) noexcept |
void | toggleOption (RenderOptions option, bool state) noexcept |
bool | isEnabledOption (RenderOptions option) const noexcept |
PROPERTY_RW (F32, generalVisibility, 1000.0f) | |
PROPERTY_RW (F32, grassVisibility, 1000.0f) | |
PROPERTY_RW (F32, treeVisibility, 1000.0f) | |
PROPERTY_RW (U8, renderPass, 0u) | |
PROPERTY_RW (FogDetails, fogDetails) | |
PROPERTY_RW (I64, singleNodeRenderGUID, -1) | |
vec4< U16 > & | lodThresholds () noexcept |
vec4< U16 > | lodThresholds (RenderStage stage=RenderStage::DISPLAY) const noexcept |
![]() | |
SceneComponent (Scene &parentScene) noexcept | |
Scene & | parentScene () noexcept |
const Scene & | parentScene () const noexcept |
Protected Attributes | |
vec4< U16 > | _lodThresholds |
U16 | _stateMask = 0u |
![]() | |
Scene & | _parentScene |
Contains all the information needed to render the scene: camera position, render state, etc
Definition at line 86 of file SceneState.h.
|
strong |
Enumerator | |
---|---|
RENDER_AABB | Show/hide axis aligned bounding boxes. |
RENDER_OBB | Show/hide oriented bounding boxes. |
RENDER_BSPHERES | Show/hide bounding spheres. |
RENDER_CUSTOM_PRIMITIVES | Show/hide custom IMPrimitive elements. |
RENDER_GEOMETRY | Show/hide geometry. |
RENDER_SKELETONS | Render skeletons for animated geometry. |
RENDER_WIREFRAME | Render wireframe for all scene geometry. |
SELECTION_GIZMO | |
ALL_GIZMOS | |
COUNT |
Definition at line 88 of file SceneState.h.
|
explicitnoexcept |
Definition at line 35 of file SceneState.cpp.
|
noexcept |
Definition at line 84 of file SceneState.cpp.
|
noexcept |
Definition at line 79 of file SceneState.cpp.
|
noexcept |
Definition at line 74 of file SceneState.cpp.
Definition at line 123 of file SceneState.h.
|
noexcept |
Definition at line 106 of file SceneState.cpp.
Divide::SceneRenderState::PROPERTY_RW | ( | F32 | , |
generalVisibility | , | ||
1000. | 0f | ||
) |
Divide::SceneRenderState::PROPERTY_RW | ( | F32 | , |
grassVisibility | , | ||
1000. | 0f | ||
) |
Divide::SceneRenderState::PROPERTY_RW | ( | F32 | , |
treeVisibility | , | ||
1000. | 0f | ||
) |
Divide::SceneRenderState::PROPERTY_RW | ( | FogDetails | , |
fogDetails | |||
) |
Divide::SceneRenderState::PROPERTY_RW | ( | I64 | , |
singleNodeRenderGUID | , | ||
- | 1 | ||
) |
Divide::SceneRenderState::PROPERTY_RW | ( | U8 | , |
renderPass | , | ||
0u | |||
) |
void Divide::SceneRenderState::renderMask | ( | U16 | mask | ) |
Definition at line 42 of file SceneState.cpp.
|
noexcept |
Definition at line 89 of file SceneState.cpp.
|
noexcept |
Definition at line 94 of file SceneState.cpp.
Definition at line 127 of file SceneState.h.
|
protected |
Definition at line 128 of file SceneState.h.