PDA

View Full Version : editing variables



01-03-2001, 06:55 PM
Are there any functions in OpenGL like glTranlsatef() and glRotatef() that allow you to send it an array which would signify coordinates
ex.
double bob[] = { 10.0, 0.0, -5.0 };
glTranslate(1.0, 0.0, -1.0, bob);

does anyone know of a function like this or is it easier to do the math myself?

Shaggy

rangaroek
01-08-2001, 05:59 AM
Originally posted by Shaggy:
Are there any functions in OpenGL like glTranlsatef() and glRotatef() that allow you to send it an array which would signify coordinates
ex.
double bob[] = { 10.0, 0.0, -5.0 };
glTranslate(1.0, 0.0, -1.0, bob);

does anyone know of a function like this or is it easier to do the math myself?

Shaggy

Do it yourself .. it's faster and easier ...
adios dariusz

BTW You could use the feedback mode to do such stuff ... but you better don't ...