mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025973: Visualization, TKOpenGl - support EAGLContext as alternative to NSOpenGLContext
OpenGl_FrameBuffer::InitWithRB() - add method to initialize FBO with Render Buffer Objects. OpenGl_FrameBuffer::InitWrapper() - add new method to initialize FBO from currently bound in context. Aspect_RenderingContext - define type explicitly to EAGLContext* / NSOpenGLContext* for ARC. OpenGl_Window - allow initialization from alien context for OS X / iOS.
This commit is contained in:
@@ -22,7 +22,25 @@
|
||||
#ifndef _Aspect_RenderingContext_HeaderFile
|
||||
#define _Aspect_RenderingContext_HeaderFile
|
||||
|
||||
typedef void* Aspect_RenderingContext; /* GLXContext under UNIX */
|
||||
/* HGLRC under WNT */
|
||||
#if defined(__APPLE__) && !defined(MACOSX_USE_GLX)
|
||||
#import <TargetConditionals.h>
|
||||
#if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
|
||||
#ifdef __OBJC__
|
||||
@class EAGLContext;
|
||||
#else
|
||||
struct EAGLContext;
|
||||
#endif
|
||||
typedef EAGLContext* Aspect_RenderingContext;
|
||||
#else
|
||||
#ifdef __OBJC__
|
||||
@class NSOpenGLContext;
|
||||
#else
|
||||
struct NSOpenGLContext;
|
||||
#endif
|
||||
typedef NSOpenGLContext* Aspect_RenderingContext;
|
||||
#endif
|
||||
#else
|
||||
typedef void* Aspect_RenderingContext; // GLXContext under UNIX
|
||||
#endif
|
||||
|
||||
#endif /* _Aspect_RenderingContext_HeaderFile */
|
||||
|
Reference in New Issue
Block a user