## Represent Rotate and Translate by one Translate

Hi,
I can get my desired result by

--some transformations exist before next--
glRotatef(angle, 0.f, 1.f, 0.f);
glTranslatef(0.f, 0.f, 0.7f);
DrawObject;

Now, I want to represent shift of the origin point ((0,0,0,1)) of the above two transformations by one glTranslatef first in order to track the object position, and put glRotatef after that:

--some transformations exist before next--
glTranslatef(?, ?, ?);
glRotatef(angle, 0.f, 1.f, 0.f);
DrawObject;

I tried the next, but did not work

--some transformations exist before next--
glTranslatef(0.7f*(float)sin(angle), 0.f, 0.7f*(float)cos(angle));
glRotatef(angle, 0.f, 1.f, 0.f);
DrawObject;

What is the right expression in glTranslatef(?, ?, ?) ? Thank you in advance for any help.

Luin

[This message has been edited by Luin (edited 07-02-2000).]