Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gl2ps
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dan
gl2ps
Commits
4c37eac1
Commit
4c37eac1
authored
20 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
include g2psTestSimple in the distrib
parent
1fc94990
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+2
-2
2 additions, 2 deletions
Makefile
doc/gl2ps.tex
+3
-2
3 additions, 2 deletions
doc/gl2ps.tex
gl2psTest.c
+2
-2
2 additions, 2 deletions
gl2psTest.c
gl2psTestSimple.c
+4
-4
4 additions, 4 deletions
gl2psTestSimple.c
with
11 additions
and
10 deletions
Makefile
+
2
−
2
View file @
4c37eac1
...
@@ -38,7 +38,7 @@ distrib:
...
@@ -38,7 +38,7 @@ distrib:
mkdir
gl2ps-
${
RELEASE
}
mkdir
gl2ps-
${
RELEASE
}
cd
doc
&&
${
MAKE
}
cd
doc
&&
${
MAKE
}
cp
TODO COPYING.GL2PS COPYING.LGPL gl2ps.c gl2ps.h gl2psTest.c
\
cp
TODO COPYING.GL2PS COPYING.LGPL gl2ps.c gl2ps.h gl2psTest.c
\
doc/gl2ps.pdf gl2ps-
${
RELEASE
}
gl2psTestSimple.c
doc/gl2ps.pdf gl2ps-
${
RELEASE
}
tar
zcvf gl2ps-
${
RELEASE
}
.tgz gl2ps-
${
RELEASE
}
tar
zcvf gl2ps-
${
RELEASE
}
.tgz gl2ps-
${
RELEASE
}
@
echo
"********************************************************************"
@
echo
"********************************************************************"
@
echo
"Did you remember to untabify both gl2ps.c and gl2ps.h?"
@
echo
"Did you remember to untabify both gl2ps.c and gl2ps.h?"
...
@@ -49,6 +49,6 @@ distrib-nightly:
...
@@ -49,6 +49,6 @@ distrib-nightly:
mkdir
gl2ps-
${
DATE
}
mkdir
gl2ps-
${
DATE
}
cd
doc
&&
${
MAKE
}
gl2ps.pdf
cd
doc
&&
${
MAKE
}
gl2ps.pdf
cp
TODO COPYING.GL2PS COPYING.LGPL gl2ps.c gl2ps.h gl2psTest.c
\
cp
TODO COPYING.GL2PS COPYING.LGPL gl2ps.c gl2ps.h gl2psTest.c
\
doc/gl2ps.pdf gl2ps-
${
DATE
}
gl2psTestSimple.c
doc/gl2ps.pdf gl2ps-
${
DATE
}
tar
zcvf gl2ps-nightly.tgz gl2ps-
${
DATE
}
tar
zcvf gl2ps-nightly.tgz gl2ps-
${
DATE
}
rm
-rf
gl2ps-
${
DATE
}
rm
-rf
gl2ps-
${
DATE
}
This diff is collapsed.
Click to expand it.
doc/gl2ps.tex
+
3
−
2
View file @
4c37eac1
% $Id: gl2ps.tex,v 1.19
8
2005-06-19 1
8:30:10
geuzaine Exp $
% $Id: gl2ps.tex,v 1.19
9
2005-06-19 1
9:18:35
geuzaine Exp $
%
%
% GL2PS, an OpenGL to PostScript Printing Library
% GL2PS, an OpenGL to PostScript Printing Library
% Copyright (C) 1999-2005 Christophe Geuzaine <geuz@geuz.org>
% Copyright (C) 1999-2005 Christophe Geuzaine <geuz@geuz.org>
...
@@ -621,7 +621,8 @@ fclose(fp);
...
@@ -621,7 +621,8 @@ fclose(fp);
gl2psText("MyText", "Courier", 12);
gl2psText("MyText", "Courier", 12);
\end{verbatim}
\end{verbatim}
A complete example (
\dd
{
gl2psTest.c
}
) is included in the distribution.
Complete example programs (
\dd
{
gl2psTestSimple.c
}
and
\dd
{
gl2psTest.c
}
)
are included in the distribution.
%\begin{figure}
%\begin{figure}
%\scalebox{0.85}{\input{outLatex.tex}}
%\scalebox{0.85}{\input{outLatex.tex}}
...
...
This diff is collapsed.
Click to expand it.
gl2psTest.c
+
2
−
2
View file @
4c37eac1
/* $Id: gl2psTest.c,v 1.6
8
2005-06-1
8
1
8:06:20
geuzaine Exp $ */
/* $Id: gl2psTest.c,v 1.6
9
2005-06-1
9
1
9:18:35
geuzaine Exp $ */
/*
/*
* GL2PS, an OpenGL to PostScript Printing Library
* GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2005 Christophe Geuzaine <geuz@geuz.org>
* Copyright (C) 1999-2005 Christophe Geuzaine <geuz@geuz.org>
...
@@ -496,7 +496,7 @@ void writefile(int format, int sort, int options, int nbcol,
...
@@ -496,7 +496,7 @@ void writefile(int format, int sort, int options, int nbcol,
while
(
state
==
GL2PS_OVERFLOW
){
while
(
state
==
GL2PS_OVERFLOW
){
buffsize
+=
1024
*
1024
;
buffsize
+=
1024
*
1024
;
gl2psBeginPage
(
file
,
"
t
est"
,
viewport
,
format
,
sort
,
options
,
gl2psBeginPage
(
file
,
"
gl2psT
est"
,
viewport
,
format
,
sort
,
options
,
GL_RGBA
,
0
,
NULL
,
nbcol
,
nbcol
,
nbcol
,
GL_RGBA
,
0
,
NULL
,
nbcol
,
nbcol
,
nbcol
,
buffsize
,
fp
,
file
);
buffsize
,
fp
,
file
);
display
();
display
();
...
...
This diff is collapsed.
Click to expand it.
gl2psTestSimple.c
+
4
−
4
View file @
4c37eac1
/* $Id: gl2psTestSimple.c,v 1.
7
2005-06-19 1
8:56:47
geuzaine Exp $ */
/* $Id: gl2psTestSimple.c,v 1.
8
2005-06-19 1
9:18:35
geuzaine Exp $ */
/*
/*
* GL2PS, an OpenGL to PostScript Printing Library
* GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2005 Christophe Geuzaine <geuz@geuz.org>
* Copyright (C) 1999-2005 Christophe Geuzaine <geuz@geuz.org>
...
@@ -78,12 +78,12 @@ void keyboard(unsigned char key, int x, int y){
...
@@ -78,12 +78,12 @@ void keyboard(unsigned char key, int x, int y){
exit
(
0
);
exit
(
0
);
break
;
break
;
case
's'
:
case
's'
:
fp
=
fopen
(
"
tes
t.eps"
,
"wb"
);
fp
=
fopen
(
"
ou
t.eps"
,
"wb"
);
while
(
state
==
GL2PS_OVERFLOW
){
while
(
state
==
GL2PS_OVERFLOW
){
buffsize
+=
1024
*
1024
;
buffsize
+=
1024
*
1024
;
gl2psBeginPage
(
"test"
,
"
test
"
,
NULL
,
GL2PS_EPS
,
GL2PS_BSP_SORT
,
gl2psBeginPage
(
"test"
,
"
gl2psTestSimple
"
,
NULL
,
GL2PS_EPS
,
GL2PS_BSP_SORT
,
GL2PS_DRAW_BACKGROUND
|
GL2PS_USE_CURRENT_VIEWPORT
,
GL2PS_DRAW_BACKGROUND
|
GL2PS_USE_CURRENT_VIEWPORT
,
GL_RGBA
,
0
,
NULL
,
0
,
0
,
0
,
buffsize
,
fp
,
"
tes
t.eps"
);
GL_RGBA
,
0
,
NULL
,
0
,
0
,
0
,
buffsize
,
fp
,
"
ou
t.eps"
);
display
();
display
();
state
=
gl2psEndPage
();
state
=
gl2psEndPage
();
}
}
...
...
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