Skip to main content

Level Class

Represents a game level containing the scene graph and world boundaries. More...

Declaration

class helios::engine::runtime::world::Level { ... }

Public Member Functions Index

voidsetBounds (const helios::math::aabbf &bounds, const helios::engine::core::units::Unit unit=helios::engine::core::units::Unit::Meter) noexcept

Sets the spatial boundaries 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::math::aabbfbounds_

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 Member Functions

bounds()

const helios::math::aabbf & helios::engine::runtime::world::Level::bounds ()
inline noexcept

Retrieves the level boundaries in engine units (meters).

Returns

The axis-aligned bounding box of the level.

Definition at line 58 of file Level.ixx.

58 [[nodiscard]] const helios::math::aabbf& bounds() const noexcept {
59 return bounds_;
60 }

Referenced by setBounds.

setBounds()

void helios::engine::runtime::world::Level::setBounds (const helios::math::aabbf & bounds, const helios::engine::core::units::Unit unit=helios::engine::core::units::Unit::Meter)
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 44 of file Level.ixx.

45 const helios::math::aabbf& bounds,
47
49
50 }

References bounds and helios::engine::core::units::from.

Private Member Attributes

bounds_

helios::math::aabbf helios::engine::runtime::world::Level::bounds_

The spatial boundaries of the level in engine units (meters).

Definition at line 29 of file Level.ixx.

29 helios::math::aabbf bounds_;

The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.