Skip to content

AConstraints#

Header:#include <AUI/Util/AConstraints.hpp>
CMake:aui_link(my_target PUBLIC aui::views)

Examples#

examples/app/game_of_life/src/main.cpp

Game of Life — Game of Life implementation that uses advanced large dynamic data rendering techniques such as ITexture, AImage to be GPU friendly. The computation is performed in AThreadPool.

        (*mCells)[position] = !(*mCells)[position];
        updateTexture();
    }

    glm::ivec2 onIntrinsicMeasure(AConstraints constraints) override {
      return mCells->size() * int(SCALE);
    }

private:
    _<Cells> mCells;