diff --git a/platform/android/mapboxgl-app.gypi b/platform/android/mapboxgl-app.gypi index 1c2f8f3b3..128a5ebba 100644 --- a/platform/android/mapboxgl-app.gypi +++ b/platform/android/mapboxgl-app.gypi @@ -72,6 +72,10 @@ './src/example_custom_layer.cpp', ], + 'include_dirs': [ + '../../include', + ], + 'variables': { 'ldflags': [ '-llog', diff --git a/platform/android/src/example_custom_layer.cpp b/platform/android/src/example_custom_layer.cpp index e85354535..a58b05758 100644 --- a/platform/android/src/example_custom_layer.cpp +++ b/platform/android/src/example_custom_layer.cpp @@ -1,6 +1,8 @@ #include #include +#include + static const GLchar * vertexShaderSource = "attribute vec2 a_pos; void main() { gl_Position = vec4(a_pos, 0, 1); }"; static const GLchar * fragmentShaderSource = "void main() { gl_FragColor = vec4(0, 1, 0, 1); }"; @@ -62,7 +64,7 @@ void nativeInitialize(void *context) { reinterpret_cast(context)->initialize(); } -void nativeRender(void *context) { +void nativeRender(void *context, const mbgl::CustomLayerRenderParameters& /*parameters*/) { reinterpret_cast(context)->render(); }