]> 4ch.mooo.com Git - 16.git/commitdiff
==YAY! I GOT IT WORKING THE PLANAR BUFFER RENDERING==
authorsparky4 <sparky4@cock.li>
Fri, 23 Oct 2015 21:59:04 +0000 (16:59 -0500)
committersparky4 <sparky4@cock.li>
Fri, 23 Oct 2015 21:59:04 +0000 (16:59 -0500)
16.exe
exmmtest.exe
planrpcx.exe
scroll.exe
src/planrpcx.c
test.exe

diff --git a/16.exe b/16.exe
index 3a0b510b91659ac94f0bb7ba27523f163a87aec3..d10b6e1f541ed3bc4a702a991287b91ece8e6922 100755 (executable)
Binary files a/16.exe and b/16.exe differ
index f9ae44685a8be996c43cf1eebfc06b158ce7b70f..c2412e32207a2e379def9849cd4e631addb7ef9f 100755 (executable)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index 6cdda786aaae0ca605bf80112d10664808c3572a..5e11457270da9b6a47bc613721161f3beb7f6cee 100755 (executable)
Binary files a/planrpcx.exe and b/planrpcx.exe differ
index 0720949f406bb8867c9b05554d21f31405d4b503..ffa8f060b149042434d4a7aaf9bfe5cf55d3bccb 100755 (executable)
Binary files a/scroll.exe and b/scroll.exe differ
index db3c96121bfa7ea1c41fa177b2431cc0d46b5f17..57089ddfa0d165d1fd39e695af0d8ba929dca42f 100755 (executable)
@@ -34,13 +34,12 @@ void main(int argc, char *argv[])
        bitmap_t bmp;\r
        planar_buf_t *p;\r
        int i;\r
-       //word start;\r
+       word start;\r
        int plane;\r
-       //float t1, t2;\r
+       float t1, t2;\r
        int x,y;\r
        word px,py;\r
        sword baka;\r
-       //char *pee;\r
        char *bakapeee;\r
 \r
        bakapeee = malloc(64);\r
@@ -62,7 +61,7 @@ baka = 1;
        modexPalUpdate1(bmp.palette);\r
 \r
        /* clear and draw one sprite and one bitmap */\r
-       modexClearRegion(&gvar.video.page[0], 0, 0, gvar.video.page[0].sw, gvar.video.page[0].sh, 1);\r
+       modexClearRegion(&gvar.video.page[0], 0, 0, gvar.video.page[0].sw, gvar.video.page[0].sh, 0);\r
 \r
        /* update display~*/\r
        gvar.video.page[0].dx+=32;\r
@@ -70,9 +69,8 @@ baka = 1;
        modexShowPage(&gvar.video.page[0]);\r
 \r
        /* non sprite comparison */\r
-//     start = *clockw;\r
+       start = *clockw;\r
 //             oldDrawBmp(VGA, 20, 20, &bmp, 0);\r
-//     start = *clockw;\r
 //0000         modexDrawBmp(&gvar.video.page[0], 20, 20, &bmp);\r
 //             modexDrawBmp(&gvar.video.page[0], 160, 120, &bmp);\r
 //     t1 = (*clockw-start) /18.2;\r
@@ -82,18 +80,13 @@ baka = 1;
 //     t2 = (*clockw-start)/18.2;\r
 //     start = *clockw;\r
 //             oldDrawBmp(VGA, 20, 20, &bmp, 1);\r
-//     start = *clockw;\r
 //0000         modexDrawSprite(&gvar.video.page[0], 20, 20, &bmp);\r
 //             modexDrawSprite(&gvar.video.page[0], 160, 120, &bmp);\r
-//i=0;\r
-//plane=0;\r
-//     _fmemset(VGA, (int) p->plane[plane++][i++], p->width*p->height);\r
-       //modexDrawBmp(&gvar.video.page[0], 0, 0, &bmp);\r
        DrawPBuf(&gvar.video.page[0], 0, 0, p, 0);\r
+       t1 = (*clockw-start) /18.2;\r
        while(!kbhit())\r
        {\r
-               //if(argv[2]) pee = strcpy(VGA, &(p->plane[plane][24]));\r
-       }//gvar.video.page[0].data\r
+       }\r
        VGAmodeX(0, &gvar);\r
        /*printf("\nmain=%Fp\n\n", &i);\r
        printf("bmp.data=%Fp\n", bmp.data);\r
@@ -119,8 +112,7 @@ baka = 1;
        fprintf(stderr,"ppw=%d\n", p->pwidth);\r
        fprintf(stderr,"%d\n", sizeof(bmp));\r
        planar_buf_free(p);\r
-//     fprintf(stderr,"%s\n", *pee);\r
-//     fprintf(stderr, "CPU to VGA: %f\n", t1);\r
+       fprintf(stderr, "CPU to VGA: %f\n", t1);\r
 //     fprintf(stderr, "VGA to VGA: %f\n", t2);\r
        fprintf(stderr, "gvar.video.page[0].width: %u\n", gvar.video.page[0].width);\r
        fprintf(stderr, "gvar.video.page[0].height: %u\n", gvar.video.page[0].height);\r
index 47824d81355aed4babdb8a821951a7546db2ac38..3f31019c63abf60c416b84bc00318dc236b5dfa4 100755 (executable)
Binary files a/test.exe and b/test.exe differ