14#include <lagrange/ui/api.h>
15#include <lagrange/ui/Entity.h>
26 int available_width = 0;
27 int available_height = 0;
30 Eigen::Vector2f canvas_origin = Eigen::Vector2f::Zero();
36 bool gizmo_active =
false;
39 Eigen::Vector2f mouse_in_canvas = Eigen::Vector2f::Zero();
43 bool show_viewport_toolbar =
true;
66 Entity viewport_panel = NullEntity;
69LA_UI_API Entity add_viewport_panel(Registry& r,
const std::string& name, Entity viewport);
Lagrange UI Viewer and mini 3D engine.
Definition: AcceleratedPicking.h:22
Main namespace for Lagrange.
Definition: AABBIGL.h:30
Definition: ViewportPanel.h:65
Definition: ViewportPanel.h:23
Eigen::Vector2f screen_to_viewport(const Eigen::Vector2f &screen_pos) const
Returns position relative to viewport's lower-left corner.
Definition: ViewportPanel.cpp:828
Eigen::Vector2f viewport_to_screen(const Eigen::Vector2f &viewport_pos) const
Returns position relative to the entire screen.
Definition: ViewportPanel.cpp:834
bool is_over_viewport(const Eigen::Vector2f &pos) const
Returns whether pos is over the viewport.
Definition: ViewportPanel.cpp:821