Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1604)

Unified Diff: mojo/public/c/gpu/MGL/mgl.h

Issue 1354353002: Add GetProcAddress to OpenGL control interface (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Review feedback addressed Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/c/gpu/MGL/mgl.h
diff --git a/mojo/public/c/gpu/MGL/mgl.h b/mojo/public/c/gpu/MGL/mgl.h
index 2633976ddbdcc82f3cc8147df3e14cd8e036320f..31efc08c1bb946e80b5257f4c8d8c5ff8882bf85 100644
--- a/mojo/public/c/gpu/MGL/mgl.h
+++ b/mojo/public/c/gpu/MGL/mgl.h
@@ -55,6 +55,14 @@ void MGLMakeCurrent(MGLContext context);
// if there is none.
MGLContext MGLGetCurrentContext(void);
+// Returns GL function usable in any context that advertise the corresponding
+// extension in their GL_EXTENSIONS string, or null for functions that the
+// implementation does not support. The implementation only advertises GL
+// functions. The return value must be cast to the proper function pointer type
+// and calling convention before use.
jamesr 2015/09/22 20:28:35 EGL has a type for the returned type that tries to
Petr Hosek 2015/09/22 23:31:26 I guess it might be useful in some cases, I change
+// |name| is the name of the GL function.
+void* MGLGetProcAddress(const char* name);
+
#ifdef __cplusplus
} // extern "C"
#endif

Powered by Google App Engine
This is Rietveld 408576698