summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx/context.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/gfx/context.hpp')
-rw-r--r--src/mbgl/gfx/context.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mbgl/gfx/context.hpp b/src/mbgl/gfx/context.hpp
index 1ce00f04d1..c956debcb0 100644
--- a/src/mbgl/gfx/context.hpp
+++ b/src/mbgl/gfx/context.hpp
@@ -17,6 +17,8 @@ class ProgramParameters;
namespace gfx {
+class OffscreenTexture;
+
class Context {
protected:
Context(ContextType type_, uint32_t maximumVertexBindingCount_)
@@ -124,6 +126,14 @@ protected:
TexturePixelType, TextureChannelDataType) = 0;
public:
+ virtual std::unique_ptr<gfx::OffscreenTexture> createOffscreenTexture(
+ Size, gfx::TextureChannelDataType = gfx::TextureChannelDataType::UnsignedByte) = 0;
+ virtual std::unique_ptr<gfx::OffscreenTexture> createOffscreenTexture(
+ Size,
+ gfx::Renderbuffer<gfx::RenderbufferPixelType::Depth>&,
+ gfx::TextureChannelDataType = gfx::TextureChannelDataType::UnsignedByte) = 0;
+
+public:
template <RenderbufferPixelType pixelType>
Renderbuffer<pixelType>
createRenderbuffer(const Size size) {