Level Class
Represents a game level containing the scene graph and world boundaries. More...
Declaration
Public Constructors Index
| Level (helios::scene::SceneNode *rootNode) | |
|
Constructs a new Level with a specific root scene node. More... | |
Public Member Functions Index
| void | setBounds (const helios::math::aabbf &bounds, const helios::core::units::Unit unit=helios::core::units::Unit::Meter) noexcept |
|
Sets the spatial boundaries of the level. More... | |
| helios::scene::SceneNode * | rootNode () const noexcept |
|
Retrieves the root scene node of the level. More... | |
| const helios::math::aabbf & | bounds () const noexcept |
|
Retrieves the level boundaries in engine units (meters). More... | |
Private Member Attributes Index
| helios::scene::SceneNode * | rootNode_ = nullptr |
|
The root node of the scene graph associated with this level. More... | |
| helios::math::aabbf | bounds_ |
|
The spatial boundaries of the level in engine units (meters). More... | |
Description
Represents a game level containing the scene graph and world boundaries.
The Level class acts as a container for the scene hierarchy (via a root node) and defines the spatial limits of the game world. It handles unit conversion for boundaries to ensure consistent internal representation (meters).
Definition at line 23 of file Level.ixx.
Public Constructors
Level()
| inline explicit |
Constructs a new Level with a specific root scene node.
- Parameters
-
rootNode Pointer to the root node of the scene graph for this level. The Level does not take ownership of this pointer.
Definition at line 42 of file Level.ixx.
Reference rootNode.
Public Member Functions
bounds()
| inline nodiscard noexcept |
rootNode()
| inline nodiscard noexcept |
setBounds()
| inline noexcept |
Sets the spatial boundaries of the level.
Converts the provided bounds from the specified unit to the engine's standard unit (meters) before storing them.
- Parameters
-
bounds The axis-aligned bounding box defining the level limits.
unit The unit of measurement for the provided bounds (defaults to Meter).
Definition at line 53 of file Level.ixx.
References bounds, helios::core::units::from and helios::core::units::Meter.
Private Member Attributes
bounds_
|
The spatial boundaries of the level in engine units (meters).
Definition at line 33 of file Level.ixx.
rootNode_
|
The root node of the scene graph associated with this level.
Definition at line 28 of file Level.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.