diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-01-16 16:28:17 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-01-16 16:28:17 +0100 |
| commit | 63aac88ca8aac8a3142e66c5e57f6cf0d3eb4887 (patch) | |
| tree | 36f9a5be3f4a1e40d39a5767c9add9141ebd82d3 /unity-shared | |
| parent | 92976bc40e7ac347e423d9a86237a0de41c7f676 (diff) | |
CompizUtils: add operator overridden methods for SimpleTexture
(bzr r3566.5.219)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/CompizUtils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unity-shared/CompizUtils.h b/unity-shared/CompizUtils.h index 9184c6e12..a06561a49 100644 --- a/unity-shared/CompizUtils.h +++ b/unity-shared/CompizUtils.h @@ -48,6 +48,9 @@ struct SimpleTexture int width() const { return texture_.empty() ? 0 : texture_[0]->width(); } int height() const { return texture_.empty() ? 0 : texture_[0]->height(); } + operator GLTexture*() const { return texture(); } + operator GLTexture::List() const { return texture_; } + protected: GLTexture::List texture_; }; |
