예제 #1
0
 def _create_glx_context(self, share):
     if share:
         return glx.glXCreateContext(self._display, self._visual_info,
             share._context, True)
     else:
         return glx.glXCreateContext(self._display, self._visual_info,
             None, True)
예제 #2
0
 def _create_glx_context(self, share):
     if share:
         return glx.glXCreateContext(self._display, self._visual_info,
                                     share._context, True)
     else:
         return glx.glXCreateContext(self._display, self._visual_info, None,
                                     True)
예제 #3
0
파일: xlib.py 프로젝트: odyaka341/pyglet
    def _create_glx_context(self, share):
        if self.config._requires_gl_3():
            raise gl.ContextException("Require GLX_ARB_create_context extension to create " + "OpenGL 3 contexts.")

        if share:
            share_context = share.glx_context
        else:
            share_context = None

        return glx.glXCreateContext(self.config.canvas.display._display, self.config._visual_info, share_context, True)
예제 #4
0
파일: xlib.py 프로젝트: thabotr/pyglet
    def _create_glx_context(self, share):
        if self.config.requires_gl_3():
            raise gl.ContextException(
                'Require GLX_ARB_create_context extension to create OpenGL 3 contexts.')

        if share:
            share_context = share.glx_context
        else:
            share_context = None

        return glx.glXCreateContext(self.config.canvas.display._display,
                                    self.config._visual_info, share_context, True)