Click or drag to resize

glGetViewport Method

Returns the current viewport.

Namespace:  Ooogles
Assembly:  Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void GetViewport(
	out int left,
	out int bottom,
	out int width,
	out int height
)

Parameters

left
Type: SystemInt32
Is set to the left coordinate of the viewport.
bottom
Type: SystemInt32
Is set to the bottom coordinate of the viewport.
width
Type: SystemInt32
Is set to the width of the viewport.
height
Type: SystemInt32
Is set to the height of the viewport.
Remarks
Initially the left and bottom window coordinates are both set to 0, and width and height are set to the width and height of the window into which the GL will do its rendering.

OpenGL API: glGetIntegerv(GL_VIEWPORT)

See Also