Reputation: 8511
How to use GDI functions to draw 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.
Upvotes: 4
Views: 1563
Reputation: 162164
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?
Upvotes: 3