GLDRAWBUFFER



GLDRAWBUFFER

NAME
C SPECIFICATION
PARAMETERS
DESCRIPTION
NOTES
ERRORS
ASSOCIATED GETS
SEE ALSO

NAME

glDrawBuffer − specify which color buffers are to be drawn into

C SPECIFICATION

void glDrawBuffer( GLenum mode )

PARAMETERS

mode

Specifies up to four color buffers to be drawn into. Symbolic constants GL_NONE, GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_BACK_LEFT, GL_BACK_RIGHT, GL_FRONT, GL_BACK, GL_LEFT, GL_RIGHT, GL_FRONT_AND_BACK, and GL_AUXi, where i is between 0 and

‘‘GL_AUX_BUFFERS’’ −1, are accepted (GL_AUX_BUFFERS is not the upper limit; use glGet to query the number of available aux buffers.) The initial value is GL_FRONT for single-buffered contexts, and GL_BACK for double-buffered contexts.

DESCRIPTION

When colors are written to the frame buffer, they are written into the color buffers specified by glDrawBuffer. The specifications are as follows:

GL_NONE

No color buffers are written.

GL_FRONT_LEFT

Only the front left color buffer is written.

GL_FRONT_RIGHT

Only the front right color buffer is written.

GL_BACK_LEFT

Only the back left color buffer is written.

GL_BACK_RIGHT

Only the back right color buffer is written.

GL_FRONT

Only the front left and front right color buffers are written. If there is no front right color buffer, only the front left color buffer is written.

GL_BACK

Only the back left and back right color buffers are written. If there is no back right color buffer, only the back left color buffer is written.

GL_LEFT

Only the front left and back left color buffers are written. If there is no back left color buffer, only the front left color buffer is written.

GL_RIGHT

Only the front right and back right color buffers are written. If there is no back right color buffer, only the front right color buffer is written.

GL_FRONT_AND_BACK

All the front and back color buffers (front left, front right, back left, back right) are written. If there are no back color buffers, only the front left and front right color buffers are written. If there are no right color buffers, only the front left and back left color buffers are written. If there are no right or back color buffers, only the front left color buffer is written.

GL_AUXi

Only auxiliary color buffer i is written.

If more than one color buffer is selected for drawing, then blending or logical operations are computed and applied independently for each color buffer and can produce different results in each buffer.

Monoscopic contexts include only left buffers, and stereoscopic contexts include both left and right buffers. Likewise, single-buffered contexts include only front buffers, and double-buffered contexts include both front and back buffers. The context is selected at GL initialization.

NOTES

It is always the case that GL_AUX$i$ = GL_AUX0 + $i$.

ERRORS

GL_INVALID_ENUM is generated if mode is not an accepted value.

GL_INVALID_OPERATION is generated if none of the buffers indicated by mode exists.

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

ASSOCIATED GETS

glGet with argument GL_DRAW_BUFFER
glGet
with argument GL_AUX_BUFFERS

SEE ALSO

glBlendFunc(3G), glColorMask(3G), glIndexMask(3G), glLogicOp(3G), glReadBuffer(3G)



More Linux Commands

manpages/XrmPutResource.3.html
XrmPutResource(3) - store database resources (Man Page).....
If database contains NULL, XrmPutResource creates a new database and returns a pointer to it. XrmPutResource is a convenience function that calls XrmStringToBin

manpages/ntdbbackup.8.html
ntdbbackup(8) tool for backing up and for validating the int
This tool is part of the samba(1) suite. ntdbbackup is a tool that may be used to backup samba .ntdb files. This tool may also be used to verify the integrity o

manpages/Tcl_ValidateAllMemory.3.html
Tcl_ValidateAllMemory(3) - Validated memory allocation inter
These functions provide access to Tcl memory debugging information. They are only functional when Tcl has been compiled with TCL_MEM_DEBUG defined at compile-ti

manpages/ldap_syntax2name.3.html
ldap_syntax2name(3) - Schema definition handling routines...
These routines are used to parse schema definitions in the syntax defined in RFC 4512 into structs and handle these structs. These routines handle four kinds of

manpages/XSetWMClientMachine.3.html
XSetWMClientMachine(3) - set or read a window's WM_CLIENT_MA
The XSetWMClientMachine convenience function calls XSetTextProperty to set the WM_CLIENT_MACHINE property. The XGetWMClientMachine convenience function performs

manpages/sha384.1ssl.html
sha384(1ssl) message digests (Commands - Linux man page)....
The digest functions output the message digest of a supplied file or files in hexadecimal. The digest functions also generate and verify digital signatures usin

manpages/pam_winbind.8.html
pam_winbind(8) - PAM module for Winbind - Linux manual page
This tool is part of the samba(7) suite. pam_winbind is a PAM module that can authenticate users against the local domain by talking to the Winbind daemon. SYNO

manpages/set_form_term.3form.html
set_form_term(3form) - set hooks for automatic invocation by
These functions make it possible to set hook functions to be called at various points in the automatic processing of input event codes by form_driver. The funct

manpages/perlebcdic.1.html
perlebcdic(1) - Considerations for running Perl on EBCDIC pl
An exploration of some of the issues facing Perl programmers on EBCDIC based computers. We do not cover localization, internationalization, or multi-byte charac

manpages/TIFFSetDirectory.3tiff.html
TIFFSetDirectory(3tiff) - set the current directory for an o
TIFFSetDirectory changes the current directory and reads its contents with TIFFReadDirectory. The parameter dirnum specifies the subfile/directory as an integer

manpages/patch.1.html
patch(1) - apply a diff file to an original - Linux man page
patch takes a patch file patchfile containing a difference listing produced by the diff program and applies those differences to one or more original files, pro

manpages/getutxid.3.html
getutxid(3) - access utmp file entries - Linux manual page
New applications should use the POSIX.1-specified utmpx versions of these functions; see CONFORMING TO. utmpname() sets the name of the utmp-format file for the





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