Lines Matching refs:config

32 #include <dmx-config.h>
47 __GLXvisualConfig *config, *configs;
93 /* Allocate memory for our config structure */
94 config = (__GLXvisualConfig*)
96 if (!config) {
102 memset(config, 0, nvisuals * sizeof(__GLXvisualConfig));
103 configs = config;
106 /* Convert config structure into our format */
109 /* Read config structure */
113 config->visualRating = GLX_NONE_EXT;
114 config->transparentPixel = GLX_NONE_EXT;
117 config->vid = props[0];
118 config->class = props[1];
120 config->rgba = (Bool) props[2];
122 config->redSize = props[3];
123 config->greenSize = props[4];
124 config->blueSize = props[5];
125 config->alphaSize = props[6];
127 config->accumRedSize = props[7];
128 config->accumGreenSize = props[8];
129 config->accumBlueSize = props[9];
130 config->accumAlphaSize = props[10];
132 config->doubleBuffer = (Bool) props[11];
133 config->stereo = (Bool) props[12];
135 config->bufferSize = props[13];
136 config->depthSize = props[14];
137 config->stencilSize = props[15];
139 config->auxBuffers = props[16];
140 config->level = props[17];
150 config->multiSampleSize = value;
153 config->nMultiSampleBuffers = value;
157 config->transparentPixel = value;
160 config->transparentIndex = value;
163 config->transparentRed = value;
166 config->transparentGreen = value;
169 config->transparentBlue = value;
172 config->transparentAlpha = value;
176 config->visualRating = value;
181 config->visualSelectGroup = value;
193 if (config->level == 0) {
194 config++;
204 config = configs;
212 template.visualid = config->vid;
217 config->redMask = vis->red_mask;
218 config->greenMask = vis->green_mask;
219 config->blueMask = vis->blue_mask;
220 config->alphaMask = 0; /* XXX */
224 config++;
239 __GLXFBConfig *config, *fbconfigs;
283 /* Allocate memory for our config structure */
284 config = (__GLXFBConfig*)
286 if (!config) {
292 memset(config, 0, numFBConfigs * sizeof(__GLXFBConfig));
293 fbconfigs = config;
299 config->transparentType = GLX_NONE_EXT;
300 config->visualCaveat = GLX_NONE_EXT;
301 config->minRed = 0.;
302 config->maxRed = 1.;
303 config->minGreen = 0.;
304 config->maxGreen = 1.;
305 config->minBlue = 0.;
306 config->maxBlue = 1.;
307 config->minAlpha = 0.;
308 config->maxAlpha = 1.;
321 config->id = value;
324 config->indexBits = value;
327 config->level = value;
330 config->doubleBufferMode = value;
333 config->stereoMode = value;
336 config->maxAuxBuffers = value;
339 config->redBits = value;
342 config->greenBits = value;
345 config->blueBits = value;
348 config->alphaBits = value;
351 config->depthBits = value;
354 config->stencilBits = value;
357 config->accumRedBits = value;
360 config->accumGreenBits = value;
363 config->accumBlueBits = value;
366 config->accumAlphaBits = value;
369 config->renderType = value;
372 config->drawableType = value;
375 config->visualType = value;
378 config->visualCaveat = value;
381 config->transparentType = value;
384 config->transparentIndex = value;
387 config->transparentRed = value;
390 config->transparentGreen = value;
393 config->transparentBlue = value;
396 config->transparentAlpha = value;
399 config->maxPbufferWidth = value;
402 config->maxPbufferHeight = value;
405 config->maxPbufferPixels = value;
408 config->associatedVisualId = value;
413 config->visualSelectGroup = value;
418 config->multiSampleSize = value;
421 config->nMultiSampleBuffers = value;
426 config->optimalPbufferWidth = value;
429 config->optimalPbufferHeight = value;
439 config->screen = screen;
441 config->rgbMode = config->renderType & GLX_RGBA_BIT;
442 config->colorIndexMode = !config->rgbMode;
444 config->haveAccumBuffer =
445 config->accumRedBits > 0 ||
446 config->accumGreenBits > 0 ||
447 config->accumBlueBits > 0;
450 config->haveDepthBuffer = config->depthBits > 0;
451 config->haveStencilBuffer = config->stencilBits > 0;
454 if (!config->level) {
455 config++;
462 config = fbconfigs;
466 if (config->associatedVisualId != 0) {
471 template.visualid = config->associatedVisualId;
476 config->redMask = (GLuint)vis->red_mask;
477 config->greenMask = (GLuint)vis->green_mask;
478 config->blueMask = (GLuint)vis->blue_mask;
479 config->alphaMask = 0; /* XXX */
484 config++;
506 /* Allocate memory for our config structure */
541 * copy the glx attributes from the glx config
553 * make glx attributes from the FB config attributes