22 #if defined(__native_client__) && defined(USE_OPENGL)
30 #include <ppapi_simple/ps.h>
32 #include <ppapi/c/ppb_graphics_3d.h>
33 #include <ppapi/c/ppb_opengles2.h>
35 #include <ppapi/gles2/gl2ext_ppapi.h>
39 const struct PPB_OpenGLES2* gles2Interface =
nullptr;
40 PP_Resource gles2Context = 0;
41 const struct PPB_Graphics3D_1_0 *graphics3dInterface =
nullptr;
43 void NaclGles::initGles()
45 gles2Interface =
static_cast<const PPB_OpenGLES2*
>(
46 PSGetInterface(PPB_OPENGLES2_INTERFACE));
47 graphics3dInterface =
static_cast<const PPB_Graphics3D_1_0*
>(
48 PSGetInterface(PPB_GRAPHICS_3D_INTERFACE_1_0));
49 gles2Context = glGetCurrentContextPPAPI();
52 reinterpret_cast<const void*
>(gles2Interface),
void log(const char *const log_text,...)