Answer the question
In order to leave comments, you need to log in
What function to use in SDL 2.0 instead of SDL_SetVideoMode?
In version sdl 1.2 there is this function, which in 2.0, instead of this?
Answer the question
In order to leave comments, you need to log in
1.2:
SDL_WM_SetCaption("My Game Window", "game");
SDL_Surface *screen = SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN | SDL_OPENGL);
SDL_Window *screen = SDL_CreateWindow("My Game Window",
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
640, 480,
SDL_WINDOW_FULLSCREEN | SDL_WINDOW_OPENGL);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question