HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WindowCocoaWrappers.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_WINDOWCOCOAWRAPPERS_H
7 #define MATERIALX_WINDOWCOCOAWRAPPERS_H
8 
9 #if defined(__APPLE__)
10 
11 /// Wrappers for calling into Objective-C Cocoa routines on Mac for Windowing
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 void* NSUtilGetView(void* pWindow);
17 void* NSUtilCreateWindow(unsigned int width, unsigned int height, const char* title, bool batchMode);
18 void NSUtilShowWindow(void* pWindow);
19 void NSUtilHideWindow(void* pWindow);
20 void NSUtilSetFocus(void* pWindow);
21 void NSUtilDisposeWindow(void* pWindow);
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif
28 
29 #endif
GLint GLsizei GLsizei height
Definition: glcorearb.h:103
GLint GLsizei width
Definition: glcorearb.h:103