gl::State#
Helper class for optimizing gl calls count
| Header: | #include <AUI/GL/State.h> |
| CMake: | aui_link(my_target PUBLIC aui::views) |
Examples#
examples/7guis/cells/src/main.cpp
7GUIs Cells — Spreadsheet processor (Excel).
examples/7guis/flight_booker/src/main.cpp
7GUIs Flight Booker — Flight Booker.
};
}
/// [date_field]
struct State {
DateTextFieldState departureDate { .parsed = system_clock::now() }, returnDate { .parsed = system_clock::now() };
AProperty<bool> isReturnFlight = false;
bool isValid() const {
if (!departureDate.parsed->hasValue()) {
return false;
examples/7guis/circle_drawer/src/main.cpp
7GUIs Circle Drawer — Undo, redo, dialog control.
examples/ui/opengl_simple/src/main.cpp
OpenGL Example — Demonstrates how to integrate custom OpenGL rendering with AUI Framework.
examples/ui/views/src/ExampleWindow.cpp
Views Example — All-in-one views building example.
examples/ui/infinite_lazy_list/src/main.cpp
Infinite Lazy List — Usage of AUI_DECLARATIVE_FOR to make an infinite lazy list.