GLRECT



GLRECT

NAME
C SPECIFICATION
PARAMETERS
C SPECIFICATION
PARAMETERS
DESCRIPTION
ERRORS
SEE ALSO

NAME

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

C SPECIFICATION

void glRectd( GLdouble x1,

GLdouble y1,

GLdouble x2,

GLdouble y2 )

void glRectf( GLfloat x1,

GLfloat y1,

GLfloat x2,

GLfloat y2 )

void glRecti( GLint x1,

GLint y1,

GLint x2,

GLint y2 )

void glRects( GLshort x1,

GLshort y1,

GLshort x2,

GLshort y2 )

PARAMETERS

x1, y1

Specify one vertex of a rectangle.

x2, y2

Specify the opposite vertex of the rectangle.

C SPECIFICATION

void glRectdv( const GLdouble *v1,
const GLdouble *v2 )
void glRectfv( const GLfloat *v1,
const GLfloat *v2 )
void glRectiv( const GLint *v1,
const GLint *v2 )
void glRectsv( const GLshort *v1,
const GLshort *v2 )

PARAMETERS

v1

Specifies a pointer to one vertex of a rectangle.

v2

Specifies a pointer to the opposite vertex of the rectangle.

DESCRIPTION

glRect supports efficient specification of rectangles as two corner points. Each rectangle command takes four arguments, organized either as two consecutive pairs of (x,y) coordinates, or as two pointers to arrays, each containing an (x,y) pair. The resulting rectangle is defined in the z = 0 plane.

glRect(x1, y1, x2, y2) is exactly equivalent to the following sequence: glBegin(GL_POLYGON); glVertex2(x1, y1); glVertex2(x2, y1); glVertex2(x2, y2); glVertex2(x1, y2); 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

GL_INVALID_OPERATION is generated if glRect is executed between the execution of glBegin and the corresponding execution of glEnd.

SEE ALSO

glBegin(3G), glVertex(3G)



More Linux Commands

manpages/glutOverlayDisplayFunc.3.html
glutOverlayDisplayFunc(3) - sets the overlay display callbac
glutDisplayFunc sets the overlay display callback for the current window. The overlay display callback is functionally the same as the windows display callback

manpages/patchwork.1.html
patchwork(1) - filter for drawing clustered graphs as treema
patchwork draws clustered graphs using a squarified treemap layout. As input, it takes any graph in the dot format. Each cluster is given an area based on the a

manpages/Tk_SetCaretPos.3.html
Tk_SetCaretPos(3) - set the display caret location (ManPage)
Tk_SetCaretPos sets the caret location for the display of the specified Tk_Window tkwin. The caret is the per-display cursor location used for indicating global

manpages/ceil.3.html
ceil(3) - ceiling function: smallest integral value not less
These functions return the smallest integral value that is not less than x. For example, ceil(0.5) is 1.0, and ceil(-0.5) is 0.0. RETURN VALUE These functions r

manpages/passwd2des.3.html
passwd2des(3) - RFS password encryption - Linux manual page
The function passwd2des() takes a character string passwd of arbitrary length and fills a character array key of length 8. The array key is suitable for use as

manpages/gnutls_certificate_verify_peers2.3.html
gnutls_certificate_verify_peers2(3) - API function (ManPage)
This function will try to verify the peers certificate and return its status (trusted, invalid etc.). The value of status should be one or more of the gnutls_ce

manpages/psfstriptable.1.html
psfstriptable(1) - remove the embedded Unicode character tab
psfstriptable reads a .psf format console font from fontfile, removes the embedded Unicode font table if there is one, and writes the result to outfile. An inpu

manpages/scanlogs.8.html
scanlogs(8) - Summarize and rotate INN log files (Man Page)
scanlogs summarizes the information recorded in the INN log files which reside in the pathlog directory set in inn.conf (see newslog(5) for further details abou

manpages/pstree.1.html
pstree(1) - display a tree of processes - Linux manual page
pstree shows running processes as a tree. The tree is rooted at either pid or init if pid is omitted. If a user name is specified, all process trees rooted at p

manpages/gnutls_x509_crq_set_attribute_by_oid.3.html
gnutls_x509_crq_set_attribute_by_oid(3) - API function......
This function will set the attribute in the certificate request specified by the given Object ID. The attribute must be be DER encoded. RETURNS On success, GNUT

manpages/optionProcess.3.html
optionProcess(3) this is the main option processing routine
This is the main entry point for processing options. It is intended that this procedure be called once at the beginning of the execution of a program. Depending

manpages/xdg-email.1.html
xdg-email(1) - command line tool for sending mail using the
xdg-email opens the users preferred e-mail composer in order to send a mail to address(es) or mailto-uri. RFC2368 defines mailto: URIs. xdg-email limits support





We can't live, work or learn in freedom unless the software we use is free.