public void setFrustum ( double left , double right , double bottom , double top , double near , double far ) { matrixMode ( MatrixMode . PROJECTION ) ; resetMatrix ( ) ; gl . glFrustum ( left , right , bottom , top , near , far ) ; matrixMode ( MatrixMode . MODELVIEW ) ; resetMatrix ( ) ; }
Sets a perspective matrix defined through the parameters . Works like glFrustum except it wipes out the current perspective matrix rather than multiplying itself with it .