4#ifndef tools_gl2ps_def_h
5#define tools_gl2ps_def_h
19#define TOOLS_GL2PSDLL_API inline
21#define TOOLS_GL2PS_MAJOR_VERSION 1
22#define TOOLS_GL2PS_MINOR_VERSION 4
23#define TOOLS_GL2PS_PATCH_VERSION 2
24#define TOOLS_GL2PS_EXTRA_VERSION ""
26#define TOOLS_GL2PS_VERSION (TOOLS_GL2PS_MAJOR_VERSION + \
27 0.01 * TOOLS_GL2PS_MINOR_VERSION + \
28 0.0001 * TOOLS_GL2PS_PATCH_VERSION)
30#define TOOLS_GL2PS_COPYRIGHT "(C) 1999-2020 C. Geuzaine"
34#define TOOLS_GL2PS_PS 0
35#define TOOLS_GL2PS_EPS 1
36#define TOOLS_GL2PS_TEX 2
37#define TOOLS_GL2PS_PDF 3
38#define TOOLS_GL2PS_SVG 4
39#define TOOLS_GL2PS_PGF 5
43#define TOOLS_GL2PS_NO_SORT 1
44#define TOOLS_GL2PS_SIMPLE_SORT 2
45#define TOOLS_GL2PS_BSP_SORT 3
49#define TOOLS_GL2PS_SUCCESS 0
50#define TOOLS_GL2PS_INFO 1
51#define TOOLS_GL2PS_WARNING 2
52#define TOOLS_GL2PS_ERROR 3
53#define TOOLS_GL2PS_NO_FEEDBACK 4
54#define TOOLS_GL2PS_OVERFLOW 5
55#define TOOLS_GL2PS_UNINITIALIZED 6
59#define TOOLS_GL2PS_NONE 0
60#define TOOLS_GL2PS_DRAW_BACKGROUND (1<<0)
61#define TOOLS_GL2PS_SIMPLE_LINE_OFFSET (1<<1)
62#define TOOLS_GL2PS_SILENT (1<<2)
63#define TOOLS_GL2PS_BEST_ROOT (1<<3)
64#define TOOLS_GL2PS_OCCLUSION_CULL (1<<4)
65#define TOOLS_GL2PS_NO_TEXT (1<<5)
66#define TOOLS_GL2PS_LANDSCAPE (1<<6)
67#define TOOLS_GL2PS_NO_PS3_SHADING (1<<7)
68#define TOOLS_GL2PS_NO_PIXMAP (1<<8)
69#define TOOLS_GL2PS_USE_CURRENT_VIEWPORT (1<<9)
70#define TOOLS_GL2PS_COMPRESS (1<<10)
71#define TOOLS_GL2PS_NO_BLENDING (1<<11)
72#define TOOLS_GL2PS_TIGHT_BOUNDING_BOX (1<<12)
73#define TOOLS_GL2PS_NO_OPENGL_CONTEXT (1<<13)
74#define TOOLS_GL2PS_NO_TEX_FONTSIZE (1<<14)
75#define TOOLS_GL2PS_PORTABLE_SORT (1<<15)
79#define TOOLS_GL2PS_POLYGON_OFFSET_FILL 1
80#define TOOLS_GL2PS_POLYGON_BOUNDARY 2
81#define TOOLS_GL2PS_LINE_STIPPLE 3
82#define TOOLS_GL2PS_BLEND 4
87#define TOOLS_GL2PS_LINE_CAP_BUTT 0
88#define TOOLS_GL2PS_LINE_CAP_ROUND 1
89#define TOOLS_GL2PS_LINE_CAP_SQUARE 2
91#define TOOLS_GL2PS_LINE_JOIN_MITER 0
92#define TOOLS_GL2PS_LINE_JOIN_ROUND 1
93#define TOOLS_GL2PS_LINE_JOIN_BEVEL 2
101#define TOOLS_GL2PS_TEXT_C 1
102#define TOOLS_GL2PS_TEXT_CL 2
103#define TOOLS_GL2PS_TEXT_CR 3
104#define TOOLS_GL2PS_TEXT_B 4
105#define TOOLS_GL2PS_TEXT_BL 5
106#define TOOLS_GL2PS_TEXT_BR 6
107#define TOOLS_GL2PS_TEXT_T 7
108#define TOOLS_GL2PS_TEXT_TL 8
109#define TOOLS_GL2PS_TEXT_TR 9
120#define TOOLS_GL2PS_NO_TYPE -1
121#define TOOLS_GL2PS_TEXT 1
122#define TOOLS_GL2PS_POINT 2
123#define TOOLS_GL2PS_LINE 3
124#define TOOLS_GL2PS_QUADRANGLE 4
125#define TOOLS_GL2PS_TRIANGLE 5
126#define TOOLS_GL2PS_PIXMAP 6
127#define TOOLS_GL2PS_IMAGEMAP 7
128#define TOOLS_GL2PS_IMAGEMAP_WRITTEN 8
129#define TOOLS_GL2PS_IMAGEMAP_VISIBLE 9
130#define TOOLS_GL2PS_SPECIAL 10
135#define TOOLS_GL_TRUE 1
136#define TOOLS_GL_FALSE 0
138#define TOOLS_GL_FLOAT 0x1406
139#define TOOLS_GL_BLEND 0x0BE2
141#define TOOLS_GL_SRC_ALPHA 0x0302
142#define TOOLS_GL_ONE_MINUS_SRC_ALPHA 0x0303
144#define TOOLS_GL_RGB 0x1907
145#define TOOLS_GL_RGBA 0x1908
147#define TOOLS_GL_POINTS 0x0000
149#define TOOLS_GL_CURRENT_RASTER_POSITION_VALID 0x0B08
150#define TOOLS_GL_CURRENT_RASTER_POSITION 0x0B07
151#define TOOLS_GL_CURRENT_RASTER_COLOR 0x0B04
152#define TOOLS_GL_ZERO 0
153#define TOOLS_GL_ONE 1
154#define TOOLS_GL_COLOR_INDEX 0x1900
156#define TOOLS_GL_POINT_TOKEN 0x0701
157#define TOOLS_GL_LINE_TOKEN 0x0702
158#define TOOLS_GL_LINE_RESET_TOKEN 0x0707
159#define TOOLS_GL_POLYGON_TOKEN 0x0703
160#define TOOLS_GL_BITMAP_TOKEN 0x0704
161#define TOOLS_GL_DRAW_PIXEL_TOKEN 0x0705
163#define TOOLS_GL_COPY_PIXEL_TOKEN 0x0706
164#define TOOLS_GL_PASS_THROUGH_TOKEN 0x0700
166#define TOOLS_GL_FEEDBACK 0x1C01
167#define TOOLS_GL_COLOR_CLEAR_VALUE 0x0C22
168#define TOOLS_GL_INDEX_CLEAR_VALUE 0x0C20
169#define TOOLS_GL_RENDER 0x1C00
170#define TOOLS_GL_VIEWPORT 0x0BA2
171#define TOOLS_GL_BLEND_SRC 0x0BE1
172#define TOOLS_GL_BLEND_DST 0x0BE0
173#define TOOLS_GL_3D_COLOR 0x0602
175#define TOOLS_GL_POLYGON_OFFSET_FACTOR 0x8038
176#define TOOLS_GL_POLYGON_OFFSET_UNITS 0x2A00
177#define TOOLS_GL_LINE_STIPPLE_PATTERN 0x0B25
178#define TOOLS_GL_LINE_STIPPLE_REPEAT 0x0B26
180#define TOOLS_GL_ZOOM_X 0x0D16
181#define TOOLS_GL_ZOOM_Y 0x0D17
struct tools_GL2PScontextRec * tools_GL2PScontextPointer
unsigned short tools_GLushort
tools_GLint(* tools_glRenderMode_func)(tools_GLenum)
tools_GLfloat tools_GL2PSxyz[3]
unsigned int tools_GLuint
void(* tools_glVertex3f_func)(tools_GLfloat, tools_GLfloat, tools_GLfloat)
unsigned char tools_GLboolean
void(* tools_glGetFloatv_func)(tools_GLenum, tools_GLfloat *)
void(* tools_glBegin_func)(tools_GLenum)
void(* tools_glFeedbackBuffer_func)(tools_GLsizei, tools_GLenum, tools_GLfloat *)
void(* tools_glPassThrough_func)(tools_GLfloat)
unsigned int tools_GLenum
tools_GLfloat tools_GL2PSrgba[4]
void(* tools_glGetBooleanv_func)(tools_GLenum, tools_GLboolean *)
void(* tools_glEnd_func)()
void(* tools_glGetIntegerv_func)(tools_GLenum, tools_GLint *)
tools_GLboolean(* tools_glIsEnabled_func)(tools_GLenum)