   SDL+OpenGL help
  Although I am a begineer, through hard experiance I finally realized that SDL and OpenGL is the solution.However, I am having difficulty starting. I made a simple demo in SDL that uses opengl to draw a rectangle, but the black screen flashes and closes.I could post the entire code here, but thought it might be wise first to ask if there are some GOOD resources or links for setting up SDL with OpenGL?Thanks in advance.P.S. : I would be happy if you can provide a "common-for-all-programs" code that works. I am using Windows with Dev-Cpp. And, SDL independently runs perfectly on my computer.   
  Hi, I think this wiki is ok, although people say the SDL_OPENGLBLIT is evil. (I never use it).This thread is about using opengl in 2D if you want that, not SDL specific.;  Check out the OpenGL example in the SDL documentation.In particular, look at the setup_sdl and setup_opengl functions.   ;  I have written a book about it! :)