sfw/game_application.h

22 lines
358 B
C
Raw Normal View History

#ifndef GAME_APPLICATION_H
#define GAME_APPLICATION_H
#include "render_core/application.h"
#include "game_scene.h"
class GameApplication : public Application {
2024-01-03 13:52:39 +01:00
SFW_OBJECT(GameApplication, Application);
public:
2024-01-03 14:01:29 +01:00
GameApplication() {
scene = Ref<Scene>(memnew(GameScene()));
2024-01-03 13:52:39 +01:00
}
2024-01-03 13:52:39 +01:00
~GameApplication() {
scene.unref();
2024-01-03 13:52:39 +01:00
}
};
#endif // GAME_APPLICATION_H