X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Filwrap.h;fp=source%2Filwrap.h;h=7b3766a4c4f347b4dda5bbde92700216b5b8c963;hb=a361efc05fcad11b2918f3cd7abdebe794b131d8;hp=0000000000000000000000000000000000000000;hpb=85e83ace47e5a9a8ae7263886255dd81afc69278;p=libs%2Fgl.git diff --git a/source/ilwrap.h b/source/ilwrap.h new file mode 100644 index 00000000..7b3766a4 --- /dev/null +++ b/source/ilwrap.h @@ -0,0 +1,37 @@ +/* $Id$ + +This file is part of libmspgl +Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + +#ifndef MSP_GL_ILWRAP_H_ +#define MSP_GL_ILWRAP_H_ + +#include "pixelformat.h" + +namespace Msp { +namespace GL { + +class Image +{ +private: + unsigned id; + + static bool init_done; + +public: + Image(); + ~Image(); + + void load(const std::string &); + PixelFormat get_format() const; + unsigned get_width() const; + unsigned get_height() const; + const void *get_data() const; +}; + +} // namespace GL +} // namespace Msp + +#endif