glDrawBuffer¶
specify which color buffers are to be drawn into
- arguments
-
int
$buf
For default framebuffer, the argument specifies up to four color buffers to be drawn into. Symbolic constantsGL_NONE ,GL_FRONT_LEFT ,GL_FRONT_RIGHT ,GL_BACK_LEFT ,GL_BACK_RIGHT ,GL_FRONT ,GL_BACK ,GL_LEFT ,GL_RIGHT , andGL_FRONT_AND_BACK are accepted. The initial value isGL_FRONT for single-buffered contexts, andGL_BACK for double-buffered contexts. For framebuffer objects,GL_COLOR_ATTACHMENT$m$ andGL_NONE enums are accepted, where$m$ is a value between 0 andGL_MAX_COLOR_ATTACHMENTS .
- returns
-
void
Copyright © 2010-2014 Khronos Group
This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. https://opencontent.org/openpub/.