summaryrefslogtreecommitdiff
path: root/canvas/source/opengl/ogl_buffercontext.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/opengl/ogl_buffercontext.hxx')
-rw-r--r--canvas/source/opengl/ogl_buffercontext.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/canvas/source/opengl/ogl_buffercontext.hxx b/canvas/source/opengl/ogl_buffercontext.hxx
index 7d85e9a3791d..a99446b7ad2c 100644
--- a/canvas/source/opengl/ogl_buffercontext.hxx
+++ b/canvas/source/opengl/ogl_buffercontext.hxx
@@ -10,20 +10,25 @@
#ifndef INCLUDED_CANVAS_SOURCE_OPENGL_OGL_BUFFERCONTEXT_HXX
#define INCLUDED_CANVAS_SOURCE_OPENGL_OGL_BUFFERCONTEXT_HXX
+#include <GL/glew.h>
+
#include <sal/config.h>
#include <boost/shared_ptr.hpp>
+
namespace oglcanvas
{
struct IBufferContext
{
virtual ~IBufferContext() {}
- /// start render to buffer. changes gl current context
+ /// start render to buffer. changes current framebuffer
virtual bool startBufferRendering() = 0;
- /// end render to buffer. switches to window context, and selects rendered texture
+ /// end render to buffer. switches to default framebuffer
virtual bool endBufferRendering() = 0;
+
+ virtual GLuint getTextureId() = 0;
};
typedef ::boost::shared_ptr<IBufferContext> IBufferContextSharedPtr;