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
2e789d95
Commit
2e789d95
authored
22 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
update to 0.73
parent
2a9931d0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Graphics/gl2ps.cpp
+8
-7
8 additions, 7 deletions
Graphics/gl2ps.cpp
Graphics/gl2ps.h
+3
-3
3 additions, 3 deletions
Graphics/gl2ps.h
with
11 additions
and
10 deletions
Graphics/gl2ps.cpp
+
8
−
7
View file @
2e789d95
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* GL2PS, an OpenGL to PostScript Printing Library
* GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2003 Christophe Geuzaine
* Copyright (C) 1999-2003 Christophe Geuzaine
*
*
* $Id: gl2ps.cpp,v 1.
59
2003-01-
23 20:23:46
geuzaine Exp $
* $Id: gl2ps.cpp,v 1.
60
2003-01-
30 18:22:37
geuzaine Exp $
*
*
* E-mail: geuz@geuz.org
* E-mail: geuz@geuz.org
* URL: http://www.geuz.org/gl2ps/
* URL: http://www.geuz.org/gl2ps/
...
@@ -791,7 +791,7 @@ GLint gl2psCheckPrimitive(GL2PSprimitive *prim, GL2PSplane plane){
...
@@ -791,7 +791,7 @@ GLint gl2psCheckPrimitive(GL2PSprimitive *prim, GL2PSplane plane){
}
}
GL2PSprimitive
*
gl2psCreateSplitPrimitive2D
(
GL2PSprimitive
*
parent
,
GL2PSprimitive
*
gl2psCreateSplitPrimitive2D
(
GL2PSprimitive
*
parent
,
GL
in
t
numverts
,
GL
shor
t
numverts
,
GL2PSvertex
*
vertx
){
GL2PSvertex
*
vertx
){
GLint
i
;
GLint
i
;
GL2PSprimitive
*
child
=
(
GL2PSprimitive
*
)
gl2psMalloc
(
sizeof
(
GL2PSprimitive
));
GL2PSprimitive
*
child
=
(
GL2PSprimitive
*
)
gl2psMalloc
(
sizeof
(
GL2PSprimitive
));
...
@@ -1029,8 +1029,8 @@ void gl2psBuildPolygonBoundary(GL2PSbsptree *tree){
...
@@ -1029,8 +1029,8 @@ void gl2psBuildPolygonBoundary(GL2PSbsptree *tree){
void
gl2psAddPolyPrimitive
(
GLshort
type
,
GLshort
numverts
,
void
gl2psAddPolyPrimitive
(
GLshort
type
,
GLshort
numverts
,
GL2PSvertex
*
verts
,
GLint
offset
,
GL2PSvertex
*
verts
,
GLint
offset
,
GLshort
dash
,
GLfloat
width
,
char
dash
,
GLfloat
width
,
GLshort
boundary
){
char
boundary
){
GLshort
i
;
GLshort
i
;
GLfloat
factor
,
units
,
area
,
dZ
,
dZdX
,
dZdY
,
maxdZ
;
GLfloat
factor
,
units
,
area
,
dZ
,
dZdX
,
dZdY
,
maxdZ
;
GL2PSprimitive
*
prim
;
GL2PSprimitive
*
prim
;
...
@@ -1133,8 +1133,9 @@ GLint gl2psGetVertex(GL2PSvertex *v, GLfloat *p){
...
@@ -1133,8 +1133,9 @@ GLint gl2psGetVertex(GL2PSvertex *v, GLfloat *p){
}
}
GLint
gl2psParseFeedbackBuffer
(
void
){
GLint
gl2psParseFeedbackBuffer
(
void
){
char
flag
,
dash
=
0
;
GLshort
boundary
;
GLint
i
,
used
,
count
,
v
,
vtot
,
offset
=
0
;
GLint
i
,
used
,
count
,
v
,
vtot
,
offset
=
0
;
GLshort
boundary
,
flag
,
dash
=
0
;
GLfloat
lwidth
=
1.
,
psize
=
1.
;
GLfloat
lwidth
=
1.
,
psize
=
1.
;
GLfloat
*
current
;
GLfloat
*
current
;
GL2PSvertex
vertices
[
3
];
GL2PSvertex
vertices
[
3
];
...
@@ -1501,7 +1502,7 @@ void gl2psPrintPostScriptColor(GL2PSrgba rgba){
...
@@ -1501,7 +1502,7 @@ void gl2psPrintPostScriptColor(GL2PSrgba rgba){
}
}
}
}
void
gl2psResetPostScriptColor
(){
void
gl2psResetPostScriptColor
(
void
){
gl2ps
->
lastrgba
[
0
]
=
gl2ps
->
lastrgba
[
1
]
=
gl2ps
->
lastrgba
[
2
]
=
-
1.
;
gl2ps
->
lastrgba
[
0
]
=
gl2ps
->
lastrgba
[
1
]
=
gl2ps
->
lastrgba
[
2
]
=
-
1.
;
}
}
...
@@ -1794,7 +1795,7 @@ GL2PSDLL_API GLint gl2psEndPage(void){
...
@@ -1794,7 +1795,7 @@ GL2PSDLL_API GLint gl2psEndPage(void){
return
res
;
return
res
;
}
}
GL2PSDLL_API
void
gl2psText
(
const
char
*
str
,
const
char
*
fontname
,
GL
in
t
fontsize
){
GL2PSDLL_API
void
gl2psText
(
const
char
*
str
,
const
char
*
fontname
,
GL
shor
t
fontsize
){
GLfloat
pos
[
4
];
GLfloat
pos
[
4
];
GL2PSprimitive
*
prim
;
GL2PSprimitive
*
prim
;
GLboolean
valid
;
GLboolean
valid
;
...
...
This diff is collapsed.
Click to expand it.
Graphics/gl2ps.h
+
3
−
3
View file @
2e789d95
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* GL2PS, an OpenGL to PostScript Printing Library
* GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2003 Christophe Geuzaine
* Copyright (C) 1999-2003 Christophe Geuzaine
*
*
* $Id: gl2ps.h,v 1.3
4
2003-01-
23 20:23:46
geuzaine Exp $
* $Id: gl2ps.h,v 1.3
5
2003-01-
30 18:22:38
geuzaine Exp $
*
*
* E-mail: geuz@geuz.org
* E-mail: geuz@geuz.org
* URL: http://www.geuz.org/gl2ps/
* URL: http://www.geuz.org/gl2ps/
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
#endif
#endif
#define GL2PS_VERSION 0.7
2
#define GL2PS_VERSION 0.7
3
#define GL2PS_NONE 0
#define GL2PS_NONE 0
/* Output file format */
/* Output file format */
...
@@ -207,7 +207,7 @@ GL2PSDLL_API void gl2psBeginPage(const char *title, const char *producer,
...
@@ -207,7 +207,7 @@ GL2PSDLL_API void gl2psBeginPage(const char *title, const char *producer,
GL2PSrgba
*
colormap
,
GLint
buffersize
,
GL2PSrgba
*
colormap
,
GLint
buffersize
,
FILE
*
stream
,
const
char
*
filename
);
FILE
*
stream
,
const
char
*
filename
);
GL2PSDLL_API
GLint
gl2psEndPage
(
void
);
GL2PSDLL_API
GLint
gl2psEndPage
(
void
);
GL2PSDLL_API
void
gl2psText
(
const
char
*
str
,
const
char
*
fontname
,
GL
int
size
);
GL2PSDLL_API
void
gl2psText
(
const
char
*
str
,
const
char
*
fontname
,
GL
short
font
size
);
GL2PSDLL_API
void
gl2psEnable
(
GLint
mode
);
GL2PSDLL_API
void
gl2psEnable
(
GLint
mode
);
GL2PSDLL_API
void
gl2psDisable
(
GLint
mode
);
GL2PSDLL_API
void
gl2psDisable
(
GLint
mode
);
GL2PSDLL_API
void
gl2psPointSize
(
GLfloat
value
);
GL2PSDLL_API
void
gl2psPointSize
(
GLfloat
value
);
...
...
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