0025973: Visualization, TKOpenGl - support EAGLContext as alternative to NSOpenGLContext
authorkgv <kgv@opencascade.com>
Thu, 2 Apr 2015 13:28:54 +0000 (16:28 +0300)
committerbugmaster <bugmaster@opencascade.com>
Mon, 6 Apr 2015 14:26:01 +0000 (17:26 +0300)
commita2e4f780c213d38362cce3f739ef9104fab1e7b0
tree3baa249572fbf65056ca3b6040a0137c5333d80a
parent44ef962bdd17d0beb0e1bc8d18f60bb47e4237ea
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.
18 files changed:
src/Aspect/Aspect_RenderingContext.hxx
src/Cocoa/Cocoa_LocalPool.hxx
src/Cocoa/Cocoa_LocalPool.mm
src/Cocoa/Cocoa_Window.hxx
src/Cocoa/Cocoa_Window.mm
src/NCollection/NCollection_WinHeapAllocator.cxx
src/OpenGl/FILES
src/OpenGl/Handle_OpenGl_FrameBuffer.hxx [new file with mode: 0644]
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Context.hxx
src/OpenGl/OpenGl_Context_1.mm
src/OpenGl/OpenGl_FrameBuffer.cxx
src/OpenGl/OpenGl_FrameBuffer.hxx
src/OpenGl/OpenGl_GlFunctions.hxx
src/OpenGl/OpenGl_Window.hxx
src/OpenGl/OpenGl_Window_1.mm
src/OpenGl/OpenGl_Workspace.cxx
src/Visual3d/Visual3d_ViewManager.cxx