Flags viwth OpenGL

Which flags are taken in consideration with SetVideoMode when setting OpenGL
mode?
SDL_FULLSCREEN and SDL_DOUBLEBUF yes. And ANYFORMAT, HWSURFACE… ?–
Marco Iannaccone @Marco_Iannaccone
ICQ: 18748121 MetalCoder

"What is real? How do you define real? If you’re talking about your
senses, what you feel, taste, smell, or see, then all you’re talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix

Which flags are taken in consideration with SetVideoMode when setting OpenGL
mode?
SDL_FULLSCREEN and SDL_DOUBLEBUF yes. And ANYFORMAT, HWSURFACE… ?

SDL_FULLSCREEN - yes
SDL_OPENGL - yes

all others - no

OpenGL surfaces are setup differently. Use SDL_GL_SetAttribute() call
before you set the video mode. See the latest SDL docs:

http://sdldoc.sourceforge.net/current/On Mon, 29 Jan 2001, Marco Iannaccone wrote:


Marco Iannaccone marciann at tin.it
ICQ: 18748121 MetalCoder

"What is real? How do you define real? If you’re talking about your
senses, what you feel, taste, smell, or see, then all you’re talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix

SDL_FULLSCREEN - yes
SDL_OPENGL - yes

all others - no
Are you sure SDL_DOUBLEBUF is ignored?–
Marco Iannaccone @Marco_Iannaccone
ICQ: 18748121 MetalCoder

"What is real? How do you define real? If you’re talking about your
senses, what you feel, taste, smell, or see, then all you’re talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix

Are you sure SDL_DOUBLEBUF is ignored?

Yes. To set GL context to be double-buffered use

SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);

I understand the confusion on your part, regarding the example in the
docs:

if ( (screen=SDL_SetVideoMode(640, 480, 16, SDL_OPENGL | SDL_DOUBLEBUF))
== NULL ) {
fprintf(stderr, “Couldn’t set GL mode: %s\n”, SDL_GetError());
SDL_Quit();
return;
}

I don’t know why SDL_DOUBLEBUF is specified. It doesn’t do anything in
this case, as far as I know. The double buffers are setup by GLX/WGL etc,
not by SDL.On Mon, 29 Jan 2001, Marco Iannaccone wrote:

I use SDL_OPENGL | SDL_FULLSCREEN.
Double buffering and the rest is set be SDLSetAttribute.

I also use SDLGetDesktop for getting the display info but it does not work
all the time :((. Under windows I have some difficulties setting Full
screen.On Mon, 29 Jan 2001, Marco Iannaccone wrote:

Which flags are taken in consideration with SetVideoMode when setting OpenGL
mode?
SDL_FULLSCREEN and SDL_DOUBLEBUF yes. And ANYFORMAT, HWSURFACE… ?


Marco Iannaccone marciann at tin.it
ICQ: 18748121 MetalCoder

"What is real? How do you define real? If you’re talking about your
senses, what you feel, taste, smell, or see, then all you’re talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix