HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GLCocoaWrappers.h
Go to the documentation of this file.
1 //
2 // Copyright Contributors to the MaterialX Project
3 // SPDX-License-Identifier: Apache-2.0
4 //
5 
6 #ifndef MATERIALX_GLCOCOAWRAPPERS_H
7 #define MATERIALX_GLCOCOAWRAPPERS_H
8 
9 #if defined(__APPLE__)
10 
11 /// Wrappers for calling into OpenGL related Objective-C Cocoa routines on Mac
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 // OpenGL specific routines
17 void* NSOpenGLChoosePixelFormatWrapper(bool allRenders, int bufferType, int colorSize, int depthFormat,
18  int stencilFormat, int auxBuffers, int accumSize, bool minimumPolicy,
19  bool accelerated, bool mp_safe, bool stereo, bool supportMultiSample);
20 void NSOpenGLReleasePixelFormat(void* pPixelFormat);
21 void NSOpenGLReleaseContext(void* pContext);
22 void* NSOpenGLCreateContextWrapper(void* pPixelFormat, void *pDummyContext);
23 void NSOpenGLSetDrawable(void* pContext, void* pView);
24 void NSOpenGLMakeCurrent(void* pContext);
25 void* NSOpenGLGetCurrentContextWrapper();
26 void NSOpenGLSwapBuffers(void* pContext);
27 void NSOpenGLClearCurrentContext();
28 void NSOpenGLDestroyContext(void** pContext);
29 void NSOpenGLDestroyCurrentContext(void** pContext);
30 void NSOpenGLClearDrawable(void* pContext);
31 void NSOpenGLDescribePixelFormat(void* pPixelFormat, int attrib, int* vals);
32 void NSOpenGLGetInteger(void* pContext, int param, int* vals);
33 void NSOpenGLUpdate(void* pContext);
34 void* NSOpenGLGetWindow(void* pView);
35 void NSOpenGLInitializeGLLibrary();
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif
42 
43 #endif
GLenum GLfloat param
Definition: glcorearb.h:104