#include "main/glheader.h"
#include "main/imports.h"
#include "main/macros.h"
#include "main/mtypes.h"
#include "swrast/s_aaline.h"
#include "swrast/s_context.h"
#include "swrast/s_span.h"
#include "swrast/swrast.h"
#include "s_aalinetemp.h"
Data Structures | |
| struct | LineInfo |
Defines | |
| #define | SUB_PIXEL 4 |
| #define | SOLVE_PLANE(X, Y, PLANE) ((PLANE[3] + PLANE[0] * (X) + PLANE[1] * (Y)) / -PLANE[2]) |
| #define | NAME(x) aa_ci_##x |
| #define | DO_Z |
| #define | DO_ATTRIBS |
| #define | DO_INDEX |
| #define | NAME(x) aa_rgba_##x |
| #define | DO_Z |
| #define | DO_RGBA |
| #define | NAME(x) aa_general_rgba_##x |
| #define | DO_Z |
| #define | DO_RGBA |
| #define | DO_ATTRIBS |
Typedefs | |
| typedef void(* | plot_func )(GLcontext *ctx, struct LineInfo *line, int ix, int iy) |
Functions | |
| static void | compute_plane (GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z0, GLfloat z1, GLfloat plane[4]) |
| static INLINE void | constant_plane (GLfloat value, GLfloat plane[4]) |
| static INLINE GLfloat | solve_plane (GLfloat x, GLfloat y, const GLfloat plane[4]) |
| static INLINE GLfloat | solve_plane_recip (GLfloat x, GLfloat y, const GLfloat plane[4]) |
| static INLINE GLchan | solve_plane_chan (GLfloat x, GLfloat y, const GLfloat plane[4]) |
| static INLINE GLfloat | compute_lambda (const GLfloat sPlane[4], const GLfloat tPlane[4], GLfloat invQ, GLfloat width, GLfloat height) |
| static void | make_sample_table (GLint xSamples, GLint ySamples, GLfloat samples[][2]) |
| static GLfloat | compute_coveragef (const struct LineInfo *info, GLint winx, GLint winy) |
| static GLfloat | compute_coveragei (const struct LineInfo *info, GLint winx, GLint winy) |
| Compute coverage value for color index mode. | |
| static void | segment (GLcontext *ctx, struct LineInfo *line, plot_func plot, GLfloat t0, GLfloat t1) |
| void | _swrast_choose_aa_line_function (GLcontext *ctx) |
| #define DO_ATTRIBS |
| #define DO_ATTRIBS |
| #define DO_INDEX |
| #define DO_RGBA |
| #define DO_RGBA |
| #define DO_Z |
| #define DO_Z |
| #define DO_Z |
| #define NAME | ( | x | ) | aa_general_rgba_##x |
| #define NAME | ( | x | ) | aa_rgba_##x |
| #define NAME | ( | x | ) | aa_ci_##x |
| #define SOLVE_PLANE | ( | X, | |||
| Y, | |||||
| PLANE | ) | ((PLANE[3] + PLANE[0] * (X) + PLANE[1] * (Y)) / -PLANE[2]) |
| #define SUB_PIXEL 4 |
| void _swrast_choose_aa_line_function | ( | GLcontext * | ctx | ) |
| static GLfloat compute_coveragef | ( | const struct LineInfo * | info, | |
| GLint | winx, | |||
| GLint | winy | |||
| ) | [static] |
| static GLfloat compute_coveragei | ( | const struct LineInfo * | info, | |
| GLint | winx, | |||
| GLint | winy | |||
| ) | [static] |
Compute coverage value for color index mode.
XXX this may not be quite correct.
| static INLINE GLfloat compute_lambda | ( | const GLfloat | sPlane[4], | |
| const GLfloat | tPlane[4], | |||
| GLfloat | invQ, | |||
| GLfloat | width, | |||
| GLfloat | height | |||
| ) | [static] |
| static void compute_plane | ( | GLfloat | x0, | |
| GLfloat | y0, | |||
| GLfloat | x1, | |||
| GLfloat | y1, | |||
| GLfloat | z0, | |||
| GLfloat | z1, | |||
| GLfloat | plane[4] | |||
| ) | [static] |
| static INLINE void constant_plane | ( | GLfloat | value, | |
| GLfloat | plane[4] | |||
| ) | [static] |
| static void make_sample_table | ( | GLint | xSamples, | |
| GLint | ySamples, | |||
| GLfloat | samples[][2] | |||
| ) | [static] |
| static void segment | ( | GLcontext * | ctx, | |
| struct LineInfo * | line, | |||
| plot_func | plot, | |||
| GLfloat | t0, | |||
| GLfloat | t1 | |||
| ) | [static] |
| static INLINE GLfloat solve_plane | ( | GLfloat | x, | |
| GLfloat | y, | |||
| const GLfloat | plane[4] | |||
| ) | [static] |
| static INLINE GLchan solve_plane_chan | ( | GLfloat | x, | |
| GLfloat | y, | |||
| const GLfloat | plane[4] | |||
| ) | [static] |
| static INLINE GLfloat solve_plane_recip | ( | GLfloat | x, | |
| GLfloat | y, | |||
| const GLfloat | plane[4] | |||
| ) | [static] |
1.5.4