Title: Example Author: Anonymous Pastebin link: http://pastebin.com/6Rp6U6B7 First Edit: Saturday 3rd of March 2012 11:50:26 AM CDT Last Edit: Saturday 3rd of March 2012 11:50:26 AM CDT #include #include "SDL.h"   // Initialize SDL and the video subsystem SDL_Init(SDL_INIT_VIDEO);   // Set the video mode SDL_SetVideoMode(640, 480, 16, SDL_DOUBLEBUF|SDL_FULLSCREEN);   // Get the current video hardware information const SDL_VideoInfo* myPointer = SDL_GetVideoInfo();   // Print out some information // WARNING: myPointer is not NULL here std::cout << "Current video resolution is " << myPointer->current_w << "x" << myPointer->current_h << " pixels" << std::endl;