![]() -> Click here to learn how to get live help <- |
GLRECTIndexNAMEglRectd, glRectf, glRecti, glRects, glRectdv, glRectfv, glRectiv, glRectsv - draw a rectangleC SPECIFICATIONvoid f3glRectdfP( GLdouble fIx1fP,GLfloat fIy1fP, GLfloat fIx2fP, GLfloat fIy2fP )void f3glRectifP( GLint fIx1fP, GLshort fIy1fP, GLshort fIx2fP, GLshort fIy2fP ) PARAMETERS
C SPECIFICATIONvoid f3glRectdvfP( const GLdouble fI*v1fP,const GLfloat fI*v2fP )void f3glRectivfP( const GLint fI*v1fP, const GLshort fI*v2fP ) PARAMETERS
DESCRIPTION%f3glRectfP supports efficient specification of rectangles as two corner points. Each rectangle command takes four arguments, organized either as two consecutive pairs of (f2xfP,f2yfP) coordinates, or as two pointers to arrays, each containing an (f2xfP,f2yfP) pair. The resulting rectangle is defined in the f2zfP = 0 plane. %f3glRectfP(f2x1fP, f2y1fP, f2x2fP, f2y2fP) is exactly equivalent to the following sequence: glBegin(%f3GL_POLYGONfP); glVertex2(f2x1fP, f2y1fP); glVertex2(f2x2fP, f2y1fP); glVertex2(f2x2fP, f2y2fP); glVertex2(f2x1fP, f2y2fP); glEnd(); Note that if the second vertex is above and to the right of the first vertex, the rectangle is constructed with a counterclockwise winding.ERRORS%f3GL_INVALID_OPERATIONfP is generated if %f3glRectfP is executed between the execution of %f3glBeginfP and the corresponding execution of %f3glEndfP.SEE ALSO%f3glBegin(3G)fP, %f3glVertex(3G)fP
Index |