[wx-discuss] Getting OpenGL Textures from DCs

Mokhtar M. Khorshid MMK at Thunder-Power.com
Mon Jun 9 01:02:13 PDT 2008


I am trying to quickly create OpenGL textures from a wxDC, is there a faster
way than doing it manually? What I need is basically an RGB or RGBA array of
bytes.

One way to do it would be to let the user do the conversion, but drawing to
an array of bytes will be less convenient than drawing to a DC. On the other
hand, if I have to copy the data from the DC then I am wasting CPU cycles. 

 

I believe someone might have already tried something similar and may have a
good solution for this.

 

Thanks

 

Mokhtar M. Khorshid

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-discuss/attachments/20080609/57a4831f/attachment.htm


More information about the wx-discuss mailing list