Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: "Linda J. Hodge" Newsgroups: scea.yaroze.programming.2d_graphics Subject: Source Date: Mon, 21 Jul 1997 21:50:47 -0700 Organization: SCEA Net Yaroze News Lines: 148 Message-ID: <33D43C27.40C1@earthlink.net> Reply-To: hodgke@earthlink.net NNTP-Posting-Host: max3-so-ca-46.earthlink.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------B0B182B7833" X-Mailer: Mozilla 3.0C-NSCP (Win16; U) This is a multi-part message in MIME format. --------------B0B182B7833 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ok mario I will post the original stuff with the changes you said to add: --------------B0B182B7833 Content-Type: text/plain; charset=us-ascii; name="LINES.C" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="LINES.C" /******************************************************** * * * * * LINES!!!! * * * * By Austin Kottke * *******************************************************/ // include libraries #include #include "pad.h" #define MAXLINES 1000 // constants // GPU packet space #define PACKETMAX (10000) #define PACKETMAX2 (PACKETMAX*24) // size of ordering table: 2 << OT_LENGTH // i.e. 16384 levels of z resolution #define OT_LENGTH 1 // globals // Ordering Table handlers GsOT WorldOT[2]; // actual Ordering Tables themselves GsOT_TAG OTTags[2][1<attribute = 0; //This is the core of the program //which is pretty basic. sp->x0 = rand()%640; sp->y0 = rand()%480; sp->x1 = rand()%640; sp->y1 = rand()%480; sp->r0 = sp->g0 = sp->b0 = rand()%256; sp->r1 = sp->g1 = sp->b1 = rand()%256; GsSortGLine(sp,&WorldOT[TheBuff],0); } // wait for end of drawing to the ot DrawSync(0); // wait for V_BLANK interrupt VSync(0); // swap double buffers GsSwapDispBuff(); // register clear-command: clear to some weird combo color GsSortClear(16,36,43, &WorldOT[TheBuff]); // register request to draw ordering table GsDrawOt(&WorldOT[TheBuff]); } // clean up return 0; } --------------B0B182B7833--