Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::scene_panel Class Reference

#include <scene_panel.h>

Inheritance diagram for unravel::scene_panel:
unravel::entity_panel

Public Member Functions

 scene_panel (imgui_panels *parent)
 
void init (rtti::context &ctx)
 
void deinit (rtti::context &ctx)
 
void on_frame_update (rtti::context &ctx, delta_t dt)
 
void on_frame_render (rtti::context &ctx, delta_t dt)
 
void on_frame_before_render (rtti::context &ctx, delta_t dt)
 
void on_frame_ui_render (rtti::context &ctx, const char *name)
 
auto get_camera () -> entt::handle
 
auto get_center () -> entt::handle
 
void set_visible (bool visible)
 
auto is_focused () const -> bool
 
auto get_auto_save_prefab () const -> bool
 
auto is_drag_selection_active () const -> bool
 
auto get_drag_selection_rect () const -> ImRect
 
auto get_drag_selection_bounds () const -> std::pair< ImVec2, ImVec2 >
 
- Public Member Functions inherited from unravel::entity_panel
 entity_panel (imgui_panels *parent)
 
 ~entity_panel ()=default
 
void on_frame_ui_render ()
 
void duplicate_entities (const std::vector< entt::handle > &entities)
 
void focus_entities (entt::handle camera, const std::vector< entt::handle > &entities)
 
void delete_entities (const std::vector< entt::handle > &entities)
 

Additional Inherited Members

- Static Public Member Functions inherited from unravel::entity_panel
static auto get_entity_name (entt::handle entity) -> std::string
 Gets the entity name from tag component.
 
static auto get_entity_icon (entt::handle entity) -> std::string
 
static auto get_entity_display_color (entt::handle entity) -> ImVec4
 
- Protected Attributes inherited from unravel::entity_panel
imgui_panelsparent_ {}
 

Detailed Description

Definition at line 10 of file scene_panel.h.

Constructor & Destructor Documentation

◆ scene_panel()

unravel::scene_panel::scene_panel ( imgui_panels * parent)

Definition at line 1112 of file scene_panel.cpp.

Member Function Documentation

◆ deinit()

void unravel::scene_panel::deinit ( rtti::context & ctx)

Definition at line 1128 of file scene_panel.cpp.

◆ get_auto_save_prefab()

auto unravel::scene_panel::get_auto_save_prefab ( ) const -> bool

Definition at line 1328 of file scene_panel.cpp.

◆ get_camera()

auto unravel::scene_panel::get_camera ( ) -> entt::handle

Definition at line 1296 of file scene_panel.cpp.

◆ get_center()

auto unravel::scene_panel::get_center ( ) -> entt::handle

Definition at line 1306 of file scene_panel.cpp.

◆ get_drag_selection_bounds()

auto unravel::scene_panel::get_drag_selection_bounds ( ) const -> std::pair<ImVec2, ImVec2>
inline

Definition at line 34 of file scene_panel.h.

◆ get_drag_selection_rect()

auto unravel::scene_panel::get_drag_selection_rect ( ) const -> ImRect
inline

Definition at line 33 of file scene_panel.h.

◆ init()

void unravel::scene_panel::init ( rtti::context & ctx)

Definition at line 1116 of file scene_panel.cpp.

◆ is_drag_selection_active()

auto unravel::scene_panel::is_drag_selection_active ( ) const -> bool
inline

Definition at line 32 of file scene_panel.h.

◆ is_focused()

auto unravel::scene_panel::is_focused ( ) const -> bool

Definition at line 1323 of file scene_panel.cpp.

◆ on_frame_before_render()

void unravel::scene_panel::on_frame_before_render ( rtti::context & ctx,
delta_t dt )

Definition at line 1241 of file scene_panel.cpp.

◆ on_frame_render()

void unravel::scene_panel::on_frame_render ( rtti::context & ctx,
delta_t dt )

Definition at line 1270 of file scene_panel.cpp.

◆ on_frame_ui_render()

void unravel::scene_panel::on_frame_ui_render ( rtti::context & ctx,
const char * name )

Definition at line 1279 of file scene_panel.cpp.

◆ on_frame_update()

void unravel::scene_panel::on_frame_update ( rtti::context & ctx,
delta_t dt )

Definition at line 1222 of file scene_panel.cpp.

◆ set_visible()

void unravel::scene_panel::set_visible ( bool visible)

Definition at line 1318 of file scene_panel.cpp.


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