Files
untitled-game/src/main.cpp
2025-11-23 10:10:57 +00:00

19 lines
549 B
C++

#include "engine/sdl.hpp"
#include "engine/opengl.hpp"
int main(int argc, char* argv[]) {
SDLWindow window("My SDL Application", 800, 600);
if (!window.isRunning()) { return -1; }
OpenGLContext glContext(window);
if (!glContext.isInitialized()) { return -1; }
window.setPosition(SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
window.showWindow();
while (window.isRunning()) {
window.pollEvents();
// Application logic and rendering would go here
glContext.swapBuffers();
}
return 0;
}