15 |
return par; |
return par; |
16 |
} |
} |
17 |
|
|
18 |
int main() { |
void printFB() { |
|
dpy = XOpenDisplay(0); |
|
19 |
int nel; |
int nel; |
20 |
// GLXFBConfig *conf = glXChooseFBConfig(dpy, 0, attrs, &nel); |
GLXFBConfig *conf = glXChooseFBConfig(dpy, 0, attrs, &nel); |
21 |
GLXFBConfig *conf = glXGetFBConfigs(dpy, 0, &nel); |
// GLXFBConfig *conf = glXGetFBConfigs(dpy, 0, &nel); |
22 |
for(int i=0; i<nel; i++) { |
for(int i=0; i<nel; i++) { |
23 |
int par; |
int par; |
24 |
#define G(n) g(conf[i], GLX_##n) |
#define G(n) g(conf[i], GLX_##n) |
68 |
} |
} |
69 |
|
|
70 |
} |
} |
71 |
|
|
72 |
|
int main() { |
73 |
|
dpy = XOpenDisplay(0); |
74 |
|
attrs[1] = GLX_WINDOW_BIT; |
75 |
|
printf("\n\nFBConfigs suitable for windows\n=========\n"); |
76 |
|
printFB(); |
77 |
|
|
78 |
|
attrs[1] = GLX_PIXMAP_BIT; |
79 |
|
printf("\n\nFBConfigs suitable for pixmaps\n=========\n"); |
80 |
|
printFB(); |
81 |
|
|
82 |
|
attrs[1] = GLX_PBUFFER_BIT; |
83 |
|
printf("\n\nFBConfigs suitable for pbuffers\n=========\n"); |
84 |
|
printFB(); |
85 |
|
} |