PDA

View Full Version : Pixmap



vanleurth
08-09-2000, 04:38 AM
Hi Everybody http://www.opengl.org/discussion_boards/ubb/cool.gif

Any experience or ideas on how to use pixmap instead of a Window ?

Thanks

john
08-09-2000, 04:47 PM
Make the pixmap (glxCreateGLXPixmap). Bind it to the context (glXMakeCurrent). Easy.

cheers,
John

vanleurth
08-10-2000, 06:23 AM
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:
Make the pixmap (glxCreateGLXPixmap). Bind it to the context (glXMakeCurrent). Easy.

cheers,
John