core  array_cache  math  swrast  swrast_setup  tnl  tnl_dd 
Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

buffers.h File Reference

Frame buffer management functions declarations. More...

#include "mtypes.h"

Functions

void GLAPIENTRY _mesa_ClearIndex (GLfloat c)
void GLAPIENTRY _mesa_ClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 Specify the clear values for the color buffers. More...

void GLAPIENTRY _mesa_Clear (GLbitfield mask)
 Clear buffers. More...

void GLAPIENTRY _mesa_DrawBuffer (GLenum mode)
 Specify which color buffers to draw into. More...

void GLAPIENTRY _mesa_ReadBuffer (GLenum mode)
 Set the color buffer source for reading pixels. More...

void GLAPIENTRY _mesa_ResizeBuffersMESA (void)
 GL_MESA_resize_buffers extension. More...

void GLAPIENTRY _mesa_Scissor (GLint x, GLint y, GLsizei width, GLsizei height)
 Define the scissor box. More...

void GLAPIENTRY _mesa_SampleCoverageARB (GLclampf value, GLboolean invert)
void _mesa_init_buffers (GLcontext *ctx)
 Initialize the context scissor data. More...

void _mesa_update_buffers (GLcontext *ctx)
 Update screen bounds. More...


Detailed Description

Frame buffer management functions declarations.


Function Documentation

void GLAPIENTRY _mesa_Clear GLbitfield    mask
 

Clear buffers.

Parameters:
mask  bit-mask indicating the buffers to be cleared.
Flushes the vertices and verifies the parameter. If __GLcontextRec::NewState is set then calls _mesa_update_state() to update gl_frame_buffer::_Xmin, etc. If the rasterization mode is set to GL_RENDER then requests the driver to clear the buffers, via the dd_function_table::Clear callback.

void GLAPIENTRY _mesa_ClearColor GLclampf    red,
GLclampf    green,
GLclampf    blue,
GLclampf    alpha
 

Specify the clear values for the color buffers.

Parameters:
red  red color component.
green  green color component.
blue  blue color component.
alpha  alpha component.
See also:
glClearColor().
Clamps the parameters and updates gl_colorbuffer_attrib::ClearColor. On a change, flushes the vertices and notifies the driver via the dd_function_table::ClearColor callback.

void GLAPIENTRY _mesa_ClearIndex GLfloat    c
 

void GLAPIENTRY _mesa_DrawBuffer GLenum    mode
 

Specify which color buffers to draw into.

Parameters:
mode  color buffer combination.
See also:
glDrawBuffer().
Flushes the vertices and verifies the parameter and updates the gl_colorbuffer_attrib::_DrawDestMask bitfield. Marks new color state in __GLcontextRec::NewState and notifies the driver via the dd_function_table::DrawBuffer callback.

void _mesa_init_buffers GLcontext   ctx
 

Initialize the context scissor data.

Parameters:
ctx  GL context.
Initializes the __GLcontextRec::Scissor and __GLcontextRec::Multisample attribute groups, and related constants in __GLcontextRec::Const.

void GLAPIENTRY _mesa_ReadBuffer GLenum    mode
 

Set the color buffer source for reading pixels.

Parameters:
mode  color buffer.
See also:
glReadBuffer().
Verifies the parameter and updates gl_pixel_attrib::_ReadSrcMask. Marks new pixel state in __GLcontextRec::NewState and notifies the driver via dd_function_table::ReadBuffer.

void GLAPIENTRY _mesa_ResizeBuffersMESA void   
 

GL_MESA_resize_buffers extension.

When this function is called, we'll ask the window system how large the current window is. If it's a new size, we'll call the driver's ResizeBuffers function. The driver will then resize its color buffers as needed, and maybe call the swrast's routine for reallocating swrast-managed depth/stencil/accum/etc buffers.

Note:
This function may be called from within Mesa or called by the user directly (see the GL_MESA_resize_buffers extension).

void GLAPIENTRY _mesa_SampleCoverageARB GLclampf    value,
GLboolean    invert
 

void GLAPIENTRY _mesa_Scissor GLint    x,
GLint    y,
GLsizei    width,
GLsizei    height
 

Define the scissor box.

Parameters:
x, y  coordinates of the scissor box lower-left corner.
width  width of the scissor box.
height  height of the scissor box.
See also:
glScissor().
Verifies the parameters and updates __GLcontextRec::Scissor. On a change flushes the vertices and notifies the driver via the dd_function_table::Scissor callback.

void _mesa_update_buffers GLcontext   ctx
 

Update screen bounds.

Parameters:
ctx  GL context.
Update gl_frame_buffer::_Xmin, and etc.


Generated on Sun May 16 15:55:11 2004 for Mesa Core by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001