diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-03-21 12:43:22 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-04-05 11:49:17 +0200 |
commit | 543b678982037595895a474f3a69348dc235e0fa (patch) | |
tree | 404902164dd27e409515de5fcf9a43fe81231686 /src/mbgl/gl/context.cpp | |
parent | 5270b2ffbd4fca75f93e7052bd928ebed3ea272a (diff) | |
download | qtlocation-mapboxgl-543b678982037595895a474f3a69348dc235e0fa.tar.gz |
[core] introduce CommandEncoder object
Diffstat (limited to 'src/mbgl/gl/context.cpp')
-rw-r--r-- | src/mbgl/gl/context.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/gl/context.cpp b/src/mbgl/gl/context.cpp index fcaae59804..97c1cd24d7 100644 --- a/src/mbgl/gl/context.cpp +++ b/src/mbgl/gl/context.cpp @@ -6,6 +6,7 @@ #include <mbgl/gl/renderbuffer_resource.hpp> #include <mbgl/gl/draw_scope_resource.hpp> #include <mbgl/gl/texture.hpp> +#include <mbgl/gl/command_encoder.hpp> #include <mbgl/gl/debugging.hpp> #include <mbgl/gl/debugging_extension.hpp> #include <mbgl/gl/vertex_array_extension.hpp> @@ -691,6 +692,10 @@ void Context::setColorMode(const gfx::ColorMode& color) { colorMask = color.mask; } +std::unique_ptr<gfx::CommandEncoder> Context::createCommandEncoder() { + return std::make_unique<gl::CommandEncoder>(*this); +} + void Context::draw(const gfx::DrawMode& drawMode, std::size_t indexOffset, std::size_t indexLength) { |