Lines Matching refs:vis
224 struct gl_config *vis = CALLOC_STRUCT(gl_config); in _mesa_create_visual() local
225 if (vis) { in _mesa_create_visual()
226 if (!_mesa_initialize_visual(vis, dbFlag, stereoFlag, in _mesa_create_visual()
232 free(vis); in _mesa_create_visual()
236 return vis; in _mesa_create_visual()
251 _mesa_initialize_visual( struct gl_config *vis, in _mesa_initialize_visual() argument
266 assert(vis); in _mesa_initialize_visual()
279 vis->rgbMode = GL_TRUE; in _mesa_initialize_visual()
280 vis->doubleBufferMode = dbFlag; in _mesa_initialize_visual()
281 vis->stereoMode = stereoFlag; in _mesa_initialize_visual()
283 vis->redBits = redBits; in _mesa_initialize_visual()
284 vis->greenBits = greenBits; in _mesa_initialize_visual()
285 vis->blueBits = blueBits; in _mesa_initialize_visual()
286 vis->alphaBits = alphaBits; in _mesa_initialize_visual()
287 vis->rgbBits = redBits + greenBits + blueBits; in _mesa_initialize_visual()
289 vis->indexBits = 0; in _mesa_initialize_visual()
290 vis->depthBits = depthBits; in _mesa_initialize_visual()
291 vis->stencilBits = stencilBits; in _mesa_initialize_visual()
293 vis->accumRedBits = accumRedBits; in _mesa_initialize_visual()
294 vis->accumGreenBits = accumGreenBits; in _mesa_initialize_visual()
295 vis->accumBlueBits = accumBlueBits; in _mesa_initialize_visual()
296 vis->accumAlphaBits = accumAlphaBits; in _mesa_initialize_visual()
298 vis->haveAccumBuffer = accumRedBits > 0; in _mesa_initialize_visual()
299 vis->haveDepthBuffer = depthBits > 0; in _mesa_initialize_visual()
300 vis->haveStencilBuffer = stencilBits > 0; in _mesa_initialize_visual()
302 vis->numAuxBuffers = 0; in _mesa_initialize_visual()
303 vis->level = 0; in _mesa_initialize_visual()
304 vis->sampleBuffers = numSamples > 0 ? 1 : 0; in _mesa_initialize_visual()
305 vis->samples = numSamples; in _mesa_initialize_visual()
319 _mesa_destroy_visual( struct gl_config *vis ) in _mesa_destroy_visual() argument
321 free(vis); in _mesa_destroy_visual()