14#include <lagrange/ui/api.h>
15#include <lagrange/ui/Entity.h>
21struct ViewportComponent;
22struct SelectionContext;
25LA_UI_API
int color_to_id(
unsigned char r,
unsigned char g,
unsigned char b);
31LA_UI_API
const std::vector<unsigned char>&
32read_pixels(Registry& r, ViewportComponent& v,
int x,
int y,
int w,
int h);
38 Entity ofscreen_viewport_entity,
39 Entity active_viewport_entity,
40 StringID override_shader);
43LA_UI_API std::tuple<int, int, int, int>
44setup_scissor(Registry& r, ViewportComponent& offscreen_viewport,
const SelectionContext& sel_ctx);
Lagrange UI Viewer and mini 3D engine.
Definition: AcceleratedPicking.h:22
LA_UI_API std::tuple< int, int, int, int > setup_scissor(Registry &r, ViewportComponent &offscreen_viewport, const SelectionContext &sel_ctx)
Sets rasterizer scissor based on SelectionContext.
Definition: objectid_viewport.cpp:87
LA_UI_API bool is_id_background(int id)
Is numerical ID from shader a background?
Definition: objectid_viewport.cpp:38
LA_UI_API const std::vector< unsigned char > & read_pixels(Registry &r, ViewportComponent &v, int x, int y, int w, int h)
Read pixels of viewport in rectangle at x,y of size w,h.
Definition: objectid_viewport.cpp:43
LA_UI_API ViewportComponent & setup_offscreen_viewport(Registry &r, Entity ofscreen_viewport_entity, Entity active_viewport_entity, StringID override_shader)
Copies properties of active viewport to offscreen viewport, sets up a material override using overrid...
Definition: objectid_viewport.cpp:62
LA_UI_API int color_to_id(unsigned char r, unsigned char g, unsigned char b)
Translates shader output color to numerial ID.
Definition: objectid_viewport.cpp:32
Main namespace for Lagrange.
Definition: AABBIGL.h:30