Changeset 660 for trunk/geant4/visualization/OpenGL
- Timestamp:
- Dec 13, 2007, 3:43:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r658 r660 1292 1292 } 1293 1293 1294 1295 /** This is the benning of a rescale function. It does nothing for the moment 1296 @param aWidth : new width 1297 @param aHeight : new height 1298 */ 1294 1299 void G4OpenGLQtViewer::rescaleImage( 1295 1300 int aWidth … … 1299 1304 printf("should rescale \n"); 1300 1305 #endif 1306 GLfloat* feedback_buffer; 1307 GLint returned; 1308 FILE* file; 1309 1310 feedback_buffer = new GLfloat[size]; 1311 glFeedbackBuffer (size, GL_3D_COLOR, feedback_buffer); 1312 glRenderMode (GL_FEEDBACK); 1313 1314 glViewport (0, 0, aWidth, aHeight); 1315 DrawView(); 1316 returned = glRenderMode (GL_RENDER); 1317 1301 1318 } 1302 1319
Note: See TracChangeset
for help on using the changeset viewer.