- fixed editing vertices again!

I had to clean up very old calls to switch matrices for 3d windows.
To make it more clear, I've introduced defines for the infamous persp()
function:

persp(PERSP_WIN);  sets matrices at pixel level window
persp(PERSP_VIEW); restores matrices back to 3d drawing
persp(PERSP_STORE); only called once, to store correct matrices

I will now check on frontbuffer drawing of vertices... it's very doubtful
if it's used still correctly, was only meant for visual speed in the
early nineties you know. :)
This commit is contained in:
2003-10-16 09:39:19 +00:00
parent c7618783fb
commit 5d1438ad96
9 changed files with 48 additions and 46 deletions

View File

@@ -258,7 +258,7 @@ void helpline(float *vec)
getmouseco_areawin(mval);
project_short_noclip(vecrot, mval1);
persp(0);
persp(PERSP_WIN);
glDrawBuffer(GL_FRONT);
@@ -271,7 +271,7 @@ void helpline(float *vec)
glEnd();
setlinestyle(0);
persp(1);
persp(PERSP_VIEW);
glFinish(); // flush display for frontbuffer
glDrawBuffer(GL_BACK);
}
@@ -944,6 +944,8 @@ void calc_meshverts_ext(void)
{
areawinset(curarea->win);
persp(PERSP_VIEW);
mymultmatrix(G.obedit->obmat);
calc_meshverts();
myloadmatrix(G.vd->viewmat);