xref: /third_party/mesa3d/src/mesa/main/glconfig.h (revision bf215546)
1#ifndef __GL_CONFIG_H__
2#define __GL_CONFIG_H__
3
4#include "main/glheader.h"
5
6/**
7 * Framebuffer configuration (aka visual / pixelformat)
8 * Note: some of these fields should be boolean, but it appears that
9 * code in drivers/dri/common/util.c requires int-sized fields.
10 */
11struct gl_config
12{
13   GLboolean floatMode;
14   GLuint doubleBufferMode;
15   GLuint stereoMode;
16
17   GLint redBits, greenBits, blueBits, alphaBits;	/* bits per comp */
18   GLuint redMask, greenMask, blueMask, alphaMask;
19   GLint redShift, greenShift, blueShift, alphaShift;
20   GLint rgbBits;		/* total bits for rgb */
21
22   GLint accumRedBits, accumGreenBits, accumBlueBits, accumAlphaBits;
23   GLint depthBits;
24   GLint stencilBits;
25
26   /* ARB_multisample / SGIS_multisample */
27   GLuint samples;
28
29   /* OML_swap_method */
30   GLint swapMethod;
31
32   /* EXT_framebuffer_sRGB */
33   GLint sRGBCapable;
34};
35
36
37#endif
38