Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: "Linda J. Hodge" Newsgroups: scea.yaroze.programming.2d_graphics Subject: Dont look at this!!! Date: Sun, 20 Jul 1997 23:27:40 -0700 Organization: SCEA Net Yaroze News Lines: 139 Message-ID: <33D3015C.5AE3@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="------------5C187A911914" X-Mailer: Mozilla 3.0C-NSCP (Win16; U) This is a multi-part message in MIME format. --------------5C187A911914 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reverse psychology. Anyway Im having problems getting this program on screen.It compiles with no errors and links with siocons fine.But it displays nothing on screen.It was intended to display a 1000 randomly colored lines on screen. --------------5C187A911914 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); } } --------------5C187A911914--