Hi Everybody
Any experience or ideas on how to use pixmap instead of a Window ?
Thanks
Hi Everybody
Any experience or ideas on how to use pixmap instead of a Window ?
Thanks
Make the pixmap (glxCreateGLXPixmap). Bind it to the context (glXMakeCurrent). Easy.
cheers,
John
Thank you but this doesn’t work.
I know it’s suppose to be something easy but so far nothing, only a black image.
This is what I’m doing …
Vanleurth
/* Make it current */
glXMakeCurrent(dpy, win, cx);
XMapWindow(dpy, win);
}
else
{
pmap = XCreatePixmap(dpy, RootWindow (dpy, vi -> screen), 600, 600, vi -> depth);
glxpmap = glXCreateGLXPixmap(dpy, vi, pmap);
glXMakeCurrent(dpy, glxpmap, cx);
}
Originally posted by john:
[b]Make the pixmap (glxCreateGLXPixmap). Bind it to the context (glXMakeCurrent). Easy.
cheers,
John
[/b]