Vuo  2.0.2
VuoGlContext.h
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include <OpenGL/OpenGL.h>
13 
14 #ifdef __cplusplus
15 extern "C"
16 {
17 #endif
18 
22 typedef void * VuoGlContext;
23 
25 
26 void VuoGlContext_setGlobalRootContext(void *rootContext);
27 
29 
30 void VuoGlContext_perform(void (^function)(CGLContextObj cgl_ctx));
31 
32 void VuoGlContext_disuseF(VuoGlContext glContext, const char *file, const unsigned int linenumber, const char *func);
38 #define VuoGlContext_disuse(glContext) VuoGlContext_disuseF(glContext, __FILE__, __LINE__, __func__)
39 
40 void *VuoGlContext_makePlatformPixelFormat(bool hasDepthBuffer, bool openGL32Core, GLint displayMask);
41 
43 
44 void _VGL(CGLContextObj cgl_ctx, const char *file, const unsigned int linenumber, const char *func);
45 
61 #define VGL() _VGL(cgl_ctx, __FILE__, __LINE__, __func__);
62 
63 #ifdef __cplusplus
64 }
65 #endif