diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-03-07 13:08:30 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-03-12 11:03:54 +0100 |
commit | cb64c380fbbd209cb68af60e76b7a770805353a8 (patch) | |
tree | 77b790ae49e8f5877be599a0dad2f413a98da43f /src/mbgl/gl | |
parent | 54847ea98698c85da156874dc84088772599ee3b (diff) | |
download | qtlocation-mapboxgl-cb64c380fbbd209cb68af60e76b7a770805353a8.tar.gz |
[core] add texture bindings to draw call invocations
Diffstat (limited to 'src/mbgl/gl')
-rw-r--r-- | src/mbgl/gl/program.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mbgl/gl/program.hpp b/src/mbgl/gl/program.hpp index df48dfea38..050ec6c268 100644 --- a/src/mbgl/gl/program.hpp +++ b/src/mbgl/gl/program.hpp @@ -20,7 +20,7 @@ namespace mbgl { namespace gl { -template <class P, class As, class Us> +template <class P, class As, class Us, class TBs> class Program { public: using Primitive = P; @@ -29,6 +29,7 @@ public: using UniformValues = typename Uniforms::Values; using AttributeBindings = typename Attributes::Bindings; + using TextureBindings = TBs; Program(Context& context, const std::string& vertexSource, const std::string& fragmentSource) : program( @@ -122,11 +123,14 @@ public: const UniformValues& uniformValues, gl::VertexArray& vertexArray, const AttributeBindings& attributeBindings, + const TextureBindings& textureBindings, const gfx::IndexBuffer& indexBuffer, std::size_t indexOffset, std::size_t indexLength) { static_assert(std::is_same<Primitive, typename DrawMode::Primitive>::value, "incompatible draw mode"); + (void)textureBindings; + context.setDrawMode(drawMode); context.setDepthMode(depthMode); context.setStencilMode(stencilMode); |