Sign in to follow this  
Edge_13

Window Properties in SDL

Recommended Posts

Hey, Just checking out SDL for the first time. I was looking through some tutorials but I couldn't find anything about managing the window it creates for you, other than setting the title/icon and minimizing it. I'm most interested in maximizing the window, but I'd also like to play around with styles and such. Any help would be appreciated. Thanks.

Share this post


Link to post
Share on other sites
I think so, in fact SDL provides a small set of window managements functions.
I suggest you to check the SDL Library Documentation to find more about it.

Try on this link.

Share this post


Link to post
Share on other sites
Here are the windows functions from the doc wiki on the SDL site. Are you looking for the ability to toggle full screen or the flags for the SetVideoMode function of creating your window?

Window Management

SDL_GetWMInfo - Gets window-manager specific information, if available

SDL_WM_SetCaption - Sets the window title and icon name.

SDL_WM_GetCaption - Gets the window title and icon name.

SDL_WM_SetIcon - Sets the icon for the display window.

SDL_WM_IconifyWindow - Iconify/Minimise the window

SDL_WM_ToggleFullScreen - Toggles fullscreen mode

SDL_WM_GrabInput - Grabs mouse and keyboard input.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this