Author Topic: gluPerspective  (Read 1645 times)

0 Members and 1 Guest are viewing this topic.

Peter

  • Guest
gluPerspective
« on: April 26, 2013, 08:10:10 AM »
Deleted
« Last Edit: May 05, 2015, 11:34:12 AM by Peter »

Charles Pegge

  • Guest
Re: gluPerspective
« Reply #1 on: April 27, 2013, 01:27:57 AM »
Hi Peter, Gluperspective should give you the same results as a Frustum call. I have tested it previously.

If your Gluperspective is unprototyped then it won't work. The params will be treated as floats.

void gluPerspective(   GLdouble     fovy,
    GLdouble     aspect,
    GLdouble     zNear,
    GLdouble     zFar);

Solution: Create a temp prototype mapped to GluPerspective.

! gp (double f,a,zn,zf) at Gluperspective
gp 45.0, aspect, 0.1, 100.0