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

Side by Side 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: Use deps instead of source Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « mojo/gles2/mgl_unittest.cc ('k') | mojo/public/c/gpu/MGL/mgl_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Note: This header should be compilable as C. 5 // Note: This header should be compilable as C.
6 6
7 #ifndef MOJO_PUBLIC_C_GPU_MGL_MGL_H_ 7 #ifndef MOJO_PUBLIC_C_GPU_MGL_MGL_H_
8 #define MOJO_PUBLIC_C_GPU_MGL_MGL_H_ 8 #define MOJO_PUBLIC_C_GPU_MGL_MGL_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void MGLDestroyContext(MGLContext context); 48 void MGLDestroyContext(MGLContext context);
49 49
50 // Makes |context| the current MGLContext for the calling thread. Calling with 50 // Makes |context| the current MGLContext for the calling thread. Calling with
51 // MGL_NO_CONTEXT clears the current context. 51 // MGL_NO_CONTEXT clears the current context.
52 void MGLMakeCurrent(MGLContext context); 52 void MGLMakeCurrent(MGLContext context);
53 53
54 // Returns the currently bound context for the calling thread or MGL_NO_CONTEXT 54 // Returns the currently bound context for the calling thread or MGL_NO_CONTEXT
55 // if there is none. 55 // if there is none.
56 MGLContext MGLGetCurrentContext(void); 56 MGLContext MGLGetCurrentContext(void);
57 57
58 // Returns GL function usable in any context that advertise the corresponding
59 // extension in their GL_EXTENSIONS string, or null for functions that the
60 // implementation does not support. The implementation only advertises GL
61 // functions.
62 // |name| is the name of the GL function.
63 MGLMustCastToProperFunctionPointerType MGLGetProcAddress(const char* name);
64
58 #ifdef __cplusplus 65 #ifdef __cplusplus
59 } // extern "C" 66 } // extern "C"
60 #endif 67 #endif
61 68
62 #endif // MOJO_PUBLIC_C_GPU_MGL_MGL_H_ 69 #endif // MOJO_PUBLIC_C_GPU_MGL_MGL_H_
OLDNEW
« no previous file with comments | « mojo/gles2/mgl_unittest.cc ('k') | mojo/public/c/gpu/MGL/mgl_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698