Skip to main content
gamedev.net
🔒 Locked

SDL Fullscreen

Started by Mr_Ridd Mar 24, 2004 at 1:12 AM 7 replies 750+ views
Original Post
Mr_Ridd
Mr_Ridd
I''m using OpenGL and SDL. When I try to enter fullscreen mode it exits. For some reason it cannot switch to fullscreen mode. What could this be?
The ability to succeed is the ability to adapt
baumep
baumep
If you''re using SDL_WM_ToggleFullScreen it will fail because this function is only supported on X11.
Otherwise give some more information what and how you are doiing it.
baumep
Mr_Ridd
Mr_Ridd
Yeah I am using that function, what else can I use?
The ability to succeed is the ability to adapt
davepermen
davepermen
set to fullscreen at start-time, or destroy and recreate your window.




If that''s not the help you''re after then you''re going to have to explain the problem better than what you have. - joanusdmentia

davepermen.net
If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia
My Page davepermen.net | My Music on Bandcamp and on Soundcloud
Mr_Ridd
Mr_Ridd
No, that didn''t work.

I''m using Dev-C++ with SDL and OpenGL. I want the put the screen in fullscreen mode. Nothing fancy.
It''s works if it''s just a normal window.
The ability to succeed is the ability to adapt
davepermen
davepermen
it does work, but you killed all your opengl resources, and due that, you have to reload all textures, vertexbuffers, what ever you have, and reset all states.

this is why they haven''t implemented this function in sdl. it needs work done by the users.

if you can go to fullscreen directly, you can switch from and towards it with ease. you just have to restore your opengl.




If that''s not the help you''re after then you''re going to have to explain the problem better than what you have. - joanusdmentia

davepermen.net
If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia
My Page davepermen.net | My Music on Bandcamp and on Soundcloud
Spudder
Spudder
Do a call to SDL_GetError() to find out what error SDL is reporting - it returns a char* so you could output it to the console or use a MessageBox() depending on what platform your on.
Mr_Ridd
Mr_Ridd
I did that but it''s not printing anything, it''s just blank?

Where can I get example code that goes to fullscreen mode?
The ability to succeed is the ability to adapt
Mr_Ridd
Mr_Ridd
I got it to work. I put an extra option onto the videoflag. It doesn't take my screen width and height into consideration though.

SDL_FULLSCREEN

[edited by - Mr_Ridd on March 25, 2004 1:25:47 AM]
The ability to succeed is the ability to adapt

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.