Switching from SDL1.2 to SDL2.0

After just lerning the basics of SDL i want to swich over to SDL2.0.
I found most of the basic new comands in the Introduction on:
http://wiki.libsdl.org/Introduction
But I'm still searching for the "replacement" of SDL_GetVideoSurface() (which does not exists because SDL2 has multi window handling I think). I need it because I specify an Image of an Object (which is set as private)to render on the Window.
If someone knows how to handle that please let me know.

~thanks
closed account (S6k9GNh0)
http://wiki.libsdl.org/MigrationGuide#Video
Last edited on
thanks but I already had looked up this source...
or would
SDL_GetDisplayMode()
do the same?

Ive got following function (wich isnt in main because it has to access private variables)
1
2
3
4
void character::show()
{
	SDL_BlitSurface(sprite,&clip[frame/6],SDL_GetDisplayMode(),&box);
}

also SDL_GetDisplayMode has too few arguments.
My compiler gives me a reference to SDL_video.h:
1
2
extern DECLSPEC int SDLCALL SDL_GetDisplayMode(int displayIndex, int modeIndex,
                                               SDL_DisplayMode * mode);

I dunno what to set inside of it (I know I need to set a pointer to my Window but dont know how). (The declaration of the window is in main and of course not public)
*Update:
After some googling I found SDL_BlitMap but still duno how to point to the window.
...
Btw. I think its a pretty basic question how to render something from an private object/other function to the window so whats up that noone's really answering?
Topic archived. No new replies allowed.