Esempio n. 1
0
 def __init__(self, share_group, _ns_pixel_format):
     GGLContext.__init__(self, share_group)
     shared_context = self._get_shared_context()
     if shared_context:
         ns_share = shared_context._ns_context
     else:
         ns_share = None
     ns_context = NSOpenGLContext.alloc().initWithFormat_shareContext_(_ns_pixel_format, ns_share)
     self._ns_context = ns_context
Esempio n. 2
0
 def __init__(self, share_group, _ns_pixel_format):
     GGLContext.__init__(self, share_group)
     shared_context = self._get_shared_context()
     if shared_context:
         ns_share = shared_context._ns_context
     else:
         ns_share = None
     ns_context = NSOpenGLContext.alloc().initWithFormat_shareContext_(
         _ns_pixel_format, ns_share)
     self._ns_context = ns_context