33#ifndef DVD_SCENE_STATE_H_
34#define DVD_SCENE_STATE_H_
247 std::array<SceneStatePerPlayer, Config::MAX_LOCAL_PLAYER_COUNT>
_playerState;
Scene & parentScene() noexcept
void disableOption(RenderOptions option) noexcept
@ RENDER_WIREFRAME
Render wireframe for all scene geometry.
@ RENDER_OBB
Show/hide oriented bounding boxes.
@ RENDER_SKELETONS
Render skeletons for animated geometry.
@ RENDER_CUSTOM_PRIMITIVES
Show/hide custom IMPrimitive elements.
@ RENDER_AABB
Show/hide axis aligned bounding boxes.
@ RENDER_BSPHERES
Show/hide bounding spheres.
@ RENDER_GEOMETRY
Show/hide geometry.
PROPERTY_RW(I64, singleNodeRenderGUID, -1)
PROPERTY_RW(F32, grassVisibility, 1000.0f)
bool isEnabledOption(RenderOptions option) const noexcept
PROPERTY_RW(F32, generalVisibility, 1000.0f)
void enableOption(RenderOptions option) noexcept
void renderMask(U16 mask)
vec4< U16 > _lodThresholds
vec4< U16 > & lodThresholds() noexcept
void toggleOption(RenderOptions option) noexcept
PROPERTY_RW(FogDetails, fogDetails)
PROPERTY_RW(U8, renderPass, 0u)
PROPERTY_RW(F32, treeVisibility, 1000.0f)
SceneRenderState _renderState
WaterBodyDataContainer _waterBodies
std::array< MusicPlaylist, to_base(MusicType::COUNT)> _music
std::array< SceneStatePerPlayer, Config::MAX_LOCAL_PLAYER_COUNT > _playerState
const SceneStatePerPlayer & playerState() const noexcept
PROPERTY_RW(F32, windSpeed, 1.0f)
void onPlayerAdd(const U8 index) noexcept
hashMap< U64, Handle< AudioDescriptor > > MusicPlaylist
Background music map : trackName - track.
PROPERTY_RW(bool, screenshotRequestQueued, false)
SceneStatePerPlayer & playerState(const U8 index) noexcept
PROPERTY_RW(F32, windDirX, 0.1f)
void onPlayerRemove(const U8 index) noexcept
PROPERTY_RW(F32, windDirZ, 0.7f)
PROPERTY_RW(F32, minShadowVariance, 0.00001f)
PROPERTY_RW(F32, lightBleedBias, 0.2f)
SceneStatePerPlayer & playerState() noexcept
SceneRenderState & renderState() noexcept
const WaterBodyDataContainer & waterBodies() const noexcept
WaterBodyDataContainer & waterBodies() noexcept
const SceneRenderState & renderState() const noexcept
MusicPlaylist & music(const MusicType type) noexcept
const SceneStatePerPlayer & playerState(const U8 index) const noexcept
const MusicPlaylist & music(const MusicType type) const noexcept
PROPERTY_RW(bool, saveLoadDisabled, false)
PROPERTY_RW(U8, playerPass, 0u)
Handle console commands that start with a forward slash.
constexpr U32 to_U32(const T value)
eastl::fixed_vector< WaterBodyData, 5, true > WaterBodyDataContainer
hashAlg::unordered_map< K, V, HashFun, Predicate > hashMap
constexpr F32 DEFAULT_PLAYER_HEIGHT
static const vec4< F32 > VECTOR4_ZERO
constexpr T toBit(const T X)
Converts an arbitrary positive integer value to a bitwise value used for masks.
constexpr auto to_base(const Type value) -> Type
vec4< F32 > _colourAndDensity
vec4< F32 > _colourSunScatter
bool operator==(const FogDetails &other) const =default
U8 _speedPercentage
0...255 maps to 0...100%
MoveDirectionRequest top() const noexcept
void push(const MoveDirectionRequest direction) noexcept
std::array< MoveDirectionRequest, 2 > _directions
F32 topValue() const noexcept
PROPERTY_RW(bool, cameraUnderwater, false)
PROPERTY_RW(bool, cameraUpdated, false)
PROPERTY_RW(bool, cameraLockedToMouse, false)
POINTER_RW(Camera, overrideCamera, nullptr)
void resetMoveDirections() noexcept
bool operator==(const WaterBodyData &other) const =default
vec4< F32 > _extents
length, depth, width