#include #include using namespace Frontend; using namespace Frontend::Utils; using namespace Frontend::Utils::Simple; int main(int argc, char** argv) { SimpleSetup setup(GUI::CreateNativeWindowManager(), Graphics::OpenFrontendGL2CG()); setup.SetResolution(800, 600); setup.SetTitle("Hello Frontend!\n"); setup.Start(); Keyboard keyboard(setup.GetWindow()); Mouse mouse(setup.GetWindow()); while (setup.Update()) { if (keyboard.KeyDown(GUI::KeySpace)) { setup.GetGraphicsDevice()->Clear(Graphics::ClearBuffersAll, 0, 1, 0, 0, 1, 0); } else { setup.GetGraphicsDevice()->Clear(Graphics::ClearBuffersAll, 1, 0, 0, 0, 1, 0); } } }