gl2ps.h | gl2ps.h | |||
---|---|---|---|---|
/* $Id: gl2ps.h,v 1.106 2006/02/14 13:23:16 geuzaine Exp $ */ | /* $Id: gl2ps.h,v 1.111 2006/07/26 12:28:39 geuzaine Exp $ */ | |||
/* | /* | |||
* GL2PS, an OpenGL to PostScript Printing Library | * GL2PS, an OpenGL to PostScript Printing Library | |||
* Copyright (C) 1999-2006 Christophe Geuzaine <geuz@geuz.org> | * Copyright (C) 1999-2006 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 41 | skipping to change at line 41 | |||
* 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>. | * Please report all bugs and problems to <gl2ps@geuz.org>. | |||
*/ | */ | |||
#ifndef __GL2PS_H__ | #ifndef __GL2PS_H__ | |||
#define __GL2PS_H__ | #define __GL2PS_H__ | |||
#include <stdio.h> | #include <stdio.h> | |||
#include <stdlib.h> | #include <stdlib.h> | |||
/* Define GL2PSDLL at compile time to build a Windows dll */ | /* Define GL2PSDLL at compile time to build a Windows DLL */ | |||
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT __) | #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT __) | |||
# if defined(_MSC_VER) | # if defined(_MSC_VER) | |||
# pragma warning(disable:4115) | # pragma warning(disable:4115) | |||
# endif | # endif | |||
# include <windows.h> | # include <windows.h> | |||
# if defined(GL2PSDLL) | # if defined(GL2PSDLL) | |||
# if defined(GL2PSDLL_EXPORTS) | # if defined(GL2PSDLL_EXPORTS) | |||
# define GL2PSDLL_API __declspec(dllexport) | # define GL2PSDLL_API __declspec(dllexport) | |||
# else | # else | |||
# define GL2PSDLL_API __declspec(dllimport) | # define GL2PSDLL_API __declspec(dllimport) | |||
# endif | # endif | |||
# else | # else | |||
# define GL2PSDLL_API | # define GL2PSDLL_API | |||
# endif | # endif | |||
#else | #else | |||
# define GL2PSDLL_API | # define GL2PSDLL_API | |||
#endif | #endif | |||
#if defined(__APPLE__) | #if defined(__APPLE__) || defined(HAVE_OPENGL_GL_H) | |||
# include <OpenGL/gl.h> | # include <OpenGL/gl.h> | |||
#else | #else | |||
# include <GL/gl.h> | # include <GL/gl.h> | |||
#endif | #endif | |||
/* Support for compressed PostScript/PDF */ | /* Support for compressed PostScript/PDF/SVG and for embedded PNG | |||
images in SVG */ | ||||
#if defined(HAVE_ZLIB) || defined(HAVE_LIBZ) || defined(GL2PS_HAVE_ZLIB) | #if defined(HAVE_ZLIB) || defined(HAVE_LIBZ) | |||
# include <zlib.h> | # define GL2PS_HAVE_ZLIB | |||
# if !defined(GL2PS_HAVE_ZLIB) | # if defined(HAVE_LIBPNG) || defined(HAVE_PNG) | |||
# define GL2PS_HAVE_ZLIB | # define GL2PS_HAVE_LIBPNG | |||
# 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 3 | |||
#define GL2PS_PATCH_VERSION 7 | #define GL2PS_PATCH_VERSION 0 | |||
#define GL2PS_EXTRA_VERSION "" | ||||
#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) | |||
#define GL2PS_COPYRIGHT "(C) 1999-2006 Christophe Geuzaine (geuz@geuz.org)" | ||||
/* Output file formats (the values and the ordering are important!) */ | /* Output file formats (the values and the ordering are important!) */ | |||
#define GL2PS_PS 0 | #define GL2PS_PS 0 | |||
#define GL2PS_EPS 1 | #define GL2PS_EPS 1 | |||
#define GL2PS_TEX 2 | #define GL2PS_TEX 2 | |||
#define GL2PS_PDF 3 | #define GL2PS_PDF 3 | |||
#define GL2PS_SVG 4 | #define GL2PS_SVG 4 | |||
#define GL2PS_PGF 5 | #define GL2PS_PGF 5 | |||
/* Sorting algorithms */ | /* Sorting algorithms */ | |||
skipping to change at line 171 | skipping to change at line 175 | |||
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 gl2psSetOptions(GLint options); | GL2PSDLL_API GLint gl2psSetOptions(GLint options); | |||
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, | GL2PSDLL_API GLint gl2psTextOpt(const char *str, const char *fontname, | |||
GLshort fontsize, GLint align, GLfloat angl e); | GLshort fontsize, GLint align, GLfloat angl e); | |||
GL2PSDLL_API GLint gl2psSpecial(GLint format, const char *str); | ||||
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 */ | |||
End of changes. 8 change blocks. | ||||
10 lines changed or deleted | 15 lines changed or added | |||