summaryrefslogtreecommitdiff
path: root/vcl/inc/opengl
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-11-10 13:46:12 -0500
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-11 11:08:23 +0100
commit243047fd68820e15e13dd9afd33122aef20ca377 (patch)
tree78a436f00c586da307c6a9a4960e3d8977fccb71 /vcl/inc/opengl
parent7baadae3e8f4b0338234bd90135e90a355dc1dba (diff)
vcl: Use a different FBO when rendering using a VirtualDevice
Change-Id: I8cb97a4057c06ca09adfcac8dcd3f61ac9508430
Diffstat (limited to 'vcl/inc/opengl')
-rw-r--r--vcl/inc/opengl/salbmp.hxx2
-rw-r--r--vcl/inc/opengl/texture.hxx3
2 files changed, 4 insertions, 1 deletions
diff --git a/vcl/inc/opengl/salbmp.hxx b/vcl/inc/opengl/salbmp.hxx
index 6f7a03af09d4..77ac90bbbc55 100644
--- a/vcl/inc/opengl/salbmp.hxx
+++ b/vcl/inc/opengl/salbmp.hxx
@@ -81,7 +81,7 @@ public:
public:
- bool Create( OpenGLContext& rContext, long nX, long nY, long nWidth, long nHeight );
+ bool Create( OpenGLContext& rContext, OpenGLTextureSharedPtr pTex, long nX, long nY, long nWidth, long nHeight );
bool Draw( OpenGLContext& rContext, const SalTwoRect& rPosAry );
GLuint GetTexture( OpenGLContext& rContext ) const;
diff --git a/vcl/inc/opengl/texture.hxx b/vcl/inc/opengl/texture.hxx
index f9d3ad864291..c0b6541d7700 100644
--- a/vcl/inc/opengl/texture.hxx
+++ b/vcl/inc/opengl/texture.hxx
@@ -39,6 +39,9 @@ public:
virtual ~OpenGLTexture();
GLuint Id() const;
+ int GetWidth() const;
+ int GetHeight() const;
+
void Bind();
void Unbind();
bool Draw();