wxGraphicsContext and wxDC ?

Robert Roebling robert at roebling.de
Fri Jun 1 10:38:01 PDT 2007


Bryan Petty wrote:

> 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.

Well, actually I'm (intermittingly) working on being able to
switch wxDC based drawing engines at run-time (which is 
required for using either Cairo or the old drawing system
depending on which version of GTK+ you have).

 Robert






More information about the wx-users mailing list