PDA

View Full Version : gluLookAt() source code.



jacquesbas
04-12-2002, 09:08 AM
Hi:

I have an OpenGL app working which uses only one GLUT function: gluLookAt(). Since the OpenGL Reference says: "This function only encapsulates a series of glTranslate() and glRotate() calls", I have tried to write my own function to avoid loading a .dll just for that. I haven't succeeded yet. Could someone help? Are there any public sources for this (and other GLUT) functions?
Thank you.
Jacques.

jmathies
04-12-2002, 02:21 PM
I have an OpenGL app working which uses only one GLUT function: gluLookAt().

Hey dude,

Note : GLU - LookAt(). http://www.opengl.org/discussion_boards/ubb/smile.gif That's not glut,
thats the GLU library. The source is
available in various forms on various platforms. Search Google.

Questions Burner
04-16-2002, 01:42 AM
Originally posted by jacquesbas:
Hi:

I have an OpenGL app working which uses only one GLUT function: gluLookAt(). Since the OpenGL Reference says: "This function only encapsulates a series of glTranslate() and glRotate() calls", I have tried to write my own function to avoid loading a .dll just for that. I haven't succeeded yet. Could someone help? Are there any public sources for this (and other GLUT) functions?
Thank you.
Jacques.

ftp://oss.sgi.com/projects/ogl-sample/download/

Actually it's not "This function only encapsulates a series of glTranslate() and glRotate() calls", you need some calculations
and there's just one glMultMatrixf function
and one glTranslatef function.