[android] Add CustomLayerRenderParameters to example code
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include <jni.h>
|
||||
#include <GLES2/gl2.h>
|
||||
|
||||
#include <mbgl/style/types.hpp>
|
||||
|
||||
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<ExampleCustomLayer*>(context)->initialize();
|
||||
}
|
||||
|
||||
void nativeRender(void *context) {
|
||||
void nativeRender(void *context, const mbgl::CustomLayerRenderParameters& /*parameters*/) {
|
||||
reinterpret_cast<ExampleCustomLayer*>(context)->render();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user