X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture2d.h;h=e06ea920a1aff896f7c1c50ed1f87fac75e7b007;hb=f098a871fc6dc7b61a5aca5581fa327e4124c036;hp=86c2a89bccb700b87e0424aa7599a17fdc7d7337;hpb=7adcad3b40a03000a82e32db4523761c218309b8;p=libs%2Fgl.git diff --git a/source/texture2d.h b/source/texture2d.h index 86c2a89b..e06ea920 100644 --- a/source/texture2d.h +++ b/source/texture2d.h @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of libmspgl +Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #ifndef MSP_GL_TEXTURE2D_H_ #define MSP_GL_TEXTURE2D_H_ @@ -14,7 +21,11 @@ public: void image(int, int, sizei, sizei, int, GLenum, GLenum, void *); void image(int, sizei, sizei, TextureFormat, void *); void image(const std::string &); + sizei get_width() const { return width_; } + sizei get_height() const { return height_; } private: + sizei width_; + sizei height_; }; } // namespace GL