 | glGetViewport Method |
Returns the current viewport.
Namespace:
Ooogles
Assembly:
Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static void GetViewport(
out int left,
out int bottom,
out int width,
out int height
)
Public Shared Sub GetViewport (
<OutAttribute> ByRef left As Integer,
<OutAttribute> ByRef bottom As Integer,
<OutAttribute> ByRef width As Integer,
<OutAttribute> ByRef height As Integer
)
public:
static void GetViewport(
[OutAttribute] int% left,
[OutAttribute] int% bottom,
[OutAttribute] int% width,
[OutAttribute] int% height
)
static member GetViewport :
left : int byref *
bottom : int byref *
width : int byref *
height : int byref -> unit
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