Add convenience accessors to GLTexture for the width and height.

svn path=/trunk/KDE/kdebase/workspace/; revision=1099477
This commit is contained in:
Fredrik Höglund 2010-03-05 17:09:22 +00:00
parent 423ce5e170
commit cb97465581

View file

@ -129,6 +129,8 @@ class KWIN_EXPORT GLTexture
bool isNull() const;
QSize size() const;
int width() const { return mSize.width(); } /// @since 4.5
int height() const { return mSize.height(); } /// @since 4.5
virtual bool load( const QImage& image, GLenum target = GL_TEXTURE_2D );
virtual bool load( const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D );