Skip to content

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/flight_booker/src/main.cpp

7GUIs Flight Booker - Flight Booker.

            AUI_SLOT(it)::setCustomStyle);
    };
}

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.

    AProperty<Iterator> nextAction = mStack.end();
};

struct State {
    AProperty<std::list<Circle>> circles;
    UndoStack history;
};

static constexpr auto MAX_RADIUS = 128.f;

examples/7guis/cells/src/main.cpp

7GUIs Cells - Spreadsheet processor (Excel).

using namespace declarative;
using namespace ass;

struct State {
    Spreadsheet spreadsheet{glm::uvec2 { 'Z' - 'A' + 1, 100 }};
    AProperty<AString> currentExpression;
};

static _<AView> labelTitle(AString s) {