The interface you're looking for is PPB_OpenGLES2
. It can be found in $NACL_SDK_ROOT/include/ppapi/c/ppb_opengles2.h
.
You can use it like this:
ppb_opengles_interface = (PPB_OpenGLES2*)get_browser(PPB_OPENGLES2_INTERFACE);
See the auto-generated documentation for it here:
https://developers.google.com/native-client/pepperc/struct_p_p_b___open_g_l_e_s2
The source for the "extension library" described in your link is also available in the SDK. You can look at the source for it in $NACL_SDK_ROOT/src/ppapi_gles2
.