10.02.2014 Views

spec - OpenGL

spec - OpenGL

spec - OpenGL

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.2. WHOLE FRAMEBUFFER OPERATIONS 401<br />

Symbolic Front Front Back Back Aux<br />

Constant Left Right Left Right i<br />

NONE<br />

FRONT_LEFT •<br />

FRONT_RIGHT<br />

•<br />

BACK_LEFT<br />

•<br />

BACK_RIGHT<br />

•<br />

FRONT • •<br />

BACK • •<br />

LEFT • •<br />

RIGHT • •<br />

FRONT_AND_BACK • • • •<br />

AUXi<br />

•<br />

Table 4.4: Arguments to DrawBuffer and ReadBuffer when the context is bound<br />

to a default framebuffer, and the buffers they indicate.<br />

If DrawBuffer is supplied with a constant that is legal for neither the default<br />

framebuffer nor a framebuffer object, then the error INVALID_ENUM results.<br />

DrawBuffer will set the draw buffer for fragment colors other than zero to<br />

NONE.<br />

The command<br />

void DrawBuffers( sizei n, const enum *bufs );<br />

defines the draw buffers to which all fragment colors are written. n <strong>spec</strong>ifies the<br />

number of buffers in bufs. bufs is a pointer to an array of symbolic constants<br />

<strong>spec</strong>ifying the buffer to which each fragment color is written.<br />

Symbolic Constant<br />

NONE<br />

COLOR_ATTACHMENTi (see caption)<br />

Meaning<br />

No buffer<br />

Output fragment color to image attached<br />

at color attachment point i<br />

Table 4.5: Arguments to DrawBuffer(s) and ReadBuffer when the context is<br />

bound to a framebuffer object, and the buffers they indicate. i in COLOR_-<br />

ATTACHMENTi may range from zero to the value of MAX_COLOR_ATTACHMENTS<br />

- 1.<br />

<strong>OpenGL</strong> 4.2 (Compatibility Profile) - August 22, 2011

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!