How to use GDI functions to draw on a DC which is being used by OpenGL?
How to use GDI functions to dr开发者_JS百科aw on a device context (DC) which is being used by OpenGL?
This means how to use GDI functions and OpenGL together. Supposed that I have a DC, and this DC has been used to initialize OpenGL.
You better not do it. Technically mixing OpenGL and GDI only works properly for single buffered windows. For double buffered windows GDI calls make sense only after the buffer swap.
But why do you want to mix OpenGL and GDI after all?
精彩评论