Up: gltools - an OpenGL based on-line graphics toolbox
Next:
Prev: glmesh - Function Drawing on Simplex Meshes


Subsections


gleps - Encapsulated Postscript Dump

Revision: 2.6
Date: 2000/11/22 15:20:49
Author: Jürgen Fuhrmann


This module provides the possibility to dump rendered graphics into vector postscript files using the feedback buffer rendering mechanism of OpenGL. It is in a beta state and possibly will remain there because it is not that easy to map all the OpenGL functionality to Postscript. It should reasonably well render graphics which remains in the limits of the OpenGL features used by the other gltools parts.

This code would not exist if Mark Kilgard wouldn't have placed his rendereps sample code onto the net, and if there would not exist Frederic Delhoume's free gouraudtriangle postscript code. From Mark's code, handling of lines and polygons has been taken. String handling is new.

glepsDumpUnSorted

 
void glepsDumpUnSorted(glWindow w, FILE *file,int crop);

Create vector postscript dump using the feedback buffer mechanism, but without hidden surface removal. The crop flag is used to decide whether to crop ps output to the actually drawn area or not.

glepsDumpSorted

 
void glepsDumpSorted(glWindow w, FILE *file, int crop);

Create vector postscript dump using the feedback buffer mechanism, with hidden surface removal based on sorting the feedback buffer before the dump. The crop flag is used to decide whether to crop ps output to the actually drawn area or not.

glepsSetOutputFormat

 
void glepsSetOutputFormat(char * coord_fmt, char *color_fmt);

Set the output format for floating point numbers (different for coordinates and colors) in the postscript file. (The more accurate the format, the longer the file...). There have to be a trailing spaces both formats.

void glepsEmitHeader(glWindow w, FILE *file);
void glepsEmitTrailer(glWindow w, FILE *file, int npages);
void glepsGrabEPSFrame(glWindow w, FILE *file, int npage);

Up: gltools - an OpenGL based on-line graphics toolbox
Next:
Prev: glmesh - Function Drawing on Simplex Meshes


© pdelib team 5/21/2001. This page has been generated using the LaTeX typesetting system and latex2html.