sandbox
Loading...
Searching...
No Matches
sbx::scenes::scenes_module Class Referencefinal
Inheritance diagram for sbx::scenes::scenes_module:
sbx::core::module< scenes_module > sbx::utility::noncopyable

Classes

struct  line
 

Public Member Functions

auto update () -> void override
 
auto create_scene (const std::string &name="Scene") -> scenes::scene &
 
auto load_scene (const utility::hashed_string &name, const std::filesystem::path &path) -> scenes::scene &
 
auto close_scene (const utility::hashed_string &name) -> void
 
auto set_active_scene (const utility::hashed_string &name) -> void
 
auto active_scene () -> scenes::scene &
 
auto active_scene () const -> const scenes::scene &
 
auto find_scene (const utility::hashed_string &name) -> memory::observer_ptr< scenes::scene >
 
auto has_active_scene () const -> bool
 
auto scene_count () const -> std::size_t
 
auto save_scene (const std::filesystem::path &path) -> void
 
auto set_scene_viewport (std::string name) -> void
 
auto scene_viewport () const -> const std::string &
 
auto asset_registry () -> scenes::asset_registry &
 
auto asset_registry () const -> const scenes::asset_registry &
 
auto get_component_io_registry () -> component_io_registry &
 
auto get_asset_io_registry () -> asset_io_registry &
 
auto get_component_io (const std::uint32_t id) -> scenes::component_io &
 
auto has_component_io (const std::uint32_t id) const -> bool
 
auto debug_lines () const -> const std::vector< line > &
 
auto clear_debug_lines () -> void
 
auto add_debug_line (const sbx::math::vector3 &start, const sbx::math::vector3 &end, const sbx::math::color &color) -> void
 
auto add_coordinate_arrows (const math::matrix4x4 &transform, std::float_t length=2.0f) -> void
 
auto add_debug_plane (const sbx::math::vector3 &origin, const sbx::math::vector3 &v1, const sbx::math::vector3 &v2, std::uint32_t n1, std::uint32_t n2, std::float_t s1, std::float_t s2, const sbx::math::color &color, const sbx::math::color &outline) -> void
 
auto add_debug_volume (const math::matrix4x4 &matrix, const math::volume &volume, const sbx::math::color &color) -> void
 
auto add_debug_box (const math::matrix4x4 &matrix, const math::volume &volume, const sbx::math::color &color) -> void
 
auto add_debug_circle (const math::vector3 &center, const std::float_t radius, const math::vector3 &normal, const math::color &color, const std::uint32_t segments=32) -> void
 
auto add_debug_sphere (const math::vector3 &center, const std::float_t radius, const math::color &color, const std::uint32_t segments=32) -> void
 
auto add_debug_frustum (const math::matrix4x4 &view, const math::matrix4x4 &projection, const sbx::math::color &color) -> void
 
- Public Member Functions inherited from sbx::utility::noncopyable
 noncopyable (const noncopyable &)=delete
 
 noncopyable (noncopyable &&) noexcept=default
 
auto operator= (const noncopyable &) -> noncopyable &=delete
 
auto operator= (noncopyable &&) noexcept -> noncopyable &=default
 

Additional Inherited Members

- Protected Types inherited from sbx::core::module< scenes_module >
using base_type = module_manager::module_base
 
using dependencies = module_manager::dependencies< Dependencies... >
 
using stage = module_manager::stage
 
- Static Protected Member Functions inherited from sbx::core::module< scenes_module >
static auto register_module (stage stage, dependencies< Dependencies... > &&dependencies={}) -> bool
 

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