[gl2ps] Tutorial for implementing new backend driver?

Micha Bieber krischnamurti at users.sourceforge.net
Thu Nov 10 15:46:09 CET 2005


> brief guideline how to do this? (Just a few lines like "1. provide
> function void pgfbackenddriver()... 2. register function
> pgfbackenddriver() as a new backend driver in function init(), 3. write
> hooks for gl-feedbacks like this: ...). It will definitely save overall
> time for developing.

Look at the bottom part of gl2ps.h. The functions there state the complete public
interface for gl2ps. They call most of the time another PostScript- resp. PDF version.
Write the LaTeX variant and use one of the special versions for reference.
Add suiting mode related #defines.
That's what I did, when programming the PDF backend.
BTW, what LaTeX features have you in mind in order to replace the primitive OpenGL
calls ?

Micha
--