MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / display

Function display

util/glreadtest.cpp:571–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569
570
571void display(void)
572{
573 int format, status = 0;
574
575 for(format = 0; format < PIXELFORMATS; format++)
576 {
577 if(glFormat[format] == GL_NONE) continue;
578
579 fprintf(stderr, ">>>>>>>>>> PIXEL FORMAT: %s <<<<<<<<<<\n",
580 formatName[format]);
581
582 #ifdef GL_ABGR_EXT
583 const char *ext = (const char *)glGetString(GL_EXTENSIONS),
584 *compext = NULL;
585 if(glFormat[format] == GL_ABGR_EXT) compext = "GL_EXT_abgr";
586 if(compext && (!ext || !strstr(ext, compext)))
587 {
588 fprintf(stderr, "%s extension not available. Skipping ...\n\n",
589 compext);
590 continue;
591 }
592 #endif
593
594 if(writeTest(format) < 0) status = -1;
595 for(int i = 0; i < loops; i++)
596 if(readTest(format) < 0) status = -1;
597 fprintf(stderr, "\n");
598 }
599
600 exit(status);
601}
602
603void usage(char **argv)
604{

Callers 1

mainFunction · 0.70

Calls 3

glGetStringFunction · 0.85
writeTestFunction · 0.85
readTestFunction · 0.85

Tested by

no test coverage detected