#ifndef _Aspect_RenderingContext_HeaderFile
#define _Aspect_RenderingContext_HeaderFile
+#include <Standard_Macro.hxx>
+
#if defined(__APPLE__) && !defined(HAVE_XLIB)
#import <TargetConditionals.h>
#if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
#else
struct NSOpenGLContext;
#endif
+ Standard_DISABLE_DEPRECATION_WARNINGS
typedef NSOpenGLContext* Aspect_RenderingContext;
+ Standard_ENABLE_DEPRECATION_WARNINGS
#endif
#else
typedef void* Aspect_RenderingContext; // GLXContext under UNIX
}
NSView* aView = (NSView* )myPlatformWindow->NativeHandle();
+ Standard_DISABLE_DEPRECATION_WARNINGS
[aGLContext setView: aView];
+ Standard_ENABLE_DEPRECATION_WARNINGS
isCore = (aTryCore == 1);
}
#else
// check backing store change (moving to another screen)
NSOpenGLContext* aGLCtx = myGlContext->myGContext;
+ Standard_DISABLE_DEPRECATION_WARNINGS
NSView* aView = [aGLCtx view];
+ Standard_ENABLE_DEPRECATION_WARNINGS
if (![aView respondsToSelector: @selector(convertSizeToBacking:)])
{
return;
aDefFbo.Nullify();
#else
NSOpenGLContext* aGLCtx = myGlContext->myGContext;
+Standard_DISABLE_DEPRECATION_WARNINGS
NSView* aView = [aGLCtx view];
+Standard_ENABLE_DEPRECATION_WARNINGS
NSRect aBounds = [aView bounds];
// we should call this method each time when window is resized