I’m trying to implement the LowLevelGraphicsContext with the Agg2D AntiGrainGraphics wrapper, and am now coming to the point where I’d like to test it.
On Win32, the Win32ComponentPeer uses the LowLevelGraphicsSoftwareRenderer in the paint message handler, but it would be cool to have some “plugin” structure where I could provide my own LowLevelGraphicsContext implementation.
Jules, I can imagine you have thought about how to do this “neatly”. I was thinking on the line of letting the Win32ComponentPeer take a template argument which is the renderer. Or… maybe let LookAndFeel have a LowLevelGraphicsContext * LookAndFeel::getLowLevelGraphicsContextImpl(Image&) which default returns the LowLevelGraphicsSoftwareRenderer… but that allocates the object on the heap as opposed to on the stack… hmm… :?
/R