Skip to content
Snippets Groups Projects
Commit 9cd87e8e authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Update gl2ps and associated doc
parent c5d09454
No related branches found
No related tags found
No related merge requests found
......@@ -337,7 +337,7 @@ StringXString ViewOptions_String[] = {
StringXString PrintOptions_String[] = {
{ F|O, "EpsFont" , opt_print_eps_font , "Courier" ,
"Font used for postscript printing" },
"Font used in PostScript/PDF output" },
{ 0, NULL , NULL , NULL , NULL }
} ;
......@@ -990,21 +990,21 @@ StringXNumber ViewOptions_Number[] = {
StringXNumber PrintOptions_Number[] = {
{ F|O, "Compress" , opt_print_compress , 0 ,
"Compress PostScript and PDF output using zlib" },
"Compress PostScript/PDF output using zlib" },
{ F|O, "EpsBackground" , opt_print_eps_background , 1 ,
"Save image background in postscript output" },
"Save image background in PostScript/PDF output" },
{ F|O, "EpsFontSize" , opt_print_eps_font_size , 12. ,
"Font size used for postscript printing" },
"Font size used in PostScript/PDF output" },
{ F|O, "EpsLineWidthFactor" , opt_print_eps_line_width_factor , 0.2 ,
"Width factor for lines in postscript output" },
"Width factor for lines in PostScript/PDF output" },
{ F|O, "EpsPointSizeFactor" , opt_print_eps_point_size_factor , 1. ,
"Size factor for points in postscript output" },
"Size factor for points in PostScript/PDF output" },
{ F|O, "EpsQuality" , opt_print_eps_quality , 1 ,
"Postscript quality (1=simple sort, 2=recursive sort)" },
"PostScript/PDF quality (1=simple sort, 2=BSP tree sort)" },
{ F|O, "EpsOcclusionCulling" , opt_print_eps_occlusion_culling , 1 ,
"Cull occluded primitives (to reduce PostScript file size)" },
"Cull occluded primitives (to reduce PostScript/PDF file size)" },
{ F|O, "EpsBestRoot" , opt_print_eps_best_root , 1 ,
"Try to minimize primitive splitting in recursive sort" },
"Try to minimize primitive splitting in BSP tree sorted PostScript/PDF output" },
{ F|O, "Format" , opt_print_format , FORMAT_AUTO ,
"File format (10=automatic)" },
......
This diff is collapsed.
/* $Id: gl2ps.h,v 1.49 2003-11-04 17:10:29 geuzaine Exp $ */
/* $Id: gl2ps.h,v 1.50 2003-11-08 03:52:10 geuzaine Exp $ */
/*
* GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2003 Christophe Geuzaine <geuz@geuz.org>
......@@ -28,7 +28,8 @@
* library in the file named "COPYING.GL2PS"; if not, I will be glad
* to provide one.
*
* For the latest info about gl2ps, see http://www.geuz.org/gl2ps/
* For the latest info about gl2ps, see http://www.geuz.org/gl2ps/.
* Please report all bugs and problems to <gl2ps@geuz.org>.
*/
#ifndef __GL2PS_H__
......@@ -227,8 +228,10 @@ typedef struct {
char boundary, dash, culled;
GLfloat width, depth;
GL2PSvertex *verts;
GL2PSstring *text;
GL2PSimage *image;
union {
GL2PSstring *text;
GL2PSimage *image;
} data;
} GL2PSprimitive;
typedef struct {
......@@ -275,18 +278,18 @@ extern "C" {
#endif
GL2PSDLL_API GLint gl2psBeginPage(const char *title, const char *producer,
GLint viewport[4], GLint format, GLint sort,
GLint options, GLint colormode,
GLint colorsize, GL2PSrgba *colormap,
GLint nr, GLint ng, GLint nb, GLint buffersize,
FILE *stream, const char *filename);
GLint viewport[4], GLint format, GLint sort,
GLint options, GLint colormode,
GLint colorsize, GL2PSrgba *colormap,
GLint nr, GLint ng, GLint nb, GLint buffersize,
FILE *stream, const char *filename);
GL2PSDLL_API GLint gl2psEndPage(void);
GL2PSDLL_API GLint gl2psBeginViewport(GLint viewport[4]);
GL2PSDLL_API GLint gl2psEndViewport(void);
GL2PSDLL_API GLint gl2psText(const char *str, const char *fontname, GLshort fontsize);
GL2PSDLL_API GLint gl2psDrawPixels(GLsizei width, GLsizei height,
GLint xorig, GLint yorig,
GLenum format, GLenum type, const void *pixels);
GLint xorig, GLint yorig,
GLenum format, GLenum type, const void *pixels);
GL2PSDLL_API GLint gl2psEnable(GLint mode);
GL2PSDLL_API GLint gl2psDisable(GLint mode);
GL2PSDLL_API GLint gl2psPointSize(GLfloat value);
......@@ -294,7 +297,7 @@ GL2PSDLL_API GLint gl2psLineWidth(GLfloat value);
/* Undocumented */
GL2PSDLL_API GLint gl2psTextOpt(const char *str, const char *fontname, GLshort fontsize,
GLint align, GL2PSrgba color);
GLint align, GL2PSrgba color);
#ifdef __cplusplus
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment