GLRECT


HOME

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/gnutls_sign_callback_set.3.html
gnutls_sign_callback_set(3) - API function - Linux man page
Set the callback function. The function must have this prototype: typedef int (*gnutls_sign_func) (gnutls_session_t session, void *userdata, gnutls_certificate_

manpages/smi_render.3.html
smi_render(3) - SMI data and MIB data rendering routines....
These functions provide can be used to render OIDs, values of MIB data, or names of MIB nodes or types. The smiRenderOID() function renders an OID given by its

manpages/vfs_prealloc.8.html
vfs_prealloc(8) - preallocate matching files to a predetermi
This VFS module is part of the samba(7) suite. The vfs_prealloc VFS module preallocates files to a specified size each time a new file is created. This is usefu

manpages/git-stash.1.html
git-stash(1) - Stash the changes in a dirty working director
Use git stash when you want to record the current state of the working directory and the index, but want to go back to a clean working directory. The command sa

manpages/realloc.3.html
realloc(3) - Allocate and free dynamic memory (Man Page)....
The malloc() function allocates size bytes and returns a pointer to the allocated memory. The memory is not initialized. If size is 0, then malloc() returns eit

manpages/FcPatternEqualSubset.3.html
FcPatternEqualSubset(3) - Compare portions of patterns......
Returns whether pa and pb have exactly the same values for all of the objects in os. VERSION Fontconfig version 2.8.0 FcPatternEqualSubset.3 (Library - Linux ma

manpages/gnutls_x509_crt_get_signature.3.html
gnutls_x509_crt_get_signature(3) - API function (Man Page)
This function will extract the signature field of a certificate. RETURNS On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. and a n

manpages/gnutls_db_set_ptr.3.html
gnutls_db_set_ptr(3) - API function - Linux manual page.....
Sets the pointer that will be provided to db store, retrieve and delete functions, as the first argument. REPORTING BUGS Report bugs to <bug-gnutls@gnu.org>. Gn

manpages/grub2-mkrelpath.1.html
grub2-mkrelpath(1) make a system path relative to its root
Transform a system filename into GRUB one. -r, --relative use relative path on btrfs -?, --help give this help list --usage give a short usage message -V, --ver

manpages/va_copy.3.html
va_copy(3) - variable argument lists - Linux manual page....
A function may be called with a varying number of arguments of varying types. The include file <stdarg.h> declares a type va_list and defines three macros for s

manpages/Tk_PhotoGetSize.3.html
Tk_PhotoGetSize(3) - manipulate the image data stored in a p
Tk_FindPhoto returns an opaque handle that is used to identify a particular photo image to the other procedures. The parameter is the name of the image, that is

manpages/fprintf.3.html
fprintf(3) - formatted output conversion - Linux man page...
The functions in the printf() family produce output according to a format as described below. The functions printf() and vprintf() write output to stdout, the s





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