Changeset 959 for trunk/source/visualization/OpenGL
- Timestamp:
- Apr 2, 2009, 3:23:18 PM (15 years ago)
- Location:
- trunk/source/visualization/OpenGL
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/History
r951 r959 21 21 ------------------------------------- 22 22 23 24th March 2009, Laurent Garnier ( vis-V09-02-01)23 24th March 2009, Laurent Garnier (opengl-V09-02-01) 24 24 - G4OpenGLViewer : Add a fix and resizing when X/Y size was even (lack of precision 25 25 in a /2) -
trunk/source/visualization/OpenGL/include/G4OpenGLWin32Viewer.hh
r956 r959 26 26 // 27 27 // $Id: G4OpenGLWin32Viewer.hh,v 1.15 2009/02/04 16:48:41 lgarnier Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: $ 29 29 // 30 30 // -
trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r955 r959 1634 1634 */ 1635 1635 void G4OpenGLQtViewer::rescaleImage( 1636 int /* aWidth*/1637 ,int /* aHeight*/1636 int /* aWidth */ 1637 ,int /* aHeight */ 1638 1638 ){ 1639 1639 // GLfloat* feedback_buffer; -
trunk/source/visualization/OpenGL/src/G4OpenGLStoredSceneHandler.cc
r955 r959 214 214 { 215 215 216 #ifdef G4DEBUG_VIS_OGL 216 217 printf("G4OpenGLStoredSceneHandler::AddPrimitive\n"); 217 218 #endif 218 219 std::vector< G4Polymarker > poly; 219 220 // 40,83 N03 lancement … … 286 287 } 287 288 #endif 289 #ifdef G4DEBUG_VIS_OGL 288 290 printf("G4OpenGLStoredSceneHandler::AddPrimitive new marker list\n"); 291 #endif 289 292 AddPrimitivePreamble(polymarker); 290 293 G4OpenGLSceneHandler::AddPrimitive(polymarker); … … 378 381 void G4OpenGLStoredSceneHandler::EndModeling () { 379 382 // Make a List which calls the other lists. 383 #ifdef G4DEBUG_VIS_OGL 380 384 printf("G4OpenGLStoredSceneHandler::EndModeling Cree une nouvelle liste+++++++++++++++++++++++++++\n"); 385 #endif 381 386 fTopPODL = glGenLists (1); 382 387 if (glGetError() == GL_OUT_OF_MEMORY) { // Could pre-allocate? -
trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc
r955 r959 115 115 116 116 void G4OpenGLViewer::ClearView () { 117 #ifdef G4DEBUG_VIS_OGL 117 118 printf("G4OpenGLViewer::ClearView\n"); 119 #endif 118 120 glClearColor (background.GetRed(), 119 121 background.GetGreen(), … … 141 143 void G4OpenGLViewer::ResizeGLView() 142 144 { 145 #ifdef G4DEBUG_VIS_OGL 143 146 printf("G4OpenGLViewer::ResizeGLView %d %d\n",fWinSize_x,fWinSize_y); 147 #endif 144 148 // Check size 145 149 GLint dims[2]; … … 182 186 GLint Y = (fWinSize_y - side) / 2; 183 187 188 #ifdef G4DEBUG_VIS_OGL 184 189 printf("G4OpenGLViewer::ResizeGLView X:%d Y:%d W:%d H:%d --side%d\n",(fWinSize_x - side) / 2,(fWinSize_y - side) / 2,fWinSize_x,fWinSize_y,side); 190 #endif 185 191 glViewport(X, Y, side, side); 186 192 // glViewport(0, 0, fWinSize_x,fWinSize_y); -
trunk/source/visualization/OpenGL/src/G4OpenGLXViewer.cc
r955 r959 413 413 void G4OpenGLXViewer::printEPS() { 414 414 415 #ifdef G4DEBUG_VIS_OGL 415 416 printf("G4OpenGLXViewer::print \n"); 417 #endif 416 418 417 419 //using namespace std; … … 541 543 // fGLXWin, 542 544 // cx); 545 #ifdef G4DEBUG_VIS_OGL 543 546 printf("G4OpenGLXViewer::print Restored context:%d old winGL:%d \n",cx,fGLXWin); 547 #endif 544 548 // printf("Error 1:%d 2:%d\n",er1,er2); 545 549 … … 589 593 590 594 595 #ifdef G4DEBUG_VIS_OGL 591 596 printf("------%d------\n",tmp_cx); 597 #endif 592 598 return glXCreateContext (dpy, 593 599 pvi,
Note: See TracChangeset
for help on using the changeset viewer.