[fpc-devel] graph module

peter green plugwash at P10Link.net
Fri Mar 9 16:43:21 CET 2007


> > The graph unit is pretty generic in this respect. You indeed only need  
> > to implement putpixel, getpixel, graphics mode detection, setting a  
> > graphic mode, setting and getting colour palette entries for indexed  
> > modes, and closing down the graphic system again. But it's perfectly  
> > possible to also intercept line, elipse, rectangle etc and to 
> implement  
> > them directly in the "driver".
> 
> So, I may implement only putpixel and etc, but then if I wish I may  
> implement line and othe stuff inside my part of code (or somewhere)?
while you can implement just putpixel and such doing so is a surefire way to get terrible performance.

to keep overhead down the conversion of shapes into pixels should be pushed as close to the framebuffer as possible, preferablly into the graphics card.




More information about the fpc-devel mailing list