Hi folks. I was wondering about how to go about using 16-bit graphics with BlitzMax, or at least with OpenGL.
So far all I've done is open 32-bit images and render them on a Graphics screen or window. Obviously if I change the color depth of the screen or the desktop to 16-bit, everything renders automatically in 16-bit. In fact, same goes for 256-colors even though that's not entirely supported with BlitzMax.
Now, I take it that this is wasting time, for 16-bit mode, because either the RGBA8888 data for the image has to be filtered down (and dithered if switched on) to less bits, either at the time of reading or writing to the backbuffer or at the time of Flipping the double-buffer.
I would like to know, if I purposefully detected that 16-bit color was needed, and open a 16-bit display, can I just load in some 16-bit image data (or produce it somehow), and if I do that, will rendering it be faster than if I just use 32-bit images outputting to a 16-bit display?
Or more to the point, what's the best way to make things most efficient for 16-bit graphics rendering? Either with BlitzMax's own commands or OpenGL directly. ???????
So far all I've done is open 32-bit images and render them on a Graphics screen or window. Obviously if I change the color depth of the screen or the desktop to 16-bit, everything renders automatically in 16-bit. In fact, same goes for 256-colors even though that's not entirely supported with BlitzMax.
Now, I take it that this is wasting time, for 16-bit mode, because either the RGBA8888 data for the image has to be filtered down (and dithered if switched on) to less bits, either at the time of reading or writing to the backbuffer or at the time of Flipping the double-buffer.
I would like to know, if I purposefully detected that 16-bit color was needed, and open a 16-bit display, can I just load in some 16-bit image data (or produce it somehow), and if I do that, will rendering it be faster than if I just use 32-bit images outputting to a 16-bit display?
Or more to the point, what's the best way to make things most efficient for 16-bit graphics rendering? Either with BlitzMax's own commands or OpenGL directly. ???????