Created
June 23, 2020 18:19
-
-
Save sakex/f6161d642b43b07cda104b0a7c897bfc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// main.cpp | |
#include <GUI/engine.hpp> | |
#include "CounterButton.hpp" | |
int main() { | |
// Instantiate the hypothetical engine | |
Engine engine(); | |
// Instantiate the button | |
auto * counter = new CounterButton(); | |
// Adds button to the view | |
engine.addButton(counter); | |
// Renders the hypothetical view | |
engine.render(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment