#include "main/glheader.h"
#include "main/colormac.h"
#include "main/macros.h"
#include "main/imports.h"
#include "main/mtypes.h"
#include "s_accum.h"
#include "s_context.h"
#include "s_depth.h"
#include "s_masking.h"
#include "s_stencil.h"
Functions | |
static void | clear_rgba_buffer_with_masking (GLcontext *ctx, struct gl_renderbuffer *rb) |
Clear the color buffer when glColorMask is in effect. | |
static void | clear_ci_buffer_with_masking (GLcontext *ctx, struct gl_renderbuffer *rb) |
Clear color index buffer with masking. | |
static void | clear_rgba_buffer (GLcontext *ctx, struct gl_renderbuffer *rb) |
Clear an rgba color buffer without channel masking. | |
static void | clear_ci_buffer (GLcontext *ctx, struct gl_renderbuffer *rb) |
Clear color index buffer without masking. | |
static void | clear_color_buffers (GLcontext *ctx) |
Clear the front/back/left/right/aux color buffers. | |
void | _swrast_Clear (GLcontext *ctx, GLbitfield buffers) |
Called via the device driver's ctx->Driver.Clear() function if the device driver can't clear one or more of the buffers itself. |
void _swrast_Clear | ( | GLcontext * | ctx, | |
GLbitfield | buffers | |||
) |
Called via the device driver's ctx->Driver.Clear() function if the device driver can't clear one or more of the buffers itself.
buffers | bitfield of BUFFER_BIT_* values indicating which renderbuffers are to be cleared. | |
all | if GL_TRUE, clear whole buffer, else clear specified region. |
static void clear_ci_buffer | ( | GLcontext * | ctx, | |
struct gl_renderbuffer * | rb | |||
) | [static] |
Clear color index buffer without masking.
static void clear_ci_buffer_with_masking | ( | GLcontext * | ctx, | |
struct gl_renderbuffer * | rb | |||
) | [static] |
Clear color index buffer with masking.
static void clear_color_buffers | ( | GLcontext * | ctx | ) | [static] |
Clear the front/back/left/right/aux color buffers.
This function is usually only called if the device driver can't clear its own color buffers for some reason (such as with masking).
static void clear_rgba_buffer | ( | GLcontext * | ctx, | |
struct gl_renderbuffer * | rb | |||
) | [static] |
Clear an rgba color buffer without channel masking.
static void clear_rgba_buffer_with_masking | ( | GLcontext * | ctx, | |
struct gl_renderbuffer * | rb | |||
) | [static] |
Clear the color buffer when glColorMask is in effect.