Lines Matching defs:vis
235 struct gl_config *vis = CALLOC_STRUCT(gl_config);
236 if (vis) {
237 if (!_mesa_initialize_visual(vis, dbFlag, stereoFlag,
243 free(vis);
247 return vis;
262 _mesa_initialize_visual( struct gl_config *vis,
277 assert(vis);
290 vis->rgbMode = GL_TRUE;
291 vis->doubleBufferMode = dbFlag;
292 vis->stereoMode = stereoFlag;
294 vis->redBits = redBits;
295 vis->greenBits = greenBits;
296 vis->blueBits = blueBits;
297 vis->alphaBits = alphaBits;
298 vis->rgbBits = redBits + greenBits + blueBits;
300 vis->indexBits = 0;
301 vis->depthBits = depthBits;
302 vis->stencilBits = stencilBits;
304 vis->accumRedBits = accumRedBits;
305 vis->accumGreenBits = accumGreenBits;
306 vis->accumBlueBits = accumBlueBits;
307 vis->accumAlphaBits = accumAlphaBits;
309 vis->haveAccumBuffer = accumRedBits > 0;
310 vis->haveDepthBuffer = depthBits > 0;
311 vis->haveStencilBuffer = stencilBits > 0;
313 vis->numAuxBuffers = 0;
314 vis->level = 0;
315 vis->sampleBuffers = numSamples > 0 ? 1 : 0;
316 vis->samples = numSamples;
325 * \param vis visual.
330 _mesa_destroy_visual( struct gl_config *vis )
332 free(vis);