Flutter Engine
The Flutter Engine
GrGLCoreFunctions.h
Go to the documentation of this file.
1/*
2 * Copyright 2024 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GrGLCoreFunctions_DEFINED
9#define GrGLCoreFunctions_DEFINED
10
11//
12// https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_get_all_proc_addresses.txt
13// eglGetProcAddress() is not guaranteed to support the querying of non-extension EGL functions.
14//
15// This applies macro "M" to each core function name used by Skia.
16//
17#define GR_GL_CORE_FUNCTIONS_EACH(M) \
18 M(eglGetCurrentDisplay) \
19 M(eglQueryString) \
20 M(glActiveTexture) \
21 M(glAttachShader) \
22 M(glBindAttribLocation) \
23 M(glBindBuffer) \
24 M(glBindFramebuffer) \
25 M(glBindRenderbuffer) \
26 M(glBindTexture) \
27 M(glBlendColor) \
28 M(glBlendEquation) \
29 M(glBlendFunc) \
30 M(glBufferData) \
31 M(glBufferSubData) \
32 M(glCheckFramebufferStatus) \
33 M(glClear) \
34 M(glClearColor) \
35 M(glClearStencil) \
36 M(glColorMask) \
37 M(glCompileShader) \
38 M(glCompressedTexImage2D) \
39 M(glCompressedTexSubImage2D) \
40 M(glCopyTexSubImage2D) \
41 M(glCreateProgram) \
42 M(glCreateShader) \
43 M(glCullFace) \
44 M(glDeleteBuffers) \
45 M(glDeleteFramebuffers) \
46 M(glDeleteProgram) \
47 M(glDeleteRenderbuffers) \
48 M(glDeleteShader) \
49 M(glDeleteTextures) \
50 M(glDepthMask) \
51 M(glDisable) \
52 M(glDisableVertexAttribArray) \
53 M(glDrawArrays) \
54 M(glDrawElements) \
55 M(glEnable) \
56 M(glEnableVertexAttribArray) \
57 M(glFinish) \
58 M(glFlush) \
59 M(glFramebufferRenderbuffer) \
60 M(glFramebufferTexture2D) \
61 M(glFrontFace) \
62 M(glGenBuffers) \
63 M(glGenFramebuffers) \
64 M(glGenRenderbuffers) \
65 M(glGenTextures) \
66 M(glGenerateMipmap) \
67 M(glGetBufferParameteriv) \
68 M(glGetError) \
69 M(glGetFramebufferAttachmentParameteriv) \
70 M(glGetIntegerv) \
71 M(glGetProgramInfoLog) \
72 M(glGetProgramiv) \
73 M(glGetRenderbufferParameteriv) \
74 M(glGetShaderInfoLog) \
75 M(glGetShaderPrecisionFormat) \
76 M(glGetShaderiv) \
77 M(glGetString) \
78 M(glGetUniformLocation) \
79 M(glIsTexture) \
80 M(glLineWidth) \
81 M(glLinkProgram) \
82 M(glPixelStorei) \
83 M(glReadPixels) \
84 M(glRenderbufferStorage) \
85 M(glScissor) \
86 M(glShaderSource) \
87 M(glStencilFunc) \
88 M(glStencilFuncSeparate) \
89 M(glStencilMask) \
90 M(glStencilMaskSeparate) \
91 M(glStencilOp) \
92 M(glStencilOpSeparate) \
93 M(glTexImage2D) \
94 M(glTexParameterf) \
95 M(glTexParameterfv) \
96 M(glTexParameteri) \
97 M(glTexParameteriv) \
98 M(glTexSubImage2D) \
99 M(glUniform1f) \
100 M(glUniform1fv) \
101 M(glUniform1i) \
102 M(glUniform1iv) \
103 M(glUniform2f) \
104 M(glUniform2fv) \
105 M(glUniform2i) \
106 M(glUniform2iv) \
107 M(glUniform3f) \
108 M(glUniform3fv) \
109 M(glUniform3i) \
110 M(glUniform3iv) \
111 M(glUniform4f) \
112 M(glUniform4fv) \
113 M(glUniform4i) \
114 M(glUniform4iv) \
115 M(glUniformMatrix2fv) \
116 M(glUniformMatrix3fv) \
117 M(glUniformMatrix4fv) \
118 M(glUseProgram) \
119 M(glVertexAttrib1f) \
120 M(glVertexAttrib2fv) \
121 M(glVertexAttrib3fv) \
122 M(glVertexAttrib4fv) \
123 M(glVertexAttribPointer) \
124 M(glViewport)
125
126#endif