X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture2d.h;h=ef6261cb98678d7efdfb24f0934e06453f0cbc0e;hp=86c2a89bccb700b87e0424aa7599a17fdc7d7337;hb=84bc56b96c21c831104a22e0cbd0f3b72ab5d8c3;hpb=7adcad3b40a03000a82e32db4523761c218309b8 diff --git a/source/texture2d.h b/source/texture2d.h index 86c2a89b..ef6261cb 100644 --- a/source/texture2d.h +++ b/source/texture2d.h @@ -14,7 +14,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