[AD] scanline extension

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


ok I gave it more thought... lets use this...

typedef struct {
   BITMAP *dest,    /* destination bitmap */
          *txt;     /* texture map if any */
   int    x1, x2,   /* x start and end coords */
          y,        /* line to draw on */
          u1, u2,   /* texture x start/end */
          v1, v2,   /* texture y start/end */
          c1, c2;   /* color start/end */
   float  z1,z2;    /* scanline start/end Z */
} scanlineinfo;

void draw_scanline(scanlineinfo *sli);

Then you tell allegro 

add_scanline_drawer(&draw_scanline, MYTYPE)

Where MYTYPE is an integer.

Tom

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/