Sdílet prostřednictvím


GLU.GluPerspective(IGL10, Single, Single, Single, Single) Method

Definition

Set up a perspective projection matrix

[Android.Runtime.Register("gluPerspective", "(Ljavax/microedition/khronos/opengles/GL10;FFFF)V", "")]
public static void GluPerspective (Javax.Microedition.Khronos.Opengles.IGL10? gl, float fovy, float aspect, float zNear, float zFar);
[<Android.Runtime.Register("gluPerspective", "(Ljavax/microedition/khronos/opengles/GL10;FFFF)V", "")>]
static member GluPerspective : Javax.Microedition.Khronos.Opengles.IGL10 * single * single * single * single -> unit

Parameters

gl
IGL10

a GL10 interface

fovy
Single

specifies the field of view angle, in degrees, in the Y direction.

aspect
Single

specifies the aspect ration that determins the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).

zNear
Single

specifies the distance from the viewer to the near clipping plane (always positive).

zFar
Single

specifies the distance from the viewer to the far clipping plane (always positive).

Attributes

Remarks

Set up a perspective projection matrix

Java documentation for android.opengl.GLU.gluPerspective(javax.microedition.khronos.opengles.GL10, float, float, float, float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to