[ANN] CairoPad
Hakki Dogusan
dogusanh at dynaset.org
Sat Dec 15 05:57:42 PST 2007
Hi,
Kevin Ollivier wrote:
> Hi Hakki,
> [snip]
> On Dec 14, 2007, at 12:27 AM, Hakki Dogusan wrote:
> [snip]
>>
>> ps. I did some experiment with Cairo using wx/cpp, before using it
>> with wxLua. I modified a local copy of src/generic/graphicc.cpp to use
>> Cairo in win32. Drawing sample's alpha test worked. But, I think, to
>> use Cairo API directly, a wxCairoContext and wxCairoCanvas (similar to
>> wxGLContext,wxGLCanvas) would be a good addition.
>
> Would you happen to have the build system changes you made for this
> experiment? As Robin noted, there is a wxCairoContext already used by
> wxGraphicsContext, and wxGraphicsContext is designed so that you can
> switch backends. To be honest, the performance on GDI+ is not all that
> great, and so I think moving to Cairo for wxWebKit on Windows might be
> worth investigating. I know at least one other person who'd probably be
> interested in experimenting, so if we all got together I think we could
> hammer this out fairly quickly. :-)
>
> Thanks,
>
> Kevin
>
I didn't touch wx' build system. Copied related files and modified them.
I put a file at http://www.dynaset.org/dogusanh/download/wxdrawing.zip
(1110Kb)
It includes a drawing.exe (Mingw, upx'ed), Code::Blocks project,
libcairo.a, some Cairo header files, and related files from wx. I only
changed graphicc.cpp file (from src/generic, my changes are marked with
"//hd...").
Please don't use "Lines screen" menu with "Use GraphicContext"; it hangs.
Note: Code::Blocks project file format is XML; you may see my
compilation flags.
--
Regards,
Hakki Dogusan
More information about the wx-users
mailing list