Pasaeta de include-what-you-use

Acabada de perfilar la classe PathSprite
Menjeades declaracions de utils.h als fitxers que toca
This commit is contained in:
2024-10-28 20:45:24 +01:00
parent 0fe371653a
commit 787cb6366f
55 changed files with 768 additions and 805 deletions

View File

@@ -1,15 +1,16 @@
#include "texture.h"
#include "utils.h"
#include <SDL2/SDL_error.h> // para SDL_GetError
#include <SDL2/SDL_surface.h> // para SDL_CreateRGBSurfaceWithFormatFrom
#include <fcntl.h> // para SEEK_END, SEEK_SET
#include <stdio.h> // para fseek, fclose, fopen, fread, ftell, NULL
#include <stdlib.h> // para malloc, free, exit
#include <iostream> // para basic_ostream, operator<<, cout, endl
#include <fstream>
#include <sstream>
#include "gif.c" // para LoadGif, LoadPalette
#include <SDL2/SDL_error.h> // Para SDL_GetError
#include <SDL2/SDL_surface.h> // Para SDL_CreateRGBSurfaceWithFormatFrom
#include <fcntl.h> // Para SEEK_END, SEEK_SET
#include <stdio.h> // Para fseek, fclose, fopen, fread, ftell, FILE
#include <stdlib.h> // Para free, malloc
#include <fstream> // Para basic_ostream, operator<<, basic_ifstream
#include <iostream> // Para cerr, cout
#include <stdexcept> // Para runtime_error
#include "gif.c" // Para LoadGif, LoadPalette
#include "utils.h" // Para getFileName, printWithDots
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h" // para stbi_failure_reason, stbi_image_free