open-axiom repository from github
/*1Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd.2All rights reserved.34Redistribution and use in source and binary forms, with or without5modification, are permitted provided that the following conditions are6met:78- Redistributions of source code must retain the above copyright9notice, this list of conditions and the following disclaimer.1011- Redistributions in binary form must reproduce the above copyright12notice, this list of conditions and the following disclaimer in13the documentation and/or other materials provided with the14distribution.1516- Neither the name of The Numerical ALgorithms Group Ltd. nor the17names of its contributors may be used to endorse or promote products18derived from this software without specific prior written permission.1920THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS21IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED22TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A23PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER24OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,25EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,26PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR27PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF28LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING29NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS30SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.31*/3233#ifndef _G_H_34#define _G_H_ 13536373839#define Xoption 0 /* Gdraw routine option */40#define PSoption 1 /* Gdraw routine option */4142#define psError -1 /* error return status */4344/* Black and white definitions of PS */4546#define psBlack 0.0 /* def for black in PS */47#define psWhite 1.0 /* def for white in PS */4849/* Foreground and background definition */5051#define psForeground psBlack /* foreground color: black */52#define psBackground psWhite /* background color: white */5354/* Gray scale defintions -- same as that in src/XShade.h for XShadeMax */5556#define psShadeMax 17.0 /* same as XShadeMax */57#define psShadeMul (1.0/(psShadeMax-1.0)) /* white and 16 gray shades */5859#define psNormalWidth 1 /* def for line width */6061/* These are all the line join styles available in PS */6263#define psMiterJoin 064#define psRoundJoin 165#define psBevelJoin 26667/* These are all the line cap styles available in PS */6869#define psButtCap 070#define psRoundCap 171#define psPSqCap 272737475/*76* Structures77*/7879/*80* This is used to keep track of GC name in character and in unsigned long81*/8283typedef struct _GCstruct {84GC GCint;85char GCchar[12];86struct _GCstruct *next;87} GCstruct, *GCptr;888990/*91* These global variables are expected to be declared somewehere in the92* client application source, eg, in main.c for view2D and view3D.93*/9495extern char *PSfilename; /* User-definable output file name. */9697extern int psInit; /* Flag for one-time PS initialization routine. */9899extern GCptr GChead; /* Points to the head of GCstruct linked list. */100101#endif102103104