PDA

View Full Version : glrotate geometric question



arthas
03-04-2008, 03:13 AM
hi! I have a simple question.. How is glrotate calculated? I know that it multiplies a matrix ecc.. but pratically, if I draw a rectangle, and I rotate it, the rotation is calculated between the center of the object and the origin , between one angle of the object and the origin or what?

Zengar
03-04-2008, 04:25 AM
The rotate function just "adds" a rotation matrix to the transformation chain, so the rotation will be around the current zero (coordinate system center).