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)
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)
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)