/[gzz]/gzz/gfx/progs/fbconfsgix.cxx
ViewVC logotype

Diff of /gzz/gfx/progs/fbconfsgix.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by tjl, Wed Dec 4 15:29:14 2002 UTC revision 1.3 by tjl, Wed Dec 11 10:44:11 2002 UTC
# Line 15  int g(GLXFBConfig conf, int arg) { Line 15  int g(GLXFBConfig conf, int arg) {
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)
# Line 69  int main() { Line 68  int main() {
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    }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26