37 ImVec2(std::min(drag_start_pos_.x, drag_current_pos_.x), std::min(drag_start_pos_.y, drag_current_pos_.y)),
38 ImVec2(std::max(drag_start_pos_.x, drag_current_pos_.x), std::max(drag_start_pos_.y, drag_current_pos_.y))
47 void draw_selected_camera(
rtti::context& ctx, entt::handle editor_camera,
const ImVec2&
size);
52 void draw_gizmo_pivot_mode_menu(
bool& gizmo_at_center);
56 void draw_visualization_menu();
60 void draw_framerate_display();
65 void draw_drag_selection_rect(
const ImVec2& start_pos,
const ImVec2& current_pos);
70 void setup_camera_viewport(
camera_component& camera_comp,
const ImVec2&
size,
const ImVec2& pos);
79 int visualize_passes_{-1};
80 scene panel_scene_{
"scene_panel"};
82 bool gizmo_at_center_{
true};
84 float acceleration_{};
85 math::vec3 move_dir_{};
87 gizmos_renderer gizmos_{};
90 bool was_prefab_mode_{
false};
93 bool auto_save_prefab_{
true};
96 bool is_drag_selecting_{
false};
97 ImVec2 drag_start_pos_{};
98 ImVec2 drag_current_pos_{};
99 bool was_using_gizmo_{
false};
Class that contains core camera data, used for rendering and other purposes.
Class representing a camera. Contains functionality for manipulating and updating a camera....
void on_frame_ui_render()
auto is_focused() const -> bool
void on_frame_render(rtti::context &ctx, delta_t dt)
void on_frame_update(rtti::context &ctx, delta_t dt)
scene_panel(imgui_panels *parent)
void init(rtti::context &ctx)
auto get_auto_save_prefab() const -> bool
auto is_drag_selection_active() const -> bool
void set_visible(bool visible)
auto get_drag_selection_bounds() const -> std::pair< ImVec2, ImVec2 >
auto get_drag_selection_rect() const -> ImRect
void on_frame_before_render(rtti::context &ctx, delta_t dt)
auto get_center() -> entt::handle
void deinit(rtti::context &ctx)
auto get_camera() -> entt::handle
std::chrono::duration< float > delta_t
Hash specialization for batch_key to enable use in std::unordered_map.