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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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?