FBConfig APIs in glX 1.3
FBConfig APIs in glX 1.3
- Subject: FBConfig APIs in glX 1.3
- From: Laurence Flath <email@hidden>
- Date: Mon, 20 Sep 2004 10:35:29 -0700
Hello,
I'm trying to get pbuffers working via glX, but the v1.3 frame buffer
configuration functions aren't working for me. I'm assuming these APIs
work, as v1.4 is listed in glX.h. What am I doing wrong?
int fbAttributes[] = {GLX_RGBA,
GLX_RED_SIZE, 8,
GLX_GREEN_SIZE, 8,
GLX_BLUE_SIZE, 8,
GLX_DEPTH_SIZE, 16,
None};
int pbAttributes[] = {GLX_PBUFFER_WIDTH, 1024,
GLX_PBUFFER_HEIGHT, 1024,
None};
int main (int argc, const char * argv[])
{
Display * display;
int screen, nConfigs;
GLXFBConfig * configs;
GLXPbuffer pbuffer;
// Get default display
display = XOpenDisplay(":0.0");
// Get default screen
screen = DefaultScreen(display);
// Get frame buffer configuration(s)
configs = glXChooseFBConfig(display, screen, fbAttributes,
&nConfigs);
// Create pixel buffer -- THIS FAILS ! --
pbuffer = glXCreatePbuffer(display, *configs, pbAttributes);
// Do gl stuff here ...
// Cleanup
glXDestroyPbuffer(display, pbuffer);
XCloseDisplay(display);
return 0;
}
Thanks for any help,
Laurence
Laurence Flath, Ph.D.
Lawrence Livermore National Laboratory
P.O. Box 808, L-183
Livermore, CA 94551
Phone: 925-424-6424
Fax: 925-422-2499
email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden