wxGraphicsContext and wxDC ?

Bryan Petty bryan at ibaku.net
Fri Jun 1 10:04:14 PDT 2007


On 6/1/07, olivier.corrio at gmail.com <olivier.corrio at gmail.com> wrote:
> nobody knows ?

Stefan replied with the answer to your question:

"The goal is to have a graphics API that is closer to the modern
graphics engines like Quartz, GDI+ and Cairo, that allow to support
their richness and capabilities.

It also is important to expose some of their objects like matrices,
paths etc as separate objects, that can be stored for later reuse, so
that performance does not suffer from on-the-fly conversions. As a
compatibility DC there is the wxGCDC (GraphicsContextDC) in dcgraph.h
that allows to use the old DC API on a new graphics context."

To add to Stefan's reply, wxGraphicsContext is also the turning point
for abstracting out the rendering engine for the ability to switch out
engines either at compile time or in runtime in the future.

Regards,
Bryan Petty




More information about the wx-users mailing list