I am programming a Mac OSX application in Xcode and I am running into some problems with the GL functions. I need to use the gluPerspective function to do some set up but apparently its is deprecated for osx. Xcode suggests using GLKMatrix4MakePerspective function as a substitute but even after researching the documentation I can't figure out how to use it.
Here is a part of my code:
gluPerspective(30f,[self bounds].size.width/(GLfloat)[self bounds].size.width,1.0f,1000.0f);
glPolygonMode (GL_FRONT_AND_BACK, GL_FILL);
And again, the gluPerspective is deprecated so I can't get the result i am looking for.
If anyone who is good at this could explain it to me how to use the new function as a substitute I would be very grateful.
Thanks in advance for any feedback.