PDA

View Full Version : Will multi modeling transform operation affect the final rendering result?



pango
11-03-2004, 04:19 AM
Please see below two codes:

code1:
glPushMatrix();
//draw a object in point(0,0) with size(1.0,1.0),just draw it in left-top region.
......
glPopMatrix();

code2:
glPushMatrix();
glTranslatef(0.5f,0.5f,0);
glScalef(0.5f,0.5f,1.0f);
//draw some objects in point(-1.0,-1.0) with size(2.0,2.0)
......
glPopMatrix();

What I want to know is the code1 & code2 has the same rendering result?If two codes' final vertexes position are the same,the intercurrent modeling transformation in them will change the final rendering result?