[gl2ps] Tutorial for implementing new backend driver?

Fabian Wenzel wenzel at tu-harburg.de
Thu Nov 10 15:54:41 CET 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Micha Bieber schrieb:
>>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 ?

Thanks for the guideline. I plan to start this weekend or next week. The
"pgf" package (see http://latex-beamer.sourceforge.net) is quite
powerful. It handles shading, opacity and lots of other stuff and it is
to some extend similar to "pstricks". Recently, a new version of pgf
(1.0) has been released including a LaTeX-frontend for pgf called "TikZ"
(very impressive), but for gl2ps I believe, the pgf layer is sufficient.
pgf can compile (under LaTeX) to postscript, to pdf (if pdflatex is
being used) and is supposed to have rudimentary SVG support for htlatex
output (which I have not checked).

Cheers,

	Fabian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDc18wbJzYO4mghQIRAtUWAKCMpJeJfYNvgkx7VPTZDDv88x4fcQCfexl1
CORSTE8gl2iaWLkjJ28YjFc=
=OIBG
-----END PGP SIGNATURE-----