how can the diffrent DC share the same OpenGL List?
-
using the sharelist API we can using the same list in diffrent RC, but how can the diffrent DC share the same OpenGL List? thanks :)
Asking the same question twice in a row is not considered appropriate in the CP forums. If you don't get an answer, maybe you should consider modifying your question.
Software rusts. Simon Stephenson, ca 1994.
-
using the sharelist API we can using the same list in diffrent RC, but how can the diffrent DC share the same OpenGL List? thanks :)
as far as opengl is concerned it just execut the opengl commands to the active context.for a single thread we can have only one active context.u can create a context using wglCreateContext function. to make it active u need to call wglMakeCurrent. so u can swith DCs by calling wglMakeCurrent function. if u need to draw simultaneously to two DCs u need to have two threads.
If u can Dream... U can do it