开发者

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜