Import Geant4 11.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2021-12-10 14:46:44 +01:00
committed by Ben Morgan
parent 6399a014b6
commit 80e2389dd8
3932 changed files with 202519 additions and 246221 deletions
+18 -18
View File
@@ -26,7 +26,7 @@
/*
* GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2017 C. Geuzaine
* Copyright (C) 1999-2020 C. Geuzaine
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of either:
@@ -59,8 +59,8 @@
* Please report all bugs and problems to <gl2ps@geuz.org>.
*/
#ifndef __GL2PS_H__
#define __GL2PS_H__
#ifndef GL2PS_H
#define GL2PS_H
#include <stdio.h>
#include <stdlib.h>
@@ -73,7 +73,9 @@
# pragma warning(disable:4127)
# pragma warning(disable:4996)
# endif
# define NOMINMAX
# if !defined(NOMINMAX)
# define NOMINMAX
# endif
# include <windows.h>
# undef NOMINMAX
# if defined(GL2PSDLL)
@@ -89,18 +91,10 @@
# define GL2PSDLL_API
#endif
#if defined(HAVE_OPENGL_GL_H)
#if defined(__APPLE__) || defined(HAVE_OPENGL_GL_H)
# include <OpenGL/gl.h>
#else
# if defined(__APPLE__)
# ifdef GL2PS_USE_GL_GL_H
# include <GL/gl.h>
# else
# include <OpenGL/gl.h>
# endif
# else
# include <GL/gl.h>
# endif
# include <GL/gl.h>
#endif
/* Support for compressed PostScript/PDF/SVG and for embedded PNG
@@ -121,14 +115,14 @@
#define GL2PS_MAJOR_VERSION 1
#define GL2PS_MINOR_VERSION 4
#define GL2PS_PATCH_VERSION 0
#define GL2PS_PATCH_VERSION 2
#define GL2PS_EXTRA_VERSION ""
#define GL2PS_VERSION (GL2PS_MAJOR_VERSION + \
0.01 * GL2PS_MINOR_VERSION + \
0.0001 * GL2PS_PATCH_VERSION)
#define GL2PS_COPYRIGHT "(C) 1999-2017 C. Geuzaine"
#define GL2PS_COPYRIGHT "(C) 1999-2020 C. Geuzaine"
/* Output file formats (the values and the ordering are important!) */
@@ -172,6 +166,7 @@
#define GL2PS_NO_BLENDING (1<<11)
#define GL2PS_TIGHT_BOUNDING_BOX (1<<12)
#define GL2PS_NO_OPENGL_CONTEXT (1<<13)
#define GL2PS_NO_TEX_FONTSIZE (1<<14)
/* Arguments for gl2psEnable/gl2psDisable */
@@ -180,7 +175,6 @@
#define GL2PS_LINE_STIPPLE 3
#define GL2PS_BLEND 4
/* Arguments for gl2psLineCap/Join */
#define GL2PS_LINE_CAP_BUTT 0
@@ -250,6 +244,9 @@ GL2PSDLL_API GLint gl2psTextOpt(const char *str, const char *fontname,
GL2PSDLL_API GLint gl2psTextOptColor(const char *str, const char *fontname,
GLshort fontsize, GLint align, GLfloat angle,
GL2PSrgba color);
GL2PSDLL_API GLint gl2psTextOptColorBL(const char *str, const char *fontname,
GLshort fontsize, GLint align, GLfloat angle,
GL2PSrgba color, GLfloat blx, GLfloat bly);
GL2PSDLL_API GLint gl2psSpecial(GLint format, const char *str);
GL2PSDLL_API GLint gl2psSpecialColor(GLint format, const char *str, GL2PSrgba rgba);
GL2PSDLL_API GLint gl2psDrawPixels(GLsizei width, GLsizei height,
@@ -262,6 +259,7 @@ GL2PSDLL_API GLint gl2psLineCap(GLint value);
GL2PSDLL_API GLint gl2psLineJoin(GLint value);
GL2PSDLL_API GLint gl2psLineWidth(GLfloat value);
GL2PSDLL_API GLint gl2psBlendFunc(GLenum sfactor, GLenum dfactor);
GL2PSDLL_API GLint gl2psSorting(GLint mode);
/* referenced in the documentation, but not fully documented */
GL2PSDLL_API GLint gl2psForceRasterPos(GL2PSvertex *vert);
@@ -279,9 +277,11 @@ GL2PSDLL_API GLint gl2psDrawImageMap(GLsizei width, GLsizei height,
GL2PSDLL_API const char *gl2psGetFileExtension(GLint format);
GL2PSDLL_API const char *gl2psGetFormatDescription(GLint format);
GL2PSDLL_API GLint gl2psGetFileFormat();
GL2PSDLL_API GLint gl2psSetTexScaling(GLfloat scaling);
#if defined(__cplusplus)
}
#endif
#endif /* __GL2PS_H__ */
#endif