|
ATLAS Offline Software
|
Go to the documentation of this file.
44 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
45 # if defined(_MSC_VER)
46 # pragma warning(disable:4115)
47 # pragma warning(disable:4996)
50 # if defined(GL2PSDLL)
51 # if defined(GL2PSDLL_EXPORTS)
52 # define GL2PSDLL_API __declspec(dllexport)
54 # define GL2PSDLL_API __declspec(dllimport)
63 #if defined(__APPLE__) || defined(HAVE_OPENGL_GL_H)
64 # include <OpenGL/gl.h>
72 #if defined(HAVE_ZLIB) || defined(HAVE_LIBZ)
73 # define GL2PS_HAVE_ZLIB
74 # if defined(HAVE_LIBPNG) || defined(HAVE_PNG)
75 # define GL2PS_HAVE_LIBPNG
81 #define GL2PS_MAJOR_VERSION 1
82 #define GL2PS_MINOR_VERSION 3
83 #define GL2PS_PATCH_VERSION 5
84 #define GL2PS_EXTRA_VERSION ""
86 #define GL2PS_VERSION (GL2PS_MAJOR_VERSION + \
87 0.01 * GL2PS_MINOR_VERSION + \
88 0.0001 * GL2PS_PATCH_VERSION)
90 #define GL2PS_COPYRIGHT "(C) 1999-2009 C. Geuzaine"
103 #define GL2PS_NO_SORT 1
104 #define GL2PS_SIMPLE_SORT 2
105 #define GL2PS_BSP_SORT 3
109 #define GL2PS_SUCCESS 0
111 #define GL2PS_WARNING 2
112 #define GL2PS_ERROR 3
113 #define GL2PS_NO_FEEDBACK 4
114 #define GL2PS_OVERFLOW 5
115 #define GL2PS_UNINITIALIZED 6
120 #define GL2PS_DRAW_BACKGROUND (1<<0)
121 #define GL2PS_SIMPLE_LINE_OFFSET (1<<1)
122 #define GL2PS_SILENT (1<<2)
123 #define GL2PS_BEST_ROOT (1<<3)
124 #define GL2PS_OCCLUSION_CULL (1<<4)
125 #define GL2PS_NO_TEXT (1<<5)
126 #define GL2PS_LANDSCAPE (1<<6)
127 #define GL2PS_NO_PS3_SHADING (1<<7)
128 #define GL2PS_NO_PIXMAP (1<<8)
129 #define GL2PS_USE_CURRENT_VIEWPORT (1<<9)
130 #define GL2PS_COMPRESS (1<<10)
131 #define GL2PS_NO_BLENDING (1<<11)
132 #define GL2PS_TIGHT_BOUNDING_BOX (1<<12)
136 #define GL2PS_POLYGON_OFFSET_FILL 1
137 #define GL2PS_POLYGON_BOUNDARY 2
138 #define GL2PS_LINE_STIPPLE 3
139 #define GL2PS_BLEND 4
147 #define GL2PS_TEXT_C 1
148 #define GL2PS_TEXT_CL 2
149 #define GL2PS_TEXT_CR 3
150 #define GL2PS_TEXT_B 4
151 #define GL2PS_TEXT_BL 5
152 #define GL2PS_TEXT_BR 6
153 #define GL2PS_TEXT_T 7
154 #define GL2PS_TEXT_TL 8
155 #define GL2PS_TEXT_TR 9
159 #if defined(__cplusplus)
164 GLint viewport[4], GLint
format, GLint sort,
165 GLint
options, GLint colormode,
167 GLint nr, GLint
ng, GLint
nb, GLint buffersize,
177 GLshort fontsize, GLint align, GLfloat
angle);
180 GLint xorig, GLint yorig,
181 GLenum
format, GLenum
type,
const void *pixels);
190 const GLfloat position[3],
191 const unsigned char *imagemap);
195 #if defined(__cplusplus)
GL2PSDLL_API GLint gl2psBeginPage(const char *title, const char *producer, GLint viewport[4], GLint format, GLint sort, GLint options, GLint colormode, GLint colorsize, GL2PSrgba *colormap, GLint nr, GLint ng, GLint nb, GLint buffersize, FILE *stream, const char *filename)
GL2PSDLL_API GLint gl2psTextOpt(const char *str, const char *fontname, GLshort fontsize, GLint align, GLfloat angle)
GL2PSDLL_API const char * gl2psGetFileExtension(GLint format)
GL2PSDLL_API GLint gl2psEndViewport(void)
GL2PSDLL_API GLint gl2psDisable(GLint mode)
GL2PSDLL_API GLint gl2psDrawPixels(GLsizei width, GLsizei height, GLint xorig, GLint yorig, GLenum format, GLenum type, const void *pixels)
GL2PSDLL_API GLint gl2psSpecial(GLint format, const char *str)
GL2PSDLL_API GLint gl2psBeginViewport(GLint viewport[4])
GL2PSDLL_API GLint gl2psEndPage(void)
GL2PSDLL_API GLint gl2psText(const char *str, const char *fontname, GLshort fontsize)
double angle(const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
GL2PSDLL_API GLint gl2psBlendFunc(GLenum sfactor, GLenum dfactor)
GL2PSDLL_API GLint gl2psDrawImageMap(GLsizei width, GLsizei height, const GLfloat position[3], const unsigned char *imagemap)
GL2PSDLL_API GLint gl2psSetOptions(GLint options)
GL2PSDLL_API GLint gl2psGetOptions(GLint *options)
GL2PSDLL_API GLint gl2psEnable(GLint mode)
GL2PSDLL_API GLint gl2psLineWidth(GLfloat value)
GL2PSDLL_API GLint gl2psPointSize(GLfloat value)
GL2PSDLL_API const char * gl2psGetFormatDescription(GLint format)