home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.2 Development Libraries / SGI IRIX 6.2 Development Libraries.iso / dist / gl_dev.idb / usr / share / src / OpenGL / teach / glc / test3.c.z / test3.c
Encoding:
C/C++ Source or Header  |  1996-03-15  |  597 b   |  24 lines

  1. #include <stdio.h>
  2. #include <GL/glc.h>
  3.  
  4.  
  5. int main(void)
  6. {
  7.     GLint i, j, masterCount, faceCount;
  8.  
  9.     glcContext(glcGenContext());
  10.  
  11.     masterCount = glcGeti(GLC_MASTER_COUNT);
  12.     for (i = 0; i < masterCount; i++) {
  13.         printf("GLC_FAMILY = \"%s\" ", glcGetMasterc(i, GLC_FAMILY));
  14.         printf("GLC_VENDOR = \"%s\"\n", glcGetMasterc(i, GLC_VENDOR));
  15.         faceCount = glcGetMasteri(i, GLC_FACE_COUNT);
  16.         for (j = 0; j < faceCount; j++) {
  17.             printf("    Face = \"%s\"\n",
  18.            glcGetMasterListc(i, GLC_FACE_LIST, j));
  19.         }
  20.         printf("\n");
  21.     }
  22.     return 0;
  23. }
  24.