Language

IGL10.GlViewport(Int32, Int32, Int32, Int32) Method

Definition

Sets the viewport transform from normalized device coordinates to window coordinates.

[Android.Runtime.Register("glViewport", "(IIII)V", "GetGlViewport_IIIIHandler:Javax.Microedition.Khronos.Opengles.IGL10Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void GlViewport(int x, int y, int width, int height);
[<Android.Runtime.Register("glViewport", "(IIII)V", "GetGlViewport_IIIIHandler:Javax.Microedition.Khronos.Opengles.IGL10Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GlViewport : int * int * int * int -> unit

Parameters

x
Int32

The x-coordinate, in pixels, of the viewport's lower-left corner.

y
Int32

The y-coordinate, in pixels, of the viewport's lower-left corner.

width
Int32

The width of the viewport, in pixels.

height
Int32

The height of the viewport, in pixels.

Attributes

Remarks

See the Khronos OpenGL ES reference for glViewport.

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