gl2ps.h   gl2ps.h 
/* $Id: gl2ps.h,v 1.87 2004/05/09 18:06:01 geuzaine Exp $ */ /* $Id: gl2ps.h,v 1.88 2004/07/11 22:30:25 geuzaine Exp $ */
/* /*
* GL2PS, an OpenGL to PostScript Printing Library * GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2004 Christophe Geuzaine <geuz@geuz.org> * Copyright (C) 1999-2004 Christophe Geuzaine <geuz@geuz.org>
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of either: * modify it under the terms of either:
* *
* a) the GNU Library General Public License as published by the Free * a) the GNU Library General Public License as published by the Free
* Software Foundation, either version 2 of the License, or (at your * Software Foundation, either version 2 of the License, or (at your
* option) any later version; or * option) any later version; or
skipping to change at line 83 skipping to change at line 83
# include <zlib.h> # include <zlib.h>
# if !defined(GL2PS_HAVE_ZLIB) # if !defined(GL2PS_HAVE_ZLIB)
# define GL2PS_HAVE_ZLIB # define GL2PS_HAVE_ZLIB
# endif # endif
#endif #endif
/* Version number */ /* Version number */
#define GL2PS_MAJOR_VERSION 1 #define GL2PS_MAJOR_VERSION 1
#define GL2PS_MINOR_VERSION 2 #define GL2PS_MINOR_VERSION 2
#define GL2PS_PATCH_VERSION 0 #define GL2PS_PATCH_VERSION 1
#define GL2PS_VERSION (GL2PS_MAJOR_VERSION + \ #define GL2PS_VERSION (GL2PS_MAJOR_VERSION + \
0.01 * GL2PS_MINOR_VERSION + \ 0.01 * GL2PS_MINOR_VERSION + \
0.0001 * GL2PS_PATCH_VERSION) 0.0001 * GL2PS_PATCH_VERSION)
/* Output file format */ /* Output file format */
#define GL2PS_PS 1 #define GL2PS_PS 1
#define GL2PS_EPS 2 #define GL2PS_EPS 2
#define GL2PS_TEX 3 #define GL2PS_TEX 3
skipping to change at line 135 skipping to change at line 135
#define GL2PS_COMPRESS (1<<10) #define GL2PS_COMPRESS (1<<10)
#define GL2PS_NO_BLENDING (1<<11) #define GL2PS_NO_BLENDING (1<<11)
/* Arguments for gl2psEnable/gl2psDisable */ /* Arguments for gl2psEnable/gl2psDisable */
#define GL2PS_POLYGON_OFFSET_FILL 1 #define GL2PS_POLYGON_OFFSET_FILL 1
#define GL2PS_POLYGON_BOUNDARY 2 #define GL2PS_POLYGON_BOUNDARY 2
#define GL2PS_LINE_STIPPLE 3 #define GL2PS_LINE_STIPPLE 3
#define GL2PS_BLEND 4 #define GL2PS_BLEND 4
/* Text alignment */ /* Text alignment (o=raster position; default mode is BL):
+---+ +---+ +---+ +---+ +---+ +---+ +-o-+ o---+ +---o
| o | o | | o | | | | | | | | | | | |
+---+ +---+ +---+ +-o-+ o---+ +---o +---+ +---+ +---+
C CL CR B BL BR T TL TR */
#define GL2PS_TEXT_C 1 #define GL2PS_TEXT_C 1
#define GL2PS_TEXT_CL 2 #define GL2PS_TEXT_CL 2
#define GL2PS_TEXT_CR 3 #define GL2PS_TEXT_CR 3
#define GL2PS_TEXT_B 4 #define GL2PS_TEXT_B 4
#define GL2PS_TEXT_BL 5 #define GL2PS_TEXT_BL 5
#define GL2PS_TEXT_BR 6 #define GL2PS_TEXT_BR 6
#define GL2PS_TEXT_T 7 #define GL2PS_TEXT_T 7
#define GL2PS_TEXT_TL 8 #define GL2PS_TEXT_TL 8
#define GL2PS_TEXT_TR 9 #define GL2PS_TEXT_TR 9
skipping to change at line 161 skipping to change at line 165
#define GL2PS_BEGIN_POLYGON_BOUNDARY 3 #define GL2PS_BEGIN_POLYGON_BOUNDARY 3
#define GL2PS_END_POLYGON_BOUNDARY 4 #define GL2PS_END_POLYGON_BOUNDARY 4
#define GL2PS_BEGIN_LINE_STIPPLE 5 #define GL2PS_BEGIN_LINE_STIPPLE 5
#define GL2PS_END_LINE_STIPPLE 6 #define GL2PS_END_LINE_STIPPLE 6
#define GL2PS_SET_POINT_SIZE 7 #define GL2PS_SET_POINT_SIZE 7
#define GL2PS_SET_LINE_WIDTH 8 #define GL2PS_SET_LINE_WIDTH 8
#define GL2PS_BEGIN_BLEND 9 #define GL2PS_BEGIN_BLEND 9
#define GL2PS_END_BLEND 10 #define GL2PS_END_BLEND 10
#define GL2PS_SRC_BLEND 11 #define GL2PS_SRC_BLEND 11
#define GL2PS_DST_BLEND 12 #define GL2PS_DST_BLEND 12
#define GL2PS_DRAW_IMAGEMAP_TOKEN 13
typedef GLfloat GL2PSrgba[4]; typedef GLfloat GL2PSrgba[4];
#if defined(__cplusplus) #if defined(__cplusplus)
extern "C" { extern "C" {
#endif #endif
GL2PSDLL_API GLint gl2psBeginPage(const char *title, const char *producer, GL2PSDLL_API GLint gl2psBeginPage(const char *title, const char *producer,
GLint viewport[4], GLint format, GLint so rt, GLint viewport[4], GLint format, GLint so rt,
GLint options, GLint colormode, GLint options, GLint colormode,
GLint colorsize, GL2PSrgba *colormap, GLint colorsize, GL2PSrgba *colormap,
GLint nr, GLint ng, GLint nb, GLint buffe rsize, GLint nr, GLint ng, GLint nb, GLint buffe rsize,
FILE *stream, const char *filename); FILE *stream, const char *filename);
GL2PSDLL_API GLint gl2psEndPage(void); GL2PSDLL_API GLint gl2psEndPage(void);
GL2PSDLL_API GLint gl2psBeginViewport(GLint viewport[4]); GL2PSDLL_API GLint gl2psBeginViewport(GLint viewport[4]);
GL2PSDLL_API GLint gl2psEndViewport(void); GL2PSDLL_API GLint gl2psEndViewport(void);
GL2PSDLL_API GLint gl2psText(const char *str, const char *fontname, GL2PSDLL_API GLint gl2psText(const char *str, const char *fontname,
GLshort fontsize); GLshort fontsize);
GL2PSDLL_API GLint gl2psTextOpt(const char *str, const char *fontname,
GLshort fontsize, GLint align, GLfloat angl
e);
GL2PSDLL_API GLint gl2psDrawPixels(GLsizei width, GLsizei height, GL2PSDLL_API GLint gl2psDrawPixels(GLsizei width, GLsizei height,
GLint xorig, GLint yorig, GLint xorig, GLint yorig,
GLenum format, GLenum type, const void * pixels); GLenum format, GLenum type, const void * pixels);
GL2PSDLL_API GLint gl2psEnable(GLint mode); GL2PSDLL_API GLint gl2psEnable(GLint mode);
GL2PSDLL_API GLint gl2psDisable(GLint mode); GL2PSDLL_API GLint gl2psDisable(GLint mode);
GL2PSDLL_API GLint gl2psPointSize(GLfloat value); GL2PSDLL_API GLint gl2psPointSize(GLfloat value);
GL2PSDLL_API GLint gl2psLineWidth(GLfloat value); GL2PSDLL_API GLint gl2psLineWidth(GLfloat value);
GL2PSDLL_API GLint gl2psBlendFunc(GLenum sfactor, GLenum dfactor); GL2PSDLL_API GLint gl2psBlendFunc(GLenum sfactor, GLenum dfactor);
/* Undocumented */ /* undocumented */
GL2PSDLL_API GLint gl2psTextOpt(const char *str, const char *fontname, GL2PSDLL_API GLint gl2psDrawImageMap(GLsizei width, GLsizei height,
GLshort fontsize, GLint align, GL2PSrgba co const GLfloat position[3],
lor); const unsigned char *imagemap);
#if defined(__cplusplus) #if defined(__cplusplus)
}; };
#endif #endif
#endif /* __GL2PS_H__ */ #endif /* __GL2PS_H__ */
 End of changes. 6 change blocks. 
7 lines changed or deleted 15 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/