Heading in right direction

I have a little problem. I made a very simple program that only displays a triangle pointing up. I want to rotate it along the y axis and want it to move in that direction where its pointing. I know how to rotate it
using glRotateF… but when i want to move it in that angle i dont know how to do that…

Please help me anyone! =)

Hi!

I don´t know if I got you right, you want to “translate” (position / move) the triangle?
Then you have to use the command:
glTranslatef(xpos, ypos, zpos);

Diapolo