PDA

View Full Version : what's the use of gltransferf() and how can use it?



kim1980
08-16-2001, 05:32 AM
what's the use of gltransferf() and how can use it?

DFrey
08-16-2001, 06:25 AM
I'm guessing you mean glTranslatef(x,y,z).
It translates (i.e. linearly displaces) the current matrix by the vector (x,y,z). You can use it anytime, assuming a valid render context is current, and as long as it is not called between a glBegin()/glEnd() block.

mikael_aronsson
08-16-2001, 01:45 PM
You might find in useful to take a look at the OpenGL faq:
http://www.opengl.org/developers/faqs/technical.html

There you will find lot's of tips. I do think you should read a book on OpenGL (there are some available on line) to get some understanding of how it works, this will make it a lot easier to understand how it works.

Just a tip.
Mikael