Jump to content
  • Advertisement
Sign in to follow this  
rpgman15

SDL_SetCaption help

This topic is 4849 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok I read the SDL API Reference guide and I came across a function to change the window name in my sdl program. But I don't know how to set it up or use it. This is how it appears is the guide.... void SDL_WM_SetCaption(const char *title, const char *icon); I'd also like to know how to read other function prototypes like this. Sorry if this sounds really noobish :(

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
you call the function before you create a window. after you initialize SDL is a good time.

what do you mean "understand how to read it"? it isn't different than most others. what confuses you about it?

Share this post


Link to post
Share on other sites
Use it after you set the video mode.
Here is how we are using it:

SDL_WM_SetIcon(SDL_LoadBMP("icon.bmp"), NULL);
/* Set the window manager title bar */
SDL_WM_SetCaption( "Eternal Lands", "eternallands" );

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!