gl2ps.h | gl2ps.h | |||
---|---|---|---|---|
/* $Id: gl2ps.h,v 1.100 2005/06/23 07:04:59 geuzaine Exp $ */ | /* $Id: gl2ps.h,v 1.106 2006/02/14 13:23:16 geuzaine Exp $ */ | |||
/* | /* | |||
* GL2PS, an OpenGL to PostScript Printing Library | * GL2PS, an OpenGL to PostScript Printing Library | |||
* Copyright (C) 1999-2005 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 | |||
* | * | |||
* b) the GL2PS License as published by Christophe Geuzaine, either | * b) the GL2PS License as published by Christophe Geuzaine, either | |||
* version 2 of the License, or (at your option) any later version. | * version 2 of the License, or (at your option) any later version. | |||
skipping to change at line 43 | skipping to change at line 43 | |||
*/ | */ | |||
#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) | #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 | |||
skipping to change at line 80 | skipping to change at line 80 | |||
# 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 6 | #define GL2PS_PATCH_VERSION 7 | |||
#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 formats (the values and the ordering are important!) */ | |||
#define GL2PS_PS 1 | #define GL2PS_PS 0 | |||
#define GL2PS_EPS 2 | #define GL2PS_EPS 1 | |||
#define GL2PS_TEX 3 | #define GL2PS_TEX 2 | |||
#define GL2PS_PDF 4 | #define GL2PS_PDF 3 | |||
#define GL2PS_SVG 4 | ||||
#define GL2PS_PGF 5 | ||||
/* Sorting algorithms */ | /* Sorting algorithms */ | |||
#define GL2PS_NO_SORT 1 | #define GL2PS_NO_SORT 1 | |||
#define GL2PS_SIMPLE_SORT 2 | #define GL2PS_SIMPLE_SORT 2 | |||
#define GL2PS_BSP_SORT 3 | #define GL2PS_BSP_SORT 3 | |||
/* Message levels and error codes */ | /* Message levels and error codes */ | |||
#define GL2PS_SUCCESS 0 | #define GL2PS_SUCCESS 0 | |||
skipping to change at line 182 | skipping to change at line 184 | |||
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 gl2psDrawImageMap(GLsizei width, GLsizei height, | GL2PSDLL_API GLint gl2psDrawImageMap(GLsizei width, GLsizei height, | |||
const GLfloat position[3], | const GLfloat position[3], | |||
const unsigned char *imagemap); | const unsigned char *imagemap); | |||
GL2PSDLL_API const char *gl2psGetFileExtension(GLint format); | ||||
GL2PSDLL_API const char *gl2psGetFormatDescription(GLint format); | ||||
#if defined(__cplusplus) | #if defined(__cplusplus) | |||
} | } | |||
#endif | #endif | |||
#endif /* __GL2PS_H__ */ | #endif /* __GL2PS_H__ */ | |||
End of changes. 7 change blocks. | ||||
9 lines changed or deleted | 13 lines changed or added | |||