#pragma once #include "SDL_rect.h" #include "api/baseResource.h" #include "api/Resource.h" #include #include namespace crepe { class Texture : public api::BaseResource{ public: Texture(const char * src); Texture(std::unique_ptr res); ~Texture(); SDL_Texture* get_texture() const; SDL_Rect& get_rect() ; private: void load(std::unique_ptr res); private: SDL_Texture* m_texture; SDL_Rect srcrect; }; } // namespace crepe