It seems that when I run the below program, with a 16-bit screen, or indeed any kind of screen, even in a window on a 16-bit desktop, it says that there are 8 bits per pixel, plus a 24-bit depth buffer, plus a stencil buffer. This doesn't seem to vary based on changing the mode, or the depth of the display.
Does anyone else get the same?
P.S. This program probably bombs out anyway because the gfx card technically actually doesn't support 16-bit color with a stencil buffer or an alpha buffer - but it should still print the results.
Does anyone else get the same?
P.S. This program probably bombs out anyway because the gfx card technically actually doesn't support 16-bit color with a stencil buffer or an alpha buffer - but it should still print the results.
SetGraphicsDriver GLGraphicsDriver() GLGraphics 640,480,16,60,GRAPHICS_BACKBUFFER|GRAPHICS_ALPHABUFFER|GRAPHICS_DEPTHBUFFER|GRAPHICS_STENCILBUFFER|GRAPHICS_ACCUMBUFFER Local a:Int[1] a[0]=0 glGetIntegerv(GL_RED_BITS,a) Print "Color red bits: "+a[0] a[0]=0 glGetIntegerv(GL_GREEN_BITS,a) Print "Color green bits: "+a[0] a[0]=0 glGetIntegerv(GL_BLUE_BITS,a) Print "Color blue bits: "+a[0] a[0]=0 glGetIntegerv(GL_ALPHA_BITS,a) Print "Color alpha bits: "+a[0] a[0]=0 glGetIntegerv(GL_DEPTH_BITS,a) Print "Depth bits: "+a[0] a[0]=0 glGetIntegerv(GL_STENCIL_BITS,a) Print "Stencil bits: "+a[0] a[0]=0 glGetIntegerv(GL_ACCUM_RED_BITS,a) Print "Accum red bits: "+a[0] a[0]=0 glGetIntegerv(GL_ACCUM_GREEN_BITS,a) Print "Accum green bits: "+a[0] a[0]=0 glGetIntegerv(GL_ACCUM_BLUE_BITS,a) Print "Accum blue bits: "+a[0] a[0]=0 glGetIntegerv(GL_ACCUM_ALPHA_BITS,a) Print "Accum alpha bits: "+a[0] a[0]=0 glGetBooleanv(GL_DOUBLEBUFFER,a) Print "Double buffering supported?: "+a[0] a[0]=0 glGetBooleanv(GL_STEREO,a) Print "Stereo left/right buffers supported?: "+a[0] a[0]=0 glGetIntegerv(GL_AUX_BUFFERS,a) Print "Auxiliary buffers available?: "+a[0] a[0]=0 glGetIntegerv(GL_MAX_PIXEL_MAP_TABLE,a) Print "Maximum pixel-remap table size: "+a[0] a[0]=0 glGetIntegerv(GL_MAX_TEXTURE_SIZE,a) Print "Maximum texture size: "+a[0]+"x"+a[0] Print "GraphicsWidth(): "+GraphicsWidth() Print "GraphicsHeight(): "+GraphicsHeight() Print "GraphicsDepth(): "+GraphicsDepth() Print "GraphicsHertz(): "+GraphicsHertz()