From cb97465581b6335604f15c2432797d4f9190c6c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Fri, 5 Mar 2010 17:09:22 +0000 Subject: [PATCH] Add convenience accessors to GLTexture for the width and height. svn path=/trunk/KDE/kdebase/workspace/; revision=1099477 --- lib/kwinglutils.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/kwinglutils.h b/lib/kwinglutils.h index 219a5f5d1f..f7e2e23e3b 100644 --- a/lib/kwinglutils.h +++ b/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 );