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

Function formatString

server/VirtualDrawable.cpp:351–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349
350
351static const char *formatString(int glFormat)
352{
353 switch(glFormat)
354 {
355 case GL_RGB: return "RGB";
356 case GL_RGBA: return "RGBA";
357 case GL_BGR: return "BGR";
358 case GL_BGRA: return "BGRA";
359 #ifdef GL_ABGR_EXT
360 case GL_ABGR_EXT: return "ABGR";
361 #endif
362 case GL_RED: return "COMPONENT";
363 default: return "????";
364 }
365}
366
367
368bool VirtualDrawable::checkRenderMode(void)

Callers 1

readPixelsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected