Using OpenGL methods only (if necessarily - basically has to be cross-platform), how do I detect if the desktop is in a 256-color mode?
Will trying to use glReadPixels(GL_COLOR_INDEX) and detecting if glGetError()=GL_INVALID_OPERATION, indicate whether the desktop is in 256-color mode?
I have tried opening a 256-color desktop and then using glGetIntegetv() to get the red/green/blue/alpha bits, but it returns 0:5:5:5 in 256-color mode!
How can I know for sure that the desktop is 256-color, so I can request that the desktop mode be switched?
(Is there some way to actually change the desktop mode from BlitzMax in a cross-platform way?)
Will trying to use glReadPixels(GL_COLOR_INDEX) and detecting if glGetError()=GL_INVALID_OPERATION, indicate whether the desktop is in 256-color mode?
I have tried opening a 256-color desktop and then using glGetIntegetv() to get the red/green/blue/alpha bits, but it returns 0:5:5:5 in 256-color mode!
How can I know for sure that the desktop is 256-color, so I can request that the desktop mode be switched?
(Is there some way to actually change the desktop mode from BlitzMax in a cross-platform way?)