Files
UnrealEngine/Engine/Source/ThirdParty/MaterialX/MaterialX-1.38.10/source/MaterialXRenderHw/WindowCocoaWrappers.h
2025-05-18 13:04:45 +08:00

30 lines
656 B
C

//
// Copyright Contributors to the MaterialX Project
// SPDX-License-Identifier: Apache-2.0
//
#ifndef MATERIALX_WINDOWCOCOAWRAPPERS_H
#define MATERIALX_WINDOWCOCOAWRAPPERS_H
#if defined(__APPLE__)
/// Wrappers for calling into Objective-C Cocoa routines on Mac for Windowing
#ifdef __cplusplus
extern "C" {
#endif
void* NSUtilGetView(void* pWindow);
void* NSUtilCreateWindow(unsigned int width, unsigned int height, const char* title, bool batchMode);
void NSUtilShowWindow(void* pWindow);
void NSUtilHideWindow(void* pWindow);
void NSUtilSetFocus(void* pWindow);
void NSUtilDisposeWindow(void* pWindow);
#ifdef __cplusplus
}
#endif
#endif
#endif