SDL2 Window not displaying
问题 I'm trying to open a window with SDL2 in visual studio 2015. I've set a .bmp image in my code to display to the screen in a window, but when I run my code the program returns 0 and closes without a window. The .bmp image is in the project folder. How do you display the window? #include <SDL.h> #include <iostream> int main(int argc, char* args[]) { SDL_Window *window = nullptr; SDL_Surface *windowSurface = nullptr; SDL_Surface *imageSurface = nullptr; if (SDL_Init(SDL_INIT_VIDEO) < 0) std: