Ignore:
Timestamp:
Feb 16, 2009, 10:14:30 AM (15 years ago)
Author:
garnier
Message:

en test de gl2ps. Problemes de libraries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc

    r918 r921  
    4848#include "G4AttHolder.hh"
    4949#include "G4AttCheck.hh"
    50 
    51 #include "Geant4_gl2ps.h"
    5250
    5351#include <sstream>
     
    118116  fWinSize_x = fVP.GetWindowSizeHintX();
    119117  fWinSize_y = fVP.GetWindowSizeHintY();
     118
     119  fGL2PSAction = new G4OpenGL2PSAction();
    120120
    121121  //  glClearColor (0.0, 0.0, 0.0, 0.0);
     
    883883
    884884  //  fGL2PSAction->enableFileWriting();
     885
     886
     887  //////////////
     888  if (!fGL2PSAction) return;
     889
     890  fGL2PSAction->setFileName("gl2psTest.ps");
     891  G4cout << "Produce " << aFile << "..." << G4endl;
     892  if (fGL2PSAction->enableFileWriting()) {
     893    DrawView();
     894    fGL2PSAction->disableFileWriting();
     895  }
     896  //////////////
     897
    885898  FILE *fFile = fopen(aFile,"w");
    886899  if(!fFile) {
     
    930943                   15, 20, 10, buffsize, fFile, aFile);
    931944    DrawView();
     945#ifdef G4DEBUG_VIS_OGL
     946    printf("into While............\n");
     947#endif
    932948    res = gl2psEndPage();
    933949  }
Note: See TracChangeset for help on using the changeset viewer.