eliminada la dependencia de sdl2_image

This commit is contained in:
2024-08-21 17:41:37 +02:00
parent 33e1c82396
commit dca521d148
5 changed files with 7957 additions and 36 deletions
+1 -10
View File
@@ -1,5 +1,4 @@
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "texture.h"
#include "ball.h"
#include "defines.h"
@@ -98,14 +97,7 @@ bool init()
// Initialize renderer color
SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF);
// Initialize PNG loading
int imgFlags = IMG_INIT_PNG;
if (!(IMG_Init(imgFlags) & imgFlags))
{
printf("SDL_image could not initialize! SDL_image Error: %s\n", IMG_GetError());
success = false;
}
// Establece el tamaño del renderizador
SDL_RenderSetLogicalSize(renderer, SCREEN_WIDTH, SCREEN_HEIGHT);
}
}
@@ -144,7 +136,6 @@ void close()
deleteBalls();
// Quit SDL subsystems
IMG_Quit();
SDL_Quit();
}