#ifndef DEF_TEXTURE #define DEF_TEXTURE // Include #ifdef WIN32 #include #elif __APPLE__ #define GL3_PROTOTYPES 1 #include #include #else #define GL3_PROTOTYPES 1 #include #include #endif #include #include #include // Classe Textures class Texture { public: Texture(); Texture(Texture const &textureACopier); Texture(std::string fichierImage); ~Texture(); Texture& operator=(Texture const &textureACopier); bool charger(); SDL_Surface* inverserPixels(SDL_Surface *imageSource) const; GLuint getID() const; void setFichierImage(const std::string &fichierImage); private: GLuint m_id; std::string m_fichierImage; }; #endif