[wx-discuss] Getting OpenGL Textures from DCs
Julian Smart
julian at anthemion.co.uk
Tue Jun 10 06:30:23 PDT 2008
Hi Mokhtar,
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.
Regards,
Julian
Mokhtar M. Khorshid wrote:
> Thanks.
> The code in rawbmp.h works for bitmaps not DCs, are you suggesting I do
> something similar to this for DCs?
>
> -Mokhtar M. Khorshid
>
> -----Original Message-----
> From: wx-discuss-bounces at lists.wxwidgets.org
> [mailto:wx-discuss-bounces at lists.wxwidgets.org] On Behalf Of Vadim Zeitlin
> Sent: Monday, June 09, 2008 6:50 PM
> To: wx-discuss at lists.wxwidgets.org
> Subject: Re: [wx-discuss] Getting OpenGL Textures from DCs
>
> On Mon, 9 Jun 2008 11:02:13 +0300 "Mokhtar M. Khorshid"
> <MMK at Thunder-Power.com> wrote:
>
> MMK> What I need is basically an RGB or RGBA array of bytes.
>
> Look at contents of wx/rawbmp.h and example of using it in the image
> sample.
>
> Regards,
> VZ
>
> _______________________________________________
> wx-discuss mailing list
> wx-discuss at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-discuss
>
> _______________________________________________
> wx-discuss mailing list
> wx-discuss at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-discuss
>
>
>
--
Julian Smart, Anthemion Software Ltd.
28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
www.anthemion.co.uk | +44 (0)131 229 5306
Tools for writers: www.writerscafe.co.uk
wxWidgets RAD: www.anthemion.co.uk/dialogblocks
More information about the wx-discuss
mailing list