This repository has been archived on 2025-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
NFRev1/Game/src/Game.cpp

24 lines
476 B
C++

#include "NothinFancy.h"
#include "MainState.h"
int main(int argc, char* argv[]) {
//New scope to test Application destructor
{
nf::Config conf = { 1280, 720, false, "Example Game" };
nf::Application app(conf);
//app.setWindowIcon(...);
// app.setWindowCursor(...);
//Has to be on the heap for some reason
MainState* test = new MainState;
app.addState(test, "Main State");
app.setDefaultState("Main State");
app.run();
delete test;
}
return 0;
}