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 load_scene (const std::filesystem::path &path) -> scenes::scene &
 
auto scene () -> scenes::scene &
 
auto save_scene (const std::filesystem::path &path) -> void
 
template<typename Type , std::invocable< YAML::Node &, const Type & > Save, std::invocable< YAML::Node & > Load>
auto register_component (const std::string &name, Save &&save, Load &&load) -> void
 
auto component_io (const std::uint32_t id) -> component_io &
 
auto has_component_io (const std::uint32_t id) -> 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
 

Friends

class scene
 

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: