glScalef(0.5f, 0.5f, 0);
// do some things
glScalef(2.0f, 2.0f, 0);
或者..
glPushMatrix();
glScalef(0.5f, 0.5f, 0);
// do some things
glPopMatrix();
哪个更好,性能明智?
glScalef(0.5f, 0.5f, 0);
// do some things
glScalef(2.0f, 2.0f, 0);
或者..
glPushMatrix();
glScalef(0.5f, 0.5f, 0);
// do some things
glPopMatrix();
哪个更好,性能明智?