Vuo  2.4.0
VuoGlContext.h
Go to the documentation of this file.
1
10#pragma once
11
13#include <OpenGL/OpenGL.h>
14
15#ifdef __cplusplus
16extern "C"
17{
18#endif
19
23typedef void * VuoGlContext;
24
26
27void VuoGlContext_setGlobalRootContext(void *rootContext);
28
30
31void VuoGlContext_perform(void (^function)(CGLContextObj cgl_ctx));
32
33void 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
41void *VuoGlContext_makePlatformPixelFormat(bool hasDepthBuffer, bool openGL32Core, GLint displayMask);
42
44
45void VuoGlContext_setInfoLogging(bool enabled);
46
47void _VGL(CGLContextObj cgl_ctx, const char *file, const unsigned int linenumber, const char *func);
48
64#define VGL() _VGL(cgl_ctx, __FILE__, __LINE__, __func__);
65
66#ifdef __cplusplus
67}
68#endif