Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/post/src/camera/glp.cc
3203 views
1
#include "glpfile.h"
2
#include <stdio.h>
3
4
GLPfile *output;
5
GLPtext *texthead;
6
7
extern "C" void initglp( char *name, int FitToPage )
8
{
9
if ( FitToPage ) {
10
output = new GLPfile( name,1 );
11
} else {
12
output = new GLPfile( name,0 );
13
}
14
if ( output != NULL ) output->StartPage();
15
}
16
17
extern "C" void stopglp()
18
{
19
if (output != NULL)
20
{
21
if (output->EndPage() == 0)
22
{
23
delete output;
24
output = NULL;
25
};
26
};
27
}
28
29