Skip to content

Instantly share code, notes, and snippets.

@sixman9
Created January 25, 2011 17:35
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sixman9/795275 to your computer and use it in GitHub Desktop.
Save sixman9/795275 to your computer and use it in GitHub Desktop.
OpenTK version of OpenGL's GluLookAt()function
Matrix4 lookat = Matrix4.LookAt(cameraPositionX, cameraPositionY, cameraPositionZ, 256, 0, 256, 0.0, 1.0, 0.0);
GL.MatrixMode(MatrixMode.Modelview);
GL.LoadMatrix(ref lookat);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment