mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 02:24:38 +00:00
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
This commit is contained in:
parent
0b4f510b50
commit
43615a4a61
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user