Jerome Fuselier wrote:
> Hello,
> I tried to use the glXCreatePixmap method from the GLX package of
> PyOpenGL but I'm stucked with the needed parameters and don't really
> find some examples on how to use the python binding.
Your "Xlib" library may have some way of retrieving the display,
configuration and pixmap pointers (the underlying X pointers, not the
Python objects). It will likely return those as integers, and those
values can be passed to the function.
Hope that helps,
Mike
> >>> from Xlib.display import Display
> >>> from OpenGL.GLX import *
> >>> d = Display()
> >>> root = d.screen().root
> >>> pixmap = root.create_pixmap(256, 256, 8)
> >>> glXCreateWindow(d, cfg, pixmap, 0)
--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
|