[core] extract attribute structs and gl::Vertex to separate namespace

This commit is contained in:
Konstantin Käfer
2019-02-28 14:28:58 +01:00
parent 3f1d754369
commit 95deab32ce
51 changed files with 392 additions and 458 deletions

View File

@@ -8,6 +8,7 @@
#include <mbgl/programs/background_program.hpp>
#include <mbgl/util/tile_cover.hpp>
#include <mbgl/map/transform_state.hpp>
#include <mbgl/gl/context.hpp>
namespace mbgl {
@@ -47,7 +48,7 @@ void RenderBackgroundLayer::render(PaintParameters& parameters, RenderSource*) {
// glClear rather than this method.
const Properties<>::PossiblyEvaluated properties;
const BackgroundProgram::PaintPropertyBinders paintAttributeData(properties, 0);
const BackgroundProgram::Binders paintAttributeData(properties, 0);
auto draw = [&](auto& program, auto&& uniformValues) {
const auto allUniformValues = program.computeAllUniformValues(