Add convenience accessors to GLTexture for the width and height.
svn path=/trunk/KDE/kdebase/workspace/; revision=1099477
This commit is contained in:
parent
423ce5e170
commit
cb97465581
1 changed files with 2 additions and 0 deletions
|
@ -129,6 +129,8 @@ class KWIN_EXPORT GLTexture
|
||||||
|
|
||||||
bool isNull() const;
|
bool isNull() const;
|
||||||
QSize size() 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 QImage& image, GLenum target = GL_TEXTURE_2D );
|
||||||
virtual bool load( const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D );
|
virtual bool load( const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D );
|
||||||
|
|
Loading…
Reference in a new issue