#pragma once #ifdef __APPLE__ #include #else #define GLFW_INCLUDE_NONE #include #ifdef __APPLE__ #include #endif #endif #include namespace renderer { class Texture { public: Texture(); ~Texture(); bool loadFromFile( const std::string& path, bool flip = true ); void bind( unsigned unit = 0 ) const; GLuint id () const { return mID; } private: GLuint mID; }; } // namespace renderer