OLD | NEW |
---|---|
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 Loading... | |
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 typedef void (*MGLFunctionPointerType)(void); | |
jamesr
2015/09/21 19:38:50
this should go in mgl_types.h and have a bit of gu
Petr Hosek
2015/09/22 20:06:54
I've decided to use `void *` instead which is more
| |
59 | |
60 MGLFunctionPointerType MGLGetProcAddress(const char* procname); | |
jamesr
2015/09/21 19:38:50
this should be documented to say what it does, wha
Petr Hosek
2015/09/22 20:06:54
Done.
| |
61 | |
58 #ifdef __cplusplus | 62 #ifdef __cplusplus |
59 } // extern "C" | 63 } // extern "C" |
60 #endif | 64 #endif |
61 | 65 |
62 #endif // MOJO_PUBLIC_C_GPU_MGL_MGL_H_ | 66 #endif // MOJO_PUBLIC_C_GPU_MGL_MGL_H_ |
OLD | NEW |