13 auto gl = std::shared_ptr<ProcTable>(
new ProcTable());
16 reinterpret_cast<GenTexturesProc
>(::eglGetProcAddress(
"glGenTextures"));
17 gl->delete_textures_ =
reinterpret_cast<DeleteTexturesProc
>(
18 ::eglGetProcAddress(
"glDeleteTextures"));
20 reinterpret_cast<BindTextureProc
>(::eglGetProcAddress(
"glBindTexture"));
21 gl->tex_parameteri_ =
reinterpret_cast<TexParameteriProc
>(
22 ::eglGetProcAddress(
"glTexParameteri"));
24 reinterpret_cast<TexImage2DProc
>(::eglGetProcAddress(
"glTexImage2D"));
26 if (!gl->gen_textures_ || !gl->delete_textures_ || !gl->bind_texture_ ||
27 !gl->tex_parameteri_ || !gl->tex_image_2d_) {
39 gen_textures_(n, textures);
43 delete_textures_(n, textures);
47 bind_texture_(target, texture);
51 tex_parameteri_(target, pname, param);
62 const void* data)
const {
63 tex_image_2d_(target, level, internalformat, width, height, border, format,