[wx-discuss] Getting OpenGL Textures from DCs

Vadim Zeitlin vadim at wxwidgets.org
Tue Jun 10 04:12:36 PDT 2008


On Tue, 10 Jun 2008 12:02:06 +0300 "Mokhtar M. Khorshid" <MMK at Thunder-Power.com> wrote:

MMK> The code in rawbmp.h works for bitmaps not DCs, are you suggesting I do
MMK> something similar to this for DCs?

 wxMemoryDC is the class which allows you to treat wxDC contents as
wxBitmap. So you can Blit() the contents of your DC into a memory one
and then work with it as with bitmap.

 Regards,
VZ



More information about the wx-discuss mailing list