Pasaeta de "include-what-you-use" per arreglar els includes

Renombrats alguns fitxers per consistencia
This commit is contained in:
2024-09-29 06:24:11 +02:00
parent ac3340c39f
commit 28df97ea94
82 changed files with 616 additions and 350 deletions

View File

@@ -1,9 +1,12 @@
#pragma once
#include <SDL2/SDL.h>
#include <stdio.h>
#include <string>
#include <vector>
#include <SDL2/SDL_blendmode.h> // for SDL_BlendMode
#include <SDL2/SDL_pixels.h> // for SDL_PIXELFORMAT_RGBA8888, SDL_PixelF...
#include <SDL2/SDL_rect.h> // for SDL_Point, SDL_Rect
#include <SDL2/SDL_render.h> // for SDL_Renderer, SDL_FLIP_NONE, SDL_TEX...
#include <SDL2/SDL_stdinc.h> // for Uint8, Uint32, Uint16
#include <string> // for string, basic_string
#include <vector> // for vector
// Definiciones de tipos
struct surface_s
@@ -46,13 +49,13 @@ private:
public:
// Constructor
Texture(SDL_Renderer *renderer, std::string path = "", bool verbose = false);
Texture(SDL_Renderer *renderer, std::string path = "");
// Destructor
~Texture();
// Carga una imagen desde un fichero
bool loadFromFile(std::string path, bool verbose = false);
bool loadFromFile(std::string path);
// Crea una textura en blanco
bool createBlank(int width, int height, SDL_PixelFormatEnum format = SDL_PIXELFORMAT_RGBA8888, SDL_TextureAccess = SDL_TEXTUREACCESS_STREAMING);