Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

would this work better than bresenham?

Name: Anonymous 2013-08-08 12:39

function drawline(x0,y0,x1,y1){
dx = x1-x0
dy = y1-y0
len = sqrt(dx*dx+dy*dy)
dx /= len
dy /= len
    for (k=0;k<=len;k++){
        paint(floor(x0),floor(y0))
        x0 += dx
        y0 += dy
    }
}

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-08-09 6:26

>>3
lea %esi, [%edi+%esi]
lea %eax, [%esi+32767]
add %ebx, 1
not using push for parameters
not passing parameters in registers
not using ECX at all

What the fuck is wrong with you, GCC.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List