Unravel Engine C++ Reference
Loading...
Searching...
No Matches
entity_panel.h
Go to the documentation of this file.
1#pragma once
2
3#include <base/basetypes.hpp>
4#include <context/context.hpp>
5
6#include <engine/ecs/ecs.h>
7
9#include <editor/shortcuts.h>
10
11namespace unravel
12{
13class imgui_panels;
14
16{
17public:
19
20 ~entity_panel() = default;
21
22
23 void on_frame_ui_render();
24
25 void duplicate_entities(const std::vector<entt::handle>& entities);
26
27 void focus_entities(entt::handle camera, const std::vector<entt::handle>& entities);
28
29 void delete_entities(const std::vector<entt::handle>& entities);
30
31 static auto get_entity_name(entt::handle entity) -> std::string;
32
33 static auto get_entity_icon(entt::handle entity) -> std::string;
34 static auto get_entity_display_color(entt::handle entity) -> ImVec4;
35
36protected:
37
39};
40} // namespace unravel
Class representing a camera. Contains functionality for manipulating and updating a camera....
Definition camera.h:35
static auto get_entity_icon(entt::handle entity) -> std::string
void focus_entities(entt::handle camera, const std::vector< entt::handle > &entities)
void duplicate_entities(const std::vector< entt::handle > &entities)
static auto get_entity_name(entt::handle entity) -> std::string
Gets the entity name from tag component.
static auto get_entity_display_color(entt::handle entity) -> ImVec4
entity_panel(imgui_panels *parent)
imgui_panels * parent_
void delete_entities(const std::vector< entt::handle > &entities)
entt::entity entity