#include "mtypes.h"
Functions | |
| void GLAPIENTRY | _mesa_DrawBuffer (GLenum mode) | 
| Called by glDrawBuffer().   | |
| void GLAPIENTRY | _mesa_DrawBuffersARB (GLsizei n, const GLenum *buffers) | 
| Called by glDrawBuffersARB; specifies the destination color renderbuffers for N fragment program color outputs.   | |
| void | _mesa_drawbuffers (GLcontext *ctx, GLuint n, const GLenum *buffers, const GLbitfield *destMask) | 
| Helper function to set the GL_DRAW_BUFFER state in the context and current FBO.   | |
| void | _mesa_readbuffer (GLcontext *ctx, GLenum buffer, GLint bufferIndex) | 
| Like.   | |
| void GLAPIENTRY | _mesa_ReadBuffer (GLenum mode) | 
| Called by glReadBuffer to set the source renderbuffer for reading pixels.   | |
| void GLAPIENTRY _mesa_DrawBuffer | ( | GLenum | buffer | ) | 
Called by glDrawBuffer().
Specify which renderbuffer(s) to draw into for the first color output. <buffer> can name zero, one, two or four renderbuffers!
| buffer | buffer token such as GL_LEFT or GL_FRONT_AND_BACK, etc. | 
Furthermore, upon a MakeCurrent() or BindFramebuffer() call, if the new FB is a window system FB, we need to re-update the FB's ColorDrawBuffer state to match the context. This is handled in _mesa_update_framebuffer().
See the GL_EXT_framebuffer_object spec for more info.
| void _mesa_drawbuffers | ( | GLcontext * | ctx, | |
| GLuint | n, | |||
| const GLenum * | buffers, | |||
| const GLbitfield * | destMask | |||
| ) | 
Helper function to set the GL_DRAW_BUFFER state in the context and current FBO.
All error checking will have been done prior to calling this function so nothing should go wrong at this point.
| ctx | current context | |
| n | number of color outputs to set | |
| buffers | array[n] of colorbuffer names, like GL_LEFT. | |
| destMask | array[n] of BUFFER_BIT_* bitmasks which correspond to the colorbuffer names. (i.e. GL_FRONT_AND_BACK => BUFFER_BIT_FRONT_LEFT | BUFFER_BIT_BACK_LEFT). | 
| void GLAPIENTRY _mesa_DrawBuffersARB | ( | GLsizei | n, | |
| const GLenum * | buffers | |||
| ) | 
Called by glDrawBuffersARB; specifies the destination color renderbuffers for N fragment program color outputs.
| n | number of outputs | |
| buffers | array [n] of renderbuffer names. Unlike glDrawBuffer, the names cannot specify more than one buffer. For example, GL_FRONT_AND_BACK is illegal. | 
| void GLAPIENTRY _mesa_ReadBuffer | ( | GLenum | buffer | ) | 
Called by glReadBuffer to set the source renderbuffer for reading pixels.
| mode | color buffer such as GL_FRONT, GL_BACK, etc. | 
| void _mesa_readbuffer | ( | GLcontext * | ctx, | |
| GLenum | buffer, | |||
| GLint | bufferIndex | |||
| ) | 
Like.
| ctx | the rendering context | |
| buffer | GL_FRONT, GL_BACK, GL_COLOR_ATTACHMENT0, etc. | |
| bufferIndex | the numerical index corresponding to 'buffer' | 
 1.5.4