EDIT: Solved relatively quickly. New question in post 3.
Hi.
I'm very new to SDL and I'm currently fooling around with it. I want to set the window caption to a string. However, I'm pretty dum so I have no clue how to do this correctly lol
For my string I put
std::string title = "Ball Bounce";
And for the Caption I put
SDL_WM_SetCaption(title, NULL );
I get the error
"cannot convert `std::string' to `const char*' for argument `1' to `void SDL_WM_SetCaption(const char*, const char*)' "
I have included <string> and "sdl.h".
Uh... what should I put in the SDL_WM_SetCaption thing instead? Or is there something I just missed?
Gives me
"cannot convert `bool' to `char*' in initialization "
Which is understandable. I forget how to include an integer in a string of sorts (as it is it thinks it's a boolean because it's 1). Can anyone refresh me?