gl2ps.h | gl2ps.h | |||
---|---|---|---|---|
/* $Id: gl2ps.h,v 1.89 2004/09/21 21:48:31 geuzaine Exp $ */ | /* $Id: gl2ps.h,v 1.94 2004/12/19 01:59:30 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 40 | skipping to change at line 40 | |||
* | * | |||
* 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> | |||
#include <math.h> | ||||
/* To generate a Windows dll, you should define GL2PSDLL at compile | /* Define GL2PSDLL at compile time to build a Windows dll */ | |||
time */ | ||||
#if defined (WIN32) || defined(_WIN32) | #if defined (WIN32) || defined(_WIN32) | |||
/* Shut up warning due to bad windows header file */ | ||||
# 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 83 | 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 2 | #define GL2PS_PATCH_VERSION 3 | |||
#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 151 | skipping to change at line 148 | |||
#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 | |||
/* Pass through options */ | ||||
#define GL2PS_BEGIN_POLYGON_OFFSET_FILL 1 | ||||
#define GL2PS_END_POLYGON_OFFSET_FILL 2 | ||||
#define GL2PS_BEGIN_POLYGON_BOUNDARY 3 | ||||
#define GL2PS_END_POLYGON_BOUNDARY 4 | ||||
#define GL2PS_BEGIN_LINE_STIPPLE 5 | ||||
#define GL2PS_END_LINE_STIPPLE 6 | ||||
#define GL2PS_SET_POINT_SIZE 7 | ||||
#define GL2PS_SET_LINE_WIDTH 8 | ||||
#define GL2PS_BEGIN_BLEND 9 | ||||
#define GL2PS_END_BLEND 10 | ||||
#define GL2PS_SRC_BLEND 11 | ||||
#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, | |||
skipping to change at line 201 | skipping to change at line 182 | |||
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); | |||
#if defined(__cplusplus) | #if defined(__cplusplus) | |||
}; | } | |||
#endif | #endif | |||
#endif /* __GL2PS_H__ */ | #endif /* __GL2PS_H__ */ | |||
End of changes. 7 change blocks. | ||||
23 lines changed or deleted | 4 lines changed or added | |||