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

Function visualClassToGLXVisualType

server/fakerut.cpp:1177–1189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1175
1176
1177static int visualClassToGLXVisualType(int visualClass)
1178{
1179 switch(visualClass)
1180 {
1181 case StaticGray: return GLX_STATIC_GRAY;
1182 case GrayScale: return GLX_GRAY_SCALE;
1183 case StaticColor: return GLX_STATIC_COLOR;
1184 case PseudoColor: return GLX_PSEUDO_COLOR;
1185 case TrueColor: return GLX_TRUE_COLOR;
1186 case DirectColor: return GLX_DIRECT_COLOR;
1187 default: return GLX_NONE;
1188 }
1189}
1190
1191
1192void configVsVisual(Display *dpy, GLXFBConfig config, XVisualInfo *vis)

Callers 1

configVsVisualFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected