I can create a glconfig by using the statement:

        glconfig = gtk.gdkgl.Config(attrib_list = (gtk.gdkgl.RGBA,
                                                   gtk.gdkgl.DOUBLEBUFFER,
                                                   ))

However, I can't figure out *exactly* which visual it picks to assign to
that glconfig from within Python.  How can I get at the info?  What I want
is:

[EMAIL PROTECTED]:andrewl$ glxinfo
<lots of gunk deleted>
   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x23 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16  0  0 0 None
0x24 24 tc  0 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16 16  0 0 None
^^^^
The Config will pick a visual corresponding to one of the ones listed by
glxinfo.  I want to which one it specifically picks (the value of the ID
field).

Thanks,
-a

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to