#include <gl_proc_table.h>
|
virtual | ~GlProcTable () |
|
virtual void | GenTextures (GLsizei n, GLuint *textures) const |
|
virtual void | DeleteTextures (GLsizei n, const GLuint *textures) const |
|
virtual void | BindTexture (GLenum target, GLuint texture) const |
|
virtual void | TexParameteri (GLenum target, GLenum pname, GLint param) const |
|
virtual void | TexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *data) const |
|
Definition at line 18 of file gl_proc_table.h.
◆ ~GlProcTable()
flutter::GlProcTable::~GlProcTable |
( |
| ) |
|
|
virtualdefault |
◆ GlProcTable()
flutter::GlProcTable::GlProcTable |
( |
| ) |
|
|
protecteddefault |
◆ BindTexture()
void flutter::GlProcTable::BindTexture |
( |
GLenum |
target, |
|
|
GLuint |
texture |
|
) |
| const |
|
virtual |
◆ Create()
std::shared_ptr< GlProcTable > flutter::GlProcTable::Create |
( |
| ) |
|
|
static |
Definition at line 11 of file gl_proc_table.cc.
12 auto gl = std::shared_ptr<GlProcTable>(
new GlProcTable());
15 reinterpret_cast<GenTexturesProc
>(::eglGetProcAddress(
"glGenTextures"));
16 gl->delete_textures_ =
reinterpret_cast<DeleteTexturesProc
>(
17 ::eglGetProcAddress(
"glDeleteTextures"));
19 reinterpret_cast<BindTextureProc
>(::eglGetProcAddress(
"glBindTexture"));
20 gl->tex_parameteri_ =
reinterpret_cast<TexParameteriProc
>(
21 ::eglGetProcAddress(
"glTexParameteri"));
23 reinterpret_cast<TexImage2DProc
>(::eglGetProcAddress(
"glTexImage2D"));
25 if (!gl->gen_textures_ || !gl->delete_textures_ || !gl->bind_texture_ ||
26 !gl->tex_parameteri_ || !gl->tex_image_2d_) {
References GlProcTable().
Referenced by flutter::FlutterWindowsEngine::FlutterWindowsEngine().
◆ DeleteTextures()
void flutter::GlProcTable::DeleteTextures |
( |
GLsizei |
n, |
|
|
const GLuint * |
textures |
|
) |
| const |
|
virtual |
◆ GenTextures()
void flutter::GlProcTable::GenTextures |
( |
GLsizei |
n, |
|
|
GLuint * |
textures |
|
) |
| const |
|
virtual |
◆ TexImage2D()
void flutter::GlProcTable::TexImage2D |
( |
GLenum |
target, |
|
|
GLint |
level, |
|
|
GLint |
internalformat, |
|
|
GLsizei |
width, |
|
|
GLsizei |
height, |
|
|
GLint |
border, |
|
|
GLenum |
format, |
|
|
GLenum |
type, |
|
|
const void * |
data |
|
) |
| const |
|
virtual |
Definition at line 55 of file gl_proc_table.cc.
64 tex_image_2d_(target, level, internalformat, width, height, border, format,
References type.
◆ TexParameteri()
void flutter::GlProcTable::TexParameteri |
( |
GLenum |
target, |
|
|
GLenum |
pname, |
|
|
GLint |
param |
|
) |
| const |
|
virtual |
The documentation for this class was generated from the following files: