BBC BASIC for Windows
Programming >> Graphics and Games >> First attempt at a triangle plotter
http://bb4w.conforums.com/index.cgi?board=graphics&action=display&num=1408178163

First attempt at a triangle plotter
Post by David Williams on Aug 16th, 2014, 08:36am

http://www.bb4wgames.com/temp/gtrifilldemo.zip (123Kb)

Two EXE's - one shows my plotter (gTriangleFill), the other plots triangles using PLOT 85. Currently mine's about 50% faster than PLOT 85 for non-clipped triangles, and only ~5%/average faster for clipped. The GDI's plotter (the Windows graphics function which BB4W relies on) is not slow; I expected my routine to be at least twice as fast. Overall (especially for clipped triangles), the underlying GDI routines are probably faster.


David.
--