Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: "Linda J. Hodge" Newsgroups: scee.yaroze.programming.2d_graphics Subject: Help with source!!! Date: Sun, 20 Jul 1997 23:23:18 -0700 Organization: SCEA Net Yaroze News Lines: 138 Message-ID: <33D30056.3FD0@earthlink.net> Reply-To: hodgke@earthlink.net NNTP-Posting-Host: max2-so-ca-15.earthlink.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------60BE16C96CF2" X-Mailer: Mozilla 3.0C-NSCP (Win16; U) This is a multi-part message in MIME format. --------------60BE16C96CF2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Why does this program connect with siocons with no errors and displays nothing on screen!!!!It is intended to display a 1000 randomly colored lines on screen. --------------60BE16C96CF2 Content-Type: text/plain; charset=us-ascii; name="LINE.C" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="LINE.C" /******************************************************** * * * * * LINES!!!! * * * * By Austin Kottke * *******************************************************/ // include libraries #include #include "pad.h" #define MAXLINES 1000 // size of ordering table: 2 << OT_LENGTH // i.e. 16384 levels of z resolution #define OT_LENGTH 1 // 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()%320; sp->y0 = rand()%240; sp->x1 = rand()%320; sp->y1 = rand()%240; sp->r0=rand()%256; sp->g0=rand()%256; sp->b0=rand()%256; sp->r1=rand()%256; sp->g1=rand()%256; sp->b1=rand()%256; GsSortGLine(sp,&WorldOT[TheBuff],0); } // wait for end of drawing to the ot DrawSync(0); // wait for V_BLANK interrupt i=VSync(0); // swap double buffers GsSwapDispBuff(); // register clear-command: clear to some weird combo color GsSortClear(60,120,120, &WorldOT[TheBuff]); // register request to draw ordering table GsDrawOt(&WorldOT[TheBuff]); // clean up ResetGraph(3); return(0); } } --------------60BE16C96CF2--