31 #ifdef G4VIS_BUILD_OPENGL_DRIVER
32 #define G4VIS_BUILD_OPENGL_GL2PS
34 #ifdef G4VIS_BUILD_OI_DRIVER
35 #define G4VIS_BUILD_OPENGL_GL2PS
38 #ifdef G4VIS_BUILD_OPENGL_GL2PS
78 gl2psLineWidth( width );
88 gl2psPointSize( size );
109 const char* aFileName
114 fFileName = (strncpy((
char*)
malloc((
unsigned)strlen(aFileName) + 1), aFileName, (
unsigned)strlen(aFileName) + 1));
128 setvbuf (
fFile , NULL , _IONBF , 2048 );
137 int state = gl2psEndPage();
139 if (state == GL2PS_OVERFLOW) {
164 return (
fFile?
true:
false);
172 if(!
fFile)
return false;
173 int options = GL2PS_OCCLUSION_CULL |
174 GL2PS_BEST_ROOT | GL2PS_DRAW_BACKGROUND | GL2PS_USE_CURRENT_VIEWPORT;
177 int sort = GL2PS_BSP_SORT;
182 GLint res = gl2psBeginPage(
"title",
"HEPVis::G4OpenGL2PSAction",
187 GL_RGBA,0, NULL,0,0,0,
190 if (res == GL2PS_ERROR) {
bool disableFileWriting()
void setFileName(const char *)
void resetBufferSizeParameters()
void setViewport(int, int, int, int)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
bool fileWritingEnabled() const
void * malloc(size_t __size)