70 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
71 # if defined(_MSC_VER)
72 # pragma warning(disable:4115)
73 # pragma warning(disable:4127)
74 # pragma warning(disable:4996)
79 # if defined(GL2PSDLL)
80 # if defined(GL2PSDLL_EXPORTS)
81 # define GL2PSDLL_API __declspec(dllexport)
83 # define GL2PSDLL_API __declspec(dllimport)
92 #if defined(__APPLE__) || defined(HAVE_OPENGL_GL_H)
93 # include <OpenGL/gl.h>
101 #if defined(HAVE_ZLIB) || defined(HAVE_LIBZ)
102 # define GL2PS_HAVE_ZLIB
103 # if defined(HAVE_LIBPNG) || defined(HAVE_PNG)
104 # define GL2PS_HAVE_LIBPNG
108 #if defined(HAVE_NO_VSNPRINTF)
109 # define GL2PS_HAVE_NO_VSNPRINTF
114 #define GL2PS_MAJOR_VERSION 1
115 #define GL2PS_MINOR_VERSION 4
116 #define GL2PS_PATCH_VERSION 0
117 #define GL2PS_EXTRA_VERSION ""
119 #define GL2PS_VERSION (GL2PS_MAJOR_VERSION + \
120 0.01 * GL2PS_MINOR_VERSION + \
121 0.0001 * GL2PS_PATCH_VERSION)
123 #define GL2PS_COPYRIGHT "(C) 1999-2017 C. Geuzaine"
136 #define GL2PS_NO_SORT 1
137 #define GL2PS_SIMPLE_SORT 2
138 #define GL2PS_BSP_SORT 3
142 #define GL2PS_SUCCESS 0
144 #define GL2PS_WARNING 2
145 #define GL2PS_ERROR 3
146 #define GL2PS_NO_FEEDBACK 4
147 #define GL2PS_OVERFLOW 5
148 #define GL2PS_UNINITIALIZED 6
153 #define GL2PS_DRAW_BACKGROUND (1<<0)
154 #define GL2PS_SIMPLE_LINE_OFFSET (1<<1)
155 #define GL2PS_SILENT (1<<2)
156 #define GL2PS_BEST_ROOT (1<<3)
157 #define GL2PS_OCCLUSION_CULL (1<<4)
158 #define GL2PS_NO_TEXT (1<<5)
159 #define GL2PS_LANDSCAPE (1<<6)
160 #define GL2PS_NO_PS3_SHADING (1<<7)
161 #define GL2PS_NO_PIXMAP (1<<8)
162 #define GL2PS_USE_CURRENT_VIEWPORT (1<<9)
163 #define GL2PS_COMPRESS (1<<10)
164 #define GL2PS_NO_BLENDING (1<<11)
165 #define GL2PS_TIGHT_BOUNDING_BOX (1<<12)
166 #define GL2PS_NO_OPENGL_CONTEXT (1<<13)
170 #define GL2PS_POLYGON_OFFSET_FILL 1
171 #define GL2PS_POLYGON_BOUNDARY 2
172 #define GL2PS_LINE_STIPPLE 3
173 #define GL2PS_BLEND 4
178 #define GL2PS_LINE_CAP_BUTT 0
179 #define GL2PS_LINE_CAP_ROUND 1
180 #define GL2PS_LINE_CAP_SQUARE 2
182 #define GL2PS_LINE_JOIN_MITER 0
183 #define GL2PS_LINE_JOIN_ROUND 1
184 #define GL2PS_LINE_JOIN_BEVEL 2
192 #define GL2PS_TEXT_C 1
193 #define GL2PS_TEXT_CL 2
194 #define GL2PS_TEXT_CR 3
195 #define GL2PS_TEXT_B 4
196 #define GL2PS_TEXT_BL 5
197 #define GL2PS_TEXT_BR 6
198 #define GL2PS_TEXT_T 7
199 #define GL2PS_TEXT_TL 8
200 #define GL2PS_TEXT_TR 9
211 #define GL2PS_NO_TYPE -1
213 #define GL2PS_POINT 2
215 #define GL2PS_QUADRANGLE 4
216 #define GL2PS_TRIANGLE 5
217 #define GL2PS_PIXMAP 6
218 #define GL2PS_IMAGEMAP 7
219 #define GL2PS_IMAGEMAP_WRITTEN 8
220 #define GL2PS_IMAGEMAP_VISIBLE 9
221 #define GL2PS_SPECIAL 10
223 #if defined(__cplusplus)
228 GLint viewport[4], GLint format, GLint sort,
229 GLint options, GLint colormode,
231 GLint nr, GLint ng, GLint nb, GLint buffersize,
232 FILE *stream,
const char *
filename);
241 GLshort fontsize, GLint align, GLfloat
angle);
243 GLshort fontsize, GLint align, GLfloat angle,
248 GLint xorig, GLint yorig,
249 GLenum format, GLenum type,
const void *pixels);
262 GLfloat ofactor, GLfloat ounits,
263 GLushort pattern, GLint factor,
264 GLfloat width, GLint linecap,
265 GLint linejoin,
char boundary);
270 const unsigned char *imagemap);
275 #if defined(__cplusplus)