2#include <engine/engine_export.h>
65 const std::string& key,
67 math::vec2 pos) -> entt::handle;
79 const std::string& key,
80 math::vec3 pos) -> entt::handle;
91 const std::string& key) -> entt::handle;
103 const std::string& key,
105 math::vec2 pos) -> entt::handle;
117 const std::string& key,
118 math::vec3 pos = {0.0f, 0.0f, 0.0f}) -> entt::handle;
208 hpp::span<const entt::handle> entities,
286 static void run_camera_focus_transition(entt::handle
camera,
287 const math::vec3& target_center,
Provides storage for common representation of spherical bounding volume, and wraps up common function...
Class representing a camera. Contains functionality for manipulating and updating a camera....
probe_type
Enum class representing the type of reflection probe.
light_type
Enum representing the type of light.
Represents a handle to an asset, providing access and management functions.
Storage for box vector values and wraps up common functionality.
Creates a default 3D scene for asset preview.
Provides default initialization and creation functions for various entities and assets.
static auto create_reflection_probe_entity(rtti::context &ctx, scene &scn, probe_type type, const std::string &name) -> entt::handle
Creates a reflection probe entity.
static void focus_camera_on_bounds(entt::handle camera, const math::bsphere &bounds, float duration)
Focuses a camera on bounds with a timed transition.
static auto init_assets(rtti::context &ctx) -> bool
Initializes default assets.
static auto init(rtti::context &ctx) -> bool
Initializes default settings and assets.
static auto create_ui_document_entity(rtti::context &ctx, scene &scn, const std::string &name) -> entt::handle
Creates a UI document entity.
static auto create_text_entity(rtti::context &ctx, scene &scn, const std::string &name) -> entt::handle
Creates a text entity.
static auto create_audio_source_entity(rtti::context &ctx, scene &scn, const std::string &name) -> entt::handle
Creates a audio source entity.
static auto create_embedded_mesh_entity(rtti::context &ctx, scene &scn, const std::string &name) -> entt::handle
Creates an embedded mesh entity.
static auto calc_bounds_sphere_global(entt::handle entity, bool use_bbox_diagonal=true) -> math::bsphere
Calculates the bounding sphere of an entity.
static void focus_camera_on_entities(entt::handle camera, hpp::span< const entt::handle > entities)
Focuses a camera on a specified entity.
static auto create_particle_emitter_entity(rtti::context &ctx, scene &scn, const std::string &name) -> entt::handle
Creates a particle emitter entity.
static auto create_default_3d_scene_for_asset_preview(rtti::context &ctx, scene &scn, const asset_handle< T > &asset, const usize32_t &size, bool focus_camera=true) -> asset_preview_result
static auto calc_bounds_global(entt::handle entity, int depth=-1) -> math::bbox
Calculates the bounding box of an entity.
static auto create_light_entity(rtti::context &ctx, scene &scn, light_type type, const std::string &name) -> entt::handle
Creates a light entity.
static auto create_prefab_at(rtti::context &ctx, scene &scn, const std::string &key, const camera &cam, math::vec2 pos) -> entt::handle
Creates a prefab entity at a specified position.
static void focus_camera_on_bounds(entt::handle camera, const math::bbox &bounds, float duration)
Focuses a camera on bounds with a timed transition.
static void create_default_3d_scene_for_editing(rtti::context &ctx, scene &scn)
Creates a default 3D scene for editing.
static auto create_camera_entity(rtti::context &ctx, scene &scn, const std::string &name) -> entt::handle
Creates a camera entity.
static auto create_mesh_entity_at(rtti::context &ctx, scene &scn, const std::string &key, const camera &cam, math::vec2 pos) -> entt::handle
Creates a mesh entity at a specified position.
static void create_default_3d_scene(rtti::context &ctx, scene &scn)
Creates a default 3D scene.
static auto deinit(rtti::context &ctx) -> bool
Deinitializes default settings and assets.
Represents a scene in the ACE framework, managing entities and their relationships.