Mail Archives: djgpp/1998/01/03/16:48:05
This is true, but putpixel is suppose to be universal. It automaticly checks
what type of bitmap you are using, (linear vs. mode-x is a major difference) and
if you are drawing off the edge of the picture. This does slow it down a bit,
but if your bitmap were less than 100x100, test2 would probably cause a gpf
(general protection fault).
--
"DeHackEd"
Remove "nospam." from my email address to reply.
It's too late to run when you hear the boom.
Ashod wrote in message <01bd0879$62651a60$bf226ccb AT ashod>...
>
>take this for example // in 8 bit 640 x 480
>
>void test (void)
>
>{
>int x;
>
>for(x=0;x<100;x++)
> {
> putpixel(abmp,x,x,x);
>}
>}
>
>void test2 (void)
>
>{
>int x;
>
>for(x=0;x<100;x++)
> {
> abmp->line[x][x]=x;
>}
>}
>
>test2() seems to run much faster than test1 ( sure its direct, but
>allegro seems to use its putpixel for other functions too, isnt
>that a tad bit slow ? )
>
>Ashod
>
>
- Raw text -