|
|
|
@ -4,7 +4,7 @@ SDL_Window* window;
|
|
|
|
|
SDL_Renderer* renderer;
|
|
|
|
|
SDL_Surface* surface;
|
|
|
|
|
SDL_Texture* texture;
|
|
|
|
|
SDL_Event event;
|
|
|
|
|
|
|
|
|
|
const int screenWidth = 800;
|
|
|
|
|
const int screenHeight = 600;
|
|
|
|
|
|
|
|
|
@ -54,19 +54,6 @@ int presentLogo(void){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int windowLoop(void){
|
|
|
|
|
while (1) {
|
|
|
|
|
SDL_PollEvent(&event);
|
|
|
|
|
if (event.type == SDL_QUIT) {
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
loadBackgroundColor();
|
|
|
|
|
presentLogo();
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int destroy(void){
|
|
|
|
|
SDL_DestroyTexture(texture);
|
|
|
|
|
SDL_DestroyRenderer(renderer);
|
|
|
|
|