MaterialX 1.38.10
Loading...
Searching...
No Matches
GLCocoaWrappers.h
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
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16// OpenGL specific routines
17void* 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);
20void NSOpenGLReleasePixelFormat(void* pPixelFormat);
21void NSOpenGLReleaseContext(void* pContext);
22void* NSOpenGLCreateContextWrapper(void* pPixelFormat, void *pDummyContext);
23void NSOpenGLSetDrawable(void* pContext, void* pView);
24void NSOpenGLMakeCurrent(void* pContext);
25void* NSOpenGLGetCurrentContextWrapper();
26void NSOpenGLSwapBuffers(void* pContext);
27void NSOpenGLClearCurrentContext();
28void NSOpenGLDestroyContext(void** pContext);
29void NSOpenGLDestroyCurrentContext(void** pContext);
30void NSOpenGLClearDrawable(void* pContext);
31void NSOpenGLDescribePixelFormat(void* pPixelFormat, int attrib, int* vals);
32void NSOpenGLGetInteger(void* pContext, int param, int* vals);
33void NSOpenGLUpdate(void* pContext);
34void* NSOpenGLGetWindow(void* pView);
35void NSOpenGLInitializeGLLibrary();
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif
42
43#endif