createFromNativePointers

Creates an OpenGL interface object.

There must be a current OpenGL context set (i.e., by calling eglMakeCurrent before this), otherwise this function will fail. For more information refer to skia GrGLMakeAssembledInterface function.

For example, this GetGLFuncPtrByName function could be passed as a fPtr:

typedef void(*GLFuncPtr)();
GLFuncPtr GetGLFuncPtrByName(void* ctx, const char* name);

Parameters

ctxPtr

native pointer to the custom context, that fPtr will be called with.

fPtr

native pointer to the function that takes ctxPtr and the OpenGL function name, and returns a function pointer of that OpenGL function (see skia GrGLGetProc).