( SDL_SetVideoMode( 700, 300, 16, SDL_OPENGLBLIT | SDL_RESIZABLE ) == NULL )
[…]
and the anwser that Windows gives me is : BPP=32,
while I expect BPP=16 ?
Your OpenGL implementation must support the RGB565 texture format
(either if it has the packed pixel extension, or if it implements the
OpenGL 1.2 API) for OPENGLBLIT to use 16bpp
Long answer: When you open up an OpenGL context, it comes up at the bit
depth of your screen, regardless of what you asked for. (The very notable
exception is 3dfx cards prior to Voodoo4, which don’t support 32bpp and
always come up as 16 fullscreen if you use a 32 bpp desktop.) So when you
ask for 16, you’re really asking for at least 16.
You can still read 16bpp pixel format from it if you need to, but be
forewarnded that this is probably not an accellerated path. You can also
upload 16bpp pixel format textures to it. This probably is accellerated,
and is what most OpenGL games do when you set them to use “16bpp” instead
of 32.
Hope that makes sense.On Thu, Aug 09, 2001 at 09:22:10PM +0200, Bille2 wrote: