Template Class scene_bootstrap_t

Inheritance Relationships

Base Type

Class Documentation

template<std::derived_from<loader::loader_t> SceneLoader, std::derived_from<ads::construction::ads_constructor_t> ADSCtor>
class scene_bootstrap_t : public wt::scene::scene_bootstrap_generic_t

Helper that constructs a scene and its accelerating data structure (ADS).

Template Parameters:
  • SceneLoader – scene loader type.

  • ADSCtor – ADS constructor type.

Public Functions

inline scene_bootstrap_t(std::string name, std::istream &scene_source, const wt::wt_context_t &ctx, const loader::defaults_defines_t &defines = {}, std::optional<bootstrap_progress_callback_t> callbacks = {})
inline scene_bootstrap_t(std::string name, const std::filesystem::path &scene_path, const wt::wt_context_t &ctx, const loader::defaults_defines_t &defines = {}, std::optional<bootstrap_progress_callback_t> callbacks = {})
inline virtual ~scene_bootstrap_t()
scene_bootstrap_t(scene_bootstrap_t&&) = default
inline virtual std::unique_ptr<scene_t> get_scene() && override

Blocks and waits for scene loading to complete, and returns the constructed scene object.

inline virtual std::unique_ptr<ads::ads_t> get_ads() && override

Blocks and waits for ADS construction to complete, and returns the constructed ADS object.

inline virtual const loader::loader_t *get_scene_loader() const noexcept override

Returns the scene loader object.

inline virtual void wait() const override

Blocks and waits for scene loading and ADS construction to complete.