Currently I use SDL to initialize my OpenGL context. But SDL is becoming a pain because it is not very feature rich. (For example I want to open multiple independent windows in my application. I also want to remove the Window frame. Is there an example around here of how to initialize an OpenGL context with my own WinMain and WinProc functions?
Glut does not have the features I want either. I know you have to load the OPENGL32.DLL or something like that but I am not sure of all the details. I imagine that it is not that hard but someone should post an example of this somewhere.
Now, if you need multisampling, things will get rather complicated, as you need to select a special pixel format, that is not supported by GDI. You’ll have to use a WGL_ARB_pixel_format extension. There should b esome tutorials on the net.
Originally posted by rsforster: I also want to remove the Window frame.
Robin
You can use the SDL_NOFRAME flag for this. For the other things I don’t have a fully reliable solution though.
@rsforster if you’re looking to write directly to the metal of windows, then Nehe’s tutorials are a good starting point for creating your own WinProc and such.
The MSDN also has a few articles, but they’re a tad older…okay more than a tad. But they’re also there if you need (or prefer) another resource.