[core] Switch to the new OpenGL abstraction

This patch will make Mapbox GL Core never use OpenGL
directly. We should consider locking into OpenGL ES 2.0
to simplify the code path and remove #ifdefs.
This commit is contained in:
Thiago Marcos P. Santos
2019-02-08 15:45:05 +02:00
parent 470b01847d
commit 690833ef92
29 changed files with 51 additions and 130 deletions

View File

@@ -1,10 +1,12 @@
#include <mbgl/gl/attribute.hpp>
#include <mbgl/gl/context.hpp>
#include <mbgl/gl/gl.hpp>
#include <mbgl/gl/defines.hpp>
namespace mbgl {
namespace gl {
using namespace platform;
void bindAttributeLocation(Context& context, ProgramID id, AttributeLocation location, const char* name) {
// We're using sequentially numberered attribute locations starting with 0. Therefore we can use
// the location as a proxy for the number of attributes.