Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graph/main.cpp

19 lines
450 B
C++

#include <iostream>
#include <SDL.h>
int main(int argc, char* argv[]) {
SDL_Init(SDL_INIT_VIDEO);
SDL_Window* window = SDL_CreateWindow("Graph", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, 0);
bool running = true;
while(running) {
SDL_Event event = {};
while(SDL_PollEvent(&event)) {
if(event.type == SDL_QUIT)
running = false;
}
}
return 0;
}