GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of GLRECT

GLRECT

Index
 

NAME

glRectd, glRectf, glRecti, glRects, glRectdv, glRectfv, glRectiv, glRectsv - draw a rectangle

 

C SPECIFICATION

void f3glRectdfP( GLdouble fIx1fP,
   GLfloat fIy1fP,
   GLfloat fIx2fP,
   GLfloat fIy2fP )
void f3glRectifP( GLint fIx1fP,
   GLshort fIy1fP,
   GLshort fIx2fP,
   GLshort fIy2fP )

 

PARAMETERS

f2x1fP, f2y1fP
Specify one vertex of a rectangle.
f2x2fP, f2y2fP
Specify the opposite vertex of the rectangle.
 

C SPECIFICATION

void f3glRectdvfP( const GLdouble fI*v1fP,
   const GLfloat fI*v2fP )
void f3glRectivfP( const GLint fI*v1fP,
   const GLshort fI*v2fP )

 

PARAMETERS

f2v1fP
Specifies a pointer to one vertex of a rectangle.
f2v2fP
Specifies a pointer to the opposite vertex of the rectangle.
 

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

NAME
C SPECIFICATION
PARAMETERS
C SPECIFICATION
PARAMETERS
DESCRIPTION
ERRORS
SEE ALSO