smhykcll's picture

Glu.gluPerspective()

what is the Glu.gluPerspective() version of OpenTk? i didnt find it.Any Advice?


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jbhunter's picture

Look into using the Matrix4 method CreatePerspectiveFieldOfView

GL.LoadIdentity();
Matrix4 matrix = Matrix4.CreatePerspectiveFieldOfView(fovRadians, width/height, zNear, zFar);
GL.MultMatrix(ref matrix);

Hope that helps

Enthused_Dragon's picture

Nice, this is a big help. :-D