PDA

View Full Version : glRotate/Translate/Scale vs. custom func's using the matrices



JGailor
02-27-2003, 12:11 PM
It seems to me that it would be faster to write the matrices for each of these functions myself, and then use glLoadMatrix to perform the desired actions.

Anyone done this and have some real feedback?

Thanks,

shinpaughp
02-27-2003, 12:47 PM
I calculate the matrix for rotation and use glLoadMatrix but then I use gltranslate and I never use scale. Certainly, I could easily add the translation into my matrix and avoid glTranslate. Probably save a few counts. But, I've been lazy of late.