Hi to all.
Developing an OpenGL application, I create a window, get the associated device context using GetDC, and create an OpenGL context on the device context handle returned by GetDC. It all ok. Before creating the OpenGL context, I shall call SetPixelFormat. Documentation says that SetPixelFormat shall be called only once (I think once per device context handle).
Well. For systems having only one device it's very simple, but what about systems having two or more devices? how this could work?
First, I don't know how created windows are associated with device contexts. I thought to enumerated every available devices on system, query every pixel format for each device, and then create windows after having setup every device context. In this case I don't have to worry about device pixel format, and I can setup multiple devices for having compatible pixel formats (usefull for sharing objects between OpenGL contexts).
Is it possible to enumerated available video devices? I haven't found any Windows API for enumerating graphical devices to obtain the same handle returned by GetDC... It is possible to associate a window to a specific video device context?
Thanks for your time!