14#include <lagrange/ui/api.h>
15#include <lagrange/ui/components/Viewport.h>
16#include <lagrange/ui/panels/ViewportPanel.h>
22LA_UI_API Entity
add_viewport(Registry& registry, Entity camera_entity,
bool srgb =
false);
24LA_UI_API
void instance_camera_to_viewports(Registry& registry, Entity source_viewport);
25LA_UI_API
void copy_camera_to_viewports(Registry& registry, Entity source_viewport);
56LA_UI_API Camera& get_camera(Registry& registry, Entity e);
87 float duration_seconds = 1.0f,
88 const std::function<
bool(Registry& r, Entity e)>& filter =
nullptr);
96LA_UI_API Entity get_selection_viewport_entity(
const Registry& registry);
97LA_UI_API Entity get_objectid_viewport_entity(
const Registry& registry);
98LA_UI_API
void add_selection_outline_post_process(
100 Entity viewport_entity,
101 const Color& selection_color);
Lagrange UI Viewer and mini 3D engine.
Definition: AcceleratedPicking.h:22
LA_UI_API ViewportPanel * get_focused_viewport_panel(Registry ®istry)
Focused Viewport UI Panel Returns nullptr if there is no focused viewport.
Definition: viewport.cpp:62
LA_UI_API bool camera_focus_and_fit(Registry ®istry, Entity camera, bool focus=true, bool fit=true, float duration_seconds=1.0f, const std::function< bool(Registry &r, Entity e)> &filter=nullptr)
Adjusts camera to fit the scene bounding box over the next several frames.
Definition: viewport.cpp:124
LA_UI_API Entity get_hovered_viewport_panel_entity(Registry ®istry)
Returns NullEntity if there is no hovered viewport.
Definition: viewport.cpp:91
LA_UI_API Entity get_focused_viewport_entity(Registry ®istry)
Focused Viewport (entity) Returns NullEntity if there is no focused viewport.
Definition: viewport.cpp:69
LA_UI_API ViewportComponent * get_focused_viewport(Registry ®istry)
Focused Viewport (component reference) Returns nullptr if there is no focused viewport.
Definition: viewport.cpp:76
LA_UI_API Entity get_hovered_viewport_entity(Registry ®istry)
Returns NullEntity if there is no hovered viewport.
Definition: viewport.cpp:102
LA_UI_API Entity add_viewport(Registry ®istry, Entity camera_entity, bool srgb=false)
Creates an offscreen viewport with given camera. Create ViewportPanel to show it on screen.
Definition: viewport.cpp:179
LA_UI_API Entity get_focused_camera_entity(Registry ®istry)
Returns NullEntity if there is no focused viewport.
Definition: viewport.cpp:83
LA_UI_API Camera * get_focused_camera(Registry ®istry)
Returns nullptr if there is no focused viewport.
Definition: viewport.cpp:116
Main namespace for Lagrange.
Definition: AABBIGL.h:30