#pragma once #include "api/baseResource.h" #include "facade/SdlContext.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; private: void load(std::unique_ptr res); private: SDL_Texture* m_texture; friend class SdlContext; }; } // namespace crepe