#pragma once #include #include // Texture wrapper class class Texture { private: SDL_Renderer *renderer; SDL_Texture *texture; // Image dimensions int width; int height; public: // Initializes variables Texture(SDL_Renderer *renderer); Texture(SDL_Renderer *renderer, std::string filepath); // Deallocates memory ~Texture(); // Loads image at specified path bool loadFromFile(std::string path); // Deallocates texture void free(); // Renders texture at given point void render(SDL_Rect *src = nullptr, SDL_Rect *dst = nullptr); // Gets image dimensions int getWidth(); int getHeight(); // Modulación de color void setColor(int r, int g, int b); };