Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fast pixel operations, wxDC, wx-sdl

51 views
Skip to first unread message

Andy Wittmann

unread,
Sep 6, 2009, 4:25:54 AM9/6/09
to
Hello NG!

For some graphical output of a wxWidgets based application i'll need a
fast way to set pixels (without opengl!) on a wxPanel.

Using a Device Context work's fine but Google said that there's maybe a
faster solution which is called wx-sdl.

So i have tried wx-sdl. Created a SDL-Surface, draw on it, do some RGB
<-> BGR conversion, create a wxBitmap and display it via a
wxDC. Performance stats are both equal (nearly) but i don't like the
conversion overhead.

My question: Are there any other faster ways to draw some pixels on a
wx-control? Portability is important and direct-access through direct-x
(or gtk) is no option.

Thanks,
Andy

Vadim Zeitlin

unread,
Sep 10, 2009, 11:08:51 AM9/10/09
to
On 2009-09-06, Andy Wittmann <andy...@gmx.net> wrote:
> My question: Are there any other faster ways to draw some pixels on a
> wx-control?

Yes, see classes in wx/rawbmp.h and an example of their use in
samples/image.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/

0 new messages