#include "main/glheader.h"
#include "main/context.h"
#include "main/macros.h"
#include "main/imports.h"
#include "main/fbobject.h"
#include "s_accum.h"
#include "s_context.h"
#include "s_masking.h"
#include "s_span.h"
Defines | |
#define | ACCUM_SCALE16 32767.0 |
#define | USE_OPTIMIZED_ACCUM 0 |
Functions | |
static void | rescale_accum (GLcontext *ctx) |
This is called when we fall out of optimized/unscaled accum buffer mode. | |
void | _swrast_clear_accum_buffer (GLcontext *ctx, struct gl_renderbuffer *rb) |
Clear the accumulation Buffer. | |
static void | accum_add (GLcontext *ctx, GLfloat value, GLint xpos, GLint ypos, GLint width, GLint height) |
static void | accum_mult (GLcontext *ctx, GLfloat mult, GLint xpos, GLint ypos, GLint width, GLint height) |
static void | accum_accum (GLcontext *ctx, GLfloat value, GLint xpos, GLint ypos, GLint width, GLint height) |
static void | accum_load (GLcontext *ctx, GLfloat value, GLint xpos, GLint ypos, GLint width, GLint height) |
static void | accum_return (GLcontext *ctx, GLfloat value, GLint xpos, GLint ypos, GLint width, GLint height) |
void | _swrast_Accum (GLcontext *ctx, GLenum op, GLfloat value) |
Software fallback for glAccum. |
#define ACCUM_SCALE16 32767.0 |
#define USE_OPTIMIZED_ACCUM 0 |
void _swrast_Accum | ( | GLcontext * | ctx, | |
GLenum | op, | |||
GLfloat | value | |||
) |
Software fallback for glAccum.
void _swrast_clear_accum_buffer | ( | GLcontext * | ctx, | |
struct gl_renderbuffer * | rb | |||
) |
Clear the accumulation Buffer.
static void accum_accum | ( | GLcontext * | ctx, | |
GLfloat | value, | |||
GLint | xpos, | |||
GLint | ypos, | |||
GLint | width, | |||
GLint | height | |||
) | [static] |
static void accum_add | ( | GLcontext * | ctx, | |
GLfloat | value, | |||
GLint | xpos, | |||
GLint | ypos, | |||
GLint | width, | |||
GLint | height | |||
) | [static] |
static void accum_load | ( | GLcontext * | ctx, | |
GLfloat | value, | |||
GLint | xpos, | |||
GLint | ypos, | |||
GLint | width, | |||
GLint | height | |||
) | [static] |
static void accum_mult | ( | GLcontext * | ctx, | |
GLfloat | mult, | |||
GLint | xpos, | |||
GLint | ypos, | |||
GLint | width, | |||
GLint | height | |||
) | [static] |
static void accum_return | ( | GLcontext * | ctx, | |
GLfloat | value, | |||
GLint | xpos, | |||
GLint | ypos, | |||
GLint | width, | |||
GLint | height | |||
) | [static] |
static void rescale_accum | ( | GLcontext * | ctx | ) | [static] |
This is called when we fall out of optimized/unscaled accum buffer mode.
That is, we convert each unscaled accum buffer value into a scaled value representing the range[-1, 1].