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