![]() -> Click here to learn how to get live help <- |
GLVIEWPORTIndexNAMEglViewport - set the viewportC SPECIFICATIONvoid f3glViewportfP( GLint fIxfP,f2xfP, f2yfP Specify the lower left corner of the viewport rectangle, in pixels. The initial value is (0,0).
DESCRIPTION%f3glViewportfP specifies the affine transformation of $x$ and $y$ from normalized device coordinates to window coordinates. Let ($x sub nd$, $y sub nd$) be normalized device coordinates. Then the window coordinates ($x sub w$, $y sub w$) are computed as follows:
ERRORS%f3GL_INVALID_VALUEfP is generated if either f2widthfP or f2heightfP is negative. %f3GL_INVALID_OPERATIONfP is generated if %f3glViewportfP is executed between the execution of %f3glBeginfP and the corresponding execution of %f3glEndfP.ASSOCIATED GETS%f3glGetfP with argument %f3GL_VIEWPORTfP%f3glGetfP with argument %f3GL_MAX_VIEWPORT_DIMSfP SEE ALSO%f3glDepthRange(3G)fP
Index |