(create-glx-pixmap) ( pixmap visual -- pixmap glx-pixmap )


Vocabulary
x11.windows

Inputs
pixmapan object
visualan object


Outputs
pixmapan object
glx-pixmapan object


Definition


: (create-glx-pixmap) ( pixmap visual -- pixmap glx-pixmap )
[ drop ] [
[ dpy get ] 2dip swap glXCreateGLXPixmap
[ "Failed to create offscreen GLXPixmap" throw ] unless*
] 2bi ;