aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl/opengl-sys.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/graphics/opengl/opengl-sys.h')
-rw-r--r--backends/graphics/opengl/opengl-sys.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/backends/graphics/opengl/opengl-sys.h b/backends/graphics/opengl/opengl-sys.h
index f68897ba58..ffc80a23dc 100644
--- a/backends/graphics/opengl/opengl-sys.h
+++ b/backends/graphics/opengl/opengl-sys.h
@@ -88,6 +88,7 @@ enum ContextType {
};
class Pipeline;
+class Framebuffer;
/**
* Description structure of the OpenGL (ES) context.
@@ -123,6 +124,19 @@ struct Context {
#include "backends/graphics/opengl/opengl-func.h"
#undef GL_FUNC_DEF
+ /** Currently active framebuffer. */
+ Framebuffer *activeFramebuffer;
+
+ /**
+ * Set new framebuffer.
+ *
+ * Client is responsible for any memory management related to framebuffers.
+ *
+ * @param framebuffer Framebuffer to activate.
+ * @return Formerly active framebuffer.
+ */
+ Framebuffer *setFramebuffer(Framebuffer *framebuffer);
+
//
// Wrapper functionality to handle fixed-function pipelines and
// programmable pipelines in the same fashion.