Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
9cd87e8e
Commit
9cd87e8e
authored
21 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
Update gl2ps and associated doc
parent
c5d09454
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Common/DefaultOptions.h
+9
-9
9 additions, 9 deletions
Common/DefaultOptions.h
Graphics/gl2ps.cpp
+634
-637
634 additions, 637 deletions
Graphics/gl2ps.cpp
Graphics/gl2ps.h
+15
-12
15 additions, 12 deletions
Graphics/gl2ps.h
with
658 additions
and
658 deletions
Common/DefaultOptions.h
+
9
−
9
View file @
9cd87e8e
...
...
@@ -337,7 +337,7 @@ StringXString ViewOptions_String[] = {
StringXString
PrintOptions_String
[]
=
{
{
F
|
O
,
"EpsFont"
,
opt_print_eps_font
,
"Courier"
,
"Font used
for p
ost
s
cript
printing
"
},
"Font used
in P
ost
S
cript
/PDF output
"
},
{
0
,
NULL
,
NULL
,
NULL
,
NULL
}
}
;
...
...
@@ -990,21 +990,21 @@ StringXNumber ViewOptions_Number[] = {
StringXNumber
PrintOptions_Number
[]
=
{
{
F
|
O
,
"Compress"
,
opt_print_compress
,
0
,
"Compress PostScript
and
PDF output using zlib"
},
"Compress PostScript
/
PDF output using zlib"
},
{
F
|
O
,
"EpsBackground"
,
opt_print_eps_background
,
1
,
"Save image background in
p
ost
s
cript output"
},
"Save image background in
P
ost
S
cript
/PDF
output"
},
{
F
|
O
,
"EpsFontSize"
,
opt_print_eps_font_size
,
12
.
,
"Font size used
for p
ost
s
cript
printing
"
},
"Font size used
in P
ost
S
cript
/PDF output
"
},
{
F
|
O
,
"EpsLineWidthFactor"
,
opt_print_eps_line_width_factor
,
0
.
2
,
"Width factor for lines in
p
ost
s
cript output"
},
"Width factor for lines in
P
ost
S
cript
/PDF
output"
},
{
F
|
O
,
"EpsPointSizeFactor"
,
opt_print_eps_point_size_factor
,
1
.
,
"Size factor for points in
p
ost
s
cript output"
},
"Size factor for points in
P
ost
S
cript
/PDF
output"
},
{
F
|
O
,
"EpsQuality"
,
opt_print_eps_quality
,
1
,
"Post
s
cript quality (1=simple sort, 2=
recursiv
e sort)"
},
"Post
S
cript
/PDF
quality (1=simple sort, 2=
BSP tre
e sort)"
},
{
F
|
O
,
"EpsOcclusionCulling"
,
opt_print_eps_occlusion_culling
,
1
,
"Cull occluded primitives (to reduce PostScript file size)"
},
"Cull occluded primitives (to reduce PostScript
/PDF
file size)"
},
{
F
|
O
,
"EpsBestRoot"
,
opt_print_eps_best_root
,
1
,
"Try to minimize primitive splitting in
recursive sor
t"
},
"Try to minimize primitive splitting in
BSP tree sorted PostScript/PDF outpu
t"
},
{
F
|
O
,
"Format"
,
opt_print_format
,
FORMAT_AUTO
,
"File format (10=automatic)"
},
...
...
This diff is collapsed.
Click to expand it.
Graphics/gl2ps.cpp
+
634
−
637
View file @
9cd87e8e
This diff is collapsed.
Click to expand it.
Graphics/gl2ps.h
+
15
−
12
View file @
9cd87e8e
/* $Id: gl2ps.h,v 1.
49
2003-11-0
4 17:10:29
geuzaine Exp $ */
/* $Id: gl2ps.h,v 1.
50
2003-11-0
8 03:52:10
geuzaine Exp $ */
/*
* GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2003 Christophe Geuzaine <geuz@geuz.org>
...
...
@@ -28,7 +28,8 @@
* library in the file named "COPYING.GL2PS"; if not, I will be glad
* to provide one.
*
* For the latest info about gl2ps, see http://www.geuz.org/gl2ps/
* For the latest info about gl2ps, see http://www.geuz.org/gl2ps/.
* Please report all bugs and problems to <gl2ps@geuz.org>.
*/
#ifndef __GL2PS_H__
...
...
@@ -227,8 +228,10 @@ typedef struct {
char
boundary
,
dash
,
culled
;
GLfloat
width
,
depth
;
GL2PSvertex
*
verts
;
GL2PSstring
*
text
;
GL2PSimage
*
image
;
union
{
GL2PSstring
*
text
;
GL2PSimage
*
image
;
}
data
;
}
GL2PSprimitive
;
typedef
struct
{
...
...
@@ -275,18 +278,18 @@ extern "C" {
#endif
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
);
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
gl2psEndPage
(
void
);
GL2PSDLL_API
GLint
gl2psBeginViewport
(
GLint
viewport
[
4
]);
GL2PSDLL_API
GLint
gl2psEndViewport
(
void
);
GL2PSDLL_API
GLint
gl2psText
(
const
char
*
str
,
const
char
*
fontname
,
GLshort
fontsize
);
GL2PSDLL_API
GLint
gl2psDrawPixels
(
GLsizei
width
,
GLsizei
height
,
GLint
xorig
,
GLint
yorig
,
GLenum
format
,
GLenum
type
,
const
void
*
pixels
);
GLint
xorig
,
GLint
yorig
,
GLenum
format
,
GLenum
type
,
const
void
*
pixels
);
GL2PSDLL_API
GLint
gl2psEnable
(
GLint
mode
);
GL2PSDLL_API
GLint
gl2psDisable
(
GLint
mode
);
GL2PSDLL_API
GLint
gl2psPointSize
(
GLfloat
value
);
...
...
@@ -294,7 +297,7 @@ GL2PSDLL_API GLint gl2psLineWidth(GLfloat value);
/* Undocumented */
GL2PSDLL_API
GLint
gl2psTextOpt
(
const
char
*
str
,
const
char
*
fontname
,
GLshort
fontsize
,
GLint
align
,
GL2PSrgba
color
);
GLint
align
,
GL2PSrgba
color
);
#ifdef __cplusplus
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment