core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

clear.c File Reference


Detailed Description

glClearColor, glClearIndex, glClear() functions.

#include "glheader.h"
#include "clear.h"
#include "context.h"
#include "colormac.h"
#include "state.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.
void GLAPIENTRY _mesa_Clear (GLbitfield mask)
 Clear buffers.


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  ) 


Generated on Sun Sep 27 06:47:45 2009 for Mesa Main by  doxygen 1.5.4