Created
January 25, 2011 17:35
-
-
Save sixman9/795275 to your computer and use it in GitHub Desktop.
OpenTK version of OpenGL's GluLookAt()function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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