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
I believe someone might have already tried something similar
and may have a good solution for this.
As I mentioned in private email, we would pass a memory DC to the app
class for rendering and then convert the resulting bitmap to a texture.
So no need to get data from a DC directly. It's worth a quick look at at
the wxMemoryDC documentation.