432{
436 GLfloat radius, rmin, rmax, rmin2, rmax2, cscale;
437
439 rmin = radius - 0.7071F;
440 rmax = radius + 0.7071F;
441 rmin2 = rmin*rmin;
442 rmax2 = rmax*rmax;
443 cscale = 256.0F / (rmax2-rmin2);
444
445 if (
ctx->Texture.Enabled) {
447 if (
VB->ClipMask[
i]==0) {
448 GLint xmin, ymin, xmax, ymax;
452
453 xmin = (
GLint) (
VB->Win[
i][0] - radius);
454 xmax = (
GLint) (
VB->Win[
i][0] + radius);
455 ymin = (
GLint) (
VB->Win[
i][1] - radius);
456 ymax = (
GLint) (
VB->Win[
i][1] + radius);
458
462 s =
VB->TexCoord[
i][0] /
VB->TexCoord[
i][3];
463 t =
VB->TexCoord[
i][1] /
VB->TexCoord[
i][3];
464 u =
VB->TexCoord[
i][2] /
VB->TexCoord[
i][3];
465
466 for (
y=ymin;
y<=ymax;
y++) {
467 for (
x=xmin;
x<=xmax;
x++) {
471 if (dist2<rmax2) {
473 if (dist2>=rmin2) {
474 GLint coverage = (
GLint) (256.0F-(dist2-rmin2)*cscale);
475
477 }
478 PB_WRITE_TEX_PIXEL(
PB,
x,
y,
z,
red,
green,
blue,
alpha,
s,
t,
u );
479 }
480 }
481 }
483 }
484 }
485 }
486 else {
487
489 if (
VB->ClipMask[
i]==0) {
490 GLint xmin, ymin, xmax, ymax;
493
494 xmin = (
GLint) (
VB->Win[
i][0] - radius);
495 xmax = (
GLint) (
VB->Win[
i][0] + radius);
496 ymin = (
GLint) (
VB->Win[
i][1] - radius);
497 ymax = (
GLint) (
VB->Win[
i][1] + radius);
499
503
504 for (
y=ymin;
y<=ymax;
y++) {
505 for (
x=xmin;
x<=xmax;
x++) {
509 if (dist2<rmax2) {
511 if (dist2>=rmin2) {
512 GLint coverage = (
GLint) (256.0F-(dist2-rmin2)*cscale);
513
515 }
517 }
518 }
519 }
521 }
522 }
523 }
524}
GLint GLint GLint GLint GLint x
GLclampf GLclampf GLclampf alpha
GLint GLint GLint GLint GLint GLint y
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
#define PB_WRITE_TEX_PIXEL(PB, X, Y, Z, R, G, B, A, S, T, U)
#define PB_CHECK_FLUSH(CTX, PB)
#define PB_WRITE_RGBA_PIXEL(PB, X, Y, Z, R, G, B, A)
#define CLAMP(f, min, max)
struct vertex_buffer * VB