diff options
author | Brian Paul <[email protected]> | 2004-03-09 16:58:26 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-03-09 16:58:26 +0000 |
commit | 1e4731f6443a6efdfc4e425977490ddd5387caa3 (patch) | |
tree | 9b830c21e9fddf93a63b983a6570cab643e3e12e /src/mesa/swrast/s_aaline.c | |
parent | 7bcada8c278a17e6170e35f1aaf74dd88294ddc5 (diff) |
Fix color index mode rendering.
Changed SWvertex's index field to GLfloat and fix a few other bits.
Diffstat (limited to 'src/mesa/swrast/s_aaline.c')
-rw-r--r-- | src/mesa/swrast/s_aaline.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_aaline.c b/src/mesa/swrast/s_aaline.c index bbdc92b92a5..39c51a50f71 100644 --- a/src/mesa/swrast/s_aaline.c +++ b/src/mesa/swrast/s_aaline.c @@ -1,8 +1,8 @@ /* * Mesa 3-D graphics library - * Version: 5.0.3 + * Version: 6.1 * - * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -331,6 +331,19 @@ compute_coveragef(const struct LineInfo *info, } +/** + * Compute coverage value for color index mode. + * XXX this may not be quite correct. + * \return coverage in [0,15]. + */ +static GLfloat +compute_coveragei(const struct LineInfo *info, + GLint winx, GLint winy) +{ + return compute_coveragef(info, winx, winy) * 15.0F; +} + + typedef void (*plot_func)(GLcontext *ctx, struct LineInfo *line, int ix, int iy); |