Add convenience accessors to GLTexture for the width and height.

svn path=/trunk/KDE/kdebase/workspace/; revision=1099477
remotes/origin/Plasma/5.0
Fredrik Höglund 16 years ago
parent 423ce5e170
commit cb97465581
  1. 2
      lib/kwinglutils.h

@ -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 );

Loading…
Cancel
Save