CPP-TOOLBOX
Loading...
Searching...
No Matches
ui_render_suite_implementation.hpp
Go to the documentation of this file.
1#ifndef UI_RENDER_SUITE_IMPLEMENTATION_HPP
2#define UI_RENDER_SUITE_IMPLEMENTATION_HPP
3
5
7 public:
8 Batcher &batcher;
9
10 explicit UIRenderSuiteImpl(Batcher &batcher) : batcher(batcher) {}
11
12 void render_colored_box(const UIRect &cb) override {
13 batcher.absolute_position_with_colored_vertex_shader_batcher.queue_draw(
16 }
17
18 void render_text_box(const UITextBox &tb) override {
19 batcher.absolute_position_with_colored_vertex_shader_batcher.queue_draw(
22
23 batcher.absolute_position_with_colored_vertex_shader_batcher.queue_draw(
26 }
27
29 batcher.absolute_position_with_colored_vertex_shader_batcher.queue_draw(
32
33 batcher.absolute_position_with_colored_vertex_shader_batcher.queue_draw(
36 }
37
38 void render_input_box(const UIInputBox &ib) override {
39 batcher.absolute_position_with_colored_vertex_shader_batcher.queue_draw(
42
43 batcher.absolute_position_with_colored_vertex_shader_batcher.queue_draw(
46 }
47
48 void render_dropdown(const UIDropdown &dd) override {
49 batcher.absolute_position_with_colored_vertex_shader_batcher.queue_draw(
52
53 batcher.absolute_position_with_colored_vertex_shader_batcher.queue_draw(
56 }
57
61 void render_dropdown_option(const UIDropdownOption &udo) override {
62
63 auto text_ivpsc = udo.text_ivpsc;
64 auto ivpsc = udo.background_ivpsc;
65
66 batcher.absolute_position_with_colored_vertex_shader_batcher.queue_draw(
67 text_ivpsc.id, text_ivpsc.indices, text_ivpsc.xyz_positions, text_ivpsc.rgb_colors,
69
70 batcher.absolute_position_with_colored_vertex_shader_batcher.queue_draw(
71 ivpsc.id, ivpsc.indices, ivpsc.xyz_positions, ivpsc.rgb_colors, udo.modified_signal.has_just_changed());
72 }
73};
74
75#endif // UI_RENDER_SUITE_IMPLEMENTATION_HPP
Interface for UI rendering operations.
Definition ui.hpp:329
bool has_just_changed() const
Definition temporal_binary_signal.cpp:113
void render_dropdown(const UIDropdown &dd) override
Render a dropdown menu.
Definition ui_render_suite_implementation.hpp:48
void render_colored_box(const UIRect &cb) override
Render a colored box.
Definition ui_render_suite_implementation.hpp:12
void render_clickable_text_box(const UIClickableTextBox &cr) override
Render a clickable text box.
Definition ui_render_suite_implementation.hpp:28
void render_dropdown_option(const UIDropdownOption &udo) override
Definition ui_render_suite_implementation.hpp:61
void render_input_box(const UIInputBox &ib) override
Render an input box.
Definition ui_render_suite_implementation.hpp:38
Batcher & batcher
Definition ui_render_suite_implementation.hpp:8
UIRenderSuiteImpl(Batcher &batcher)
Definition ui_render_suite_implementation.hpp:10
void render_text_box(const UITextBox &tb) override
Render a text box.
Definition ui_render_suite_implementation.hpp:18
std::vector< glm::vec3 > xyz_positions
Definition draw_info.hpp:138
std::vector< unsigned int > indices
Definition draw_info.hpp:137
std::vector< glm::vec3 > rgb_colors
Definition draw_info.hpp:139
int id
Definition draw_info.hpp:136
Definition ui.hpp:62
draw_info::IVPColor text_drawing_ivpsc
Definition ui.hpp:67
TemporalBinarySignal modified_signal
Definition ui.hpp:72
draw_info::IVPColor ivpsc
Definition ui.hpp:66
Definition ui.hpp:81
draw_info::IVPColor background_ivpsc
Definition ui.hpp:95
TemporalBinarySignal modified_signal
Definition ui.hpp:98
draw_info::IVPColor text_ivpsc
Definition ui.hpp:96
Definition ui.hpp:107
draw_info::IVPColor dropdown_text_ivpsc
Definition ui.hpp:119
draw_info::IVPColor dropdown_background
Definition ui.hpp:118
TemporalBinarySignal modified_signal
Definition ui.hpp:127
Definition ui.hpp:141
TemporalBinarySignal modified_signal
Definition ui.hpp:152
draw_info::IVPColor background_ivpsc
Definition ui.hpp:144
draw_info::IVPColor text_drawing_ivpsc
Definition ui.hpp:145
Definition ui.hpp:35
draw_info::IVPColor ivpsc
Definition ui.hpp:37
TemporalBinarySignal modified_signal
Definition ui.hpp:39
Definition ui.hpp:46
draw_info::IVPColor text_drawing_ivpsc
Definition ui.hpp:49
TemporalBinarySignal modified_signal
Definition ui.hpp:52
draw_info::IVPColor background_ivpsc
Definition ui.hpp:48