diff --git a/Frostbite2D/src/main.cpp b/Frostbite2D/src/main.cpp index 208625f..06faaf7 100644 --- a/Frostbite2D/src/main.cpp +++ b/Frostbite2D/src/main.cpp @@ -2,51 +2,12 @@ #include #include #include -#include #include #include using namespace frostbite2D; -class TestModule : public Module { -public: - const char* getName() const override { return "TestModule"; } - - void setupModule() override { - SDL_Log("TestModule: setupModule()"); - } - - void onUpdate() override { - static int frameCount = 0; - frameCount++; - - if (frameCount % 120 == 0) { - SDL_Log("TestModule: onUpdate() - Frame %d, FPS: %d", frameCount, Application::get().fps()); - } - - if (frameCount > 600) { - SDL_Log("TestModule: Requesting quit after 600 frames"); - Application::get().quit(); - } - } - - void beforeRender() override { - glClearColor(0.2f, 0.3f, 0.8f, 1.0f); - glClear(GL_COLOR_BUFFER_BIT); - } - - void onRender() override { - } - - void afterRender() override { - } - - void destroyModule() override { - SDL_Log("TestModule: destroyModule()"); - } -}; - int main(int argc, char **argv) { AppConfig config = AppConfig::createDefault(); config.appName = "Frostbite2D Test App"; @@ -57,9 +18,6 @@ int main(int argc, char **argv) { Application &app = Application::get(); - TestModule testModule; - app.use(testModule); - if (!app.init(config)) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to initialize application!"); return -1;