예제 #1
0
파일: xlib.py 프로젝트: odyaka341/pyglet
    def __init__(self, canvas, glx_info, fbconfig, config):
        super(XlibCanvasConfig13, self).__init__(canvas, glx_info, config)
        x_display = canvas.display._display

        self._fbconfig = fbconfig
        for name, attr in self.attribute_ids.items():
            value = c_int()
            result = glx.glXGetFBConfigAttrib(x_display, self._fbconfig, attr, byref(value))
            if result >= 0:
                setattr(self, name, value.value)
예제 #2
0
 def __init__(self, screen, fbconfig):
     super(XlibGLConfig13, self).__init__()
     self.screen = screen
     self._display = screen.display._display
     self._fbconfig = fbconfig
     for name, attr in self.attribute_ids.items():
         value = c_int()
         result = glx.glXGetFBConfigAttrib(
             self._display, self._fbconfig, attr, byref(value))
         if result >= 0:
             setattr(self, name, value)
예제 #3
0
    def __init__(self, canvas, glx_info, fbconfig, config):
        super(XlibCanvasConfig13, self).__init__(canvas, glx_info, config)
        x_display = canvas.display._display

        self._fbconfig = fbconfig
        for name, attr in self.attribute_ids.items():
            value = c_int()
            result = glx.glXGetFBConfigAttrib(x_display, self._fbconfig, attr,
                                              byref(value))
            if result >= 0:
                setattr(self, name, value.value)
예제 #4
0
 def __init__(self, screen, fbconfig):
     super(XlibGLConfig13, self).__init__()
     self.screen = screen
     self._display = screen.display._display
     self._fbconfig = fbconfig
     for name, attr in self.attribute_ids.items():
         value = c_int()
         result = glx.glXGetFBConfigAttrib(self._display, self._fbconfig,
                                           attr, byref(value))
         if result >= 0:
             setattr(self, name, value)