#ifndef IMAGE_H #define IMAGE_H #include #include class Image { public: Image(); Image(const std::string& filename); ~Image(); void load(const std::string& filename); unsigned int w() const; unsigned int h() const; unsigned int f() const; const void* d() const; protected: unsigned int width; unsigned int height; unsigned int format; void* data; }; #endif