Exemple #1
0
 def _win_supported_pixelformat(self, hdc, mode):
     reqpf = self._as_win_pixelformat(mode)
     #print "GLConfig._win_supported_pixelformat" ###
     #print "Requested format:" ###
     #win_dump_pixelformat(reqpf) ###
     #print "GLConfig: Choosing pixel format for hdc", hdc ###
     ipf = wgl.ChoosePixelFormat(hdc, reqpf)
     #print "... result =", ipf ###
     actpf = wgl.PIXELFORMATDESCRIPTOR()
     #print "GLConfig: Describing pixel format", ipf, "for hdc", hdc ###
     wgl.DescribePixelFormat(hdc, ipf, actpf.nSize, actpf)
     #print "Actual format:" ###
     #win_dump_pixelformat(actpf) ###
     return ipf, actpf