No longer need to specify an application when creating a game state

This commit is contained in:
grayson committed 2021-09-07 22:35:44 -05:00
1 parent b1efc4934e
commit 6e3a576fef
8 files changed
+20 -25

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ int main(int argc, char* argv[]) {
//app.setWindowIcon(...);
// app.setWindowCursor(...);
MainState* test = new MainState(&app);
MainState* test = new MainState;
app.addState(test, "Main State");
app.addDefaultState("Main State");
-6
View File
@@ -1,11 +1,5 @@
#include "MainState.h"
MainState::MainState(nf::Application* app) :
Gamestate(app)
{
}
void MainState::onEnter() {
Log("MainState onEnter!");
-2
View File
@@ -3,8 +3,6 @@
class MainState : public nf::Gamestate {
public:
MainState(nf::Application* app);
void onEnter() override;
void update(double deltaTime) override;