From 43615a4a61f1bf2fb7fdff1b635d52e324fc236f Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Sun, 4 Dec 2005 11:59:48 +0000 Subject: [PATCH] Tiled rendering now works. By default "save snapshot" saves a (X*Y)*2 pixels PPM (4 tiles) where X is the glarea width and Y the glarea height --- src/meshlab/glarea.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/meshlab/glarea.cpp b/src/meshlab/glarea.cpp index 8b1a41e18..efa1e5842 100644 --- a/src/meshlab/glarea.cpp +++ b/src/meshlab/glarea.cpp @@ -24,6 +24,10 @@ History $Log$ +Revision 1.42 2005/12/04 11:59:48 vannini +Tiled rendering now works. +By default "save snapshot" saves a (X*Y)*2 pixels PPM (4 tiles) where X is the glarea width and Y the glarea height + Revision 1.41 2005/12/04 11:49:39 glvertex solved some little bugs now texture button works (not always correct: TO FIX) @@ -375,6 +379,7 @@ void GLArea::paintGL() glPopMatrix(); glMatrixMode(old_matrixMode); pasteTile(); + update(); } // OLD VERSION @@ -426,7 +431,6 @@ void GLArea::paintGL() // ============================== - } void GLArea::resizeGL(int _width, int _height) @@ -448,13 +452,10 @@ bool GLArea::saveSnapshot(QString path) int q; int bufferOffset; - return false; - - totalCols=totalRows=2; + totalCols=totalRows=4; tileRow=tileCol=0; glGetIntegerv(GL_VIEWPORT, vp); - vpWidth=vp[2]; vpHeight=vp[3]; @@ -462,6 +463,8 @@ bool GLArea::saveSnapshot(QString path) takeSnapTile=true; + update(); + return true; }