View Full Version : Can you modify the matrices during begin/end blocks?

02-07-2001, 11:13 AM
Is it legal to modify the transformation matrices multiple times within the same glBegin()/glEnd() block? Does that bog down the 3D card? I ask this because I have a portion of the map that uses the same texture, and I want to render some of it, change the camera, then render the rest.

02-07-2001, 11:41 AM
Within glBegin/glEnd block, you can not modify any matrix. To do so is an error.

02-08-2001, 05:08 AM
As DFrey said, you can't do any transformations inside glBegin/glEnd. There is nothing wrong with using multiple glBegin/glEnd blocks in a frame. It's often even necessary. (A series of triangle strips for example...)