SDL_SetCaption help

Started by
1 comment, last by Raduprv 18 years, 11 months ago
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 :(
Advertisement
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?
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" );

This topic is closed to new replies.

Advertisement