Path: chuka.playstation.co.uk!news From: "Craig Graham" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Plagiarism... (and big sprites) Date: 21 Jul 1998 11:07:11 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 39 Message-ID: <01bdb497$67285600$f30b0a0a@Angela1.intelligent-group.com> References: <35B35498.6FCD@saqnet.co.uk> <1dch8jj.1l6k2u5e98xkrN@a1-88-100.a1.nl> <6p1mqa$46015@chuka.playstation.co.uk> NNTP-Posting-Host: 194.131.235.3 X-Newsreader: Microsoft Internet News 4.70.1155 Paul Bircham wrote in article <6p1mqa$46015@chuka.playstation.co.uk>... > You may have noticed I said the largest sprite that can be displayed using a > single GsSPRITE is 256*256, well my next demo will be a program that > displays a 320*256 tim file using two GsSPRITEs. > This should take me a couple of days at most. // Display arbitrary width 256 colour image with multiple sprites // - only works if you left-align the image to a tpage boundary void SortBigSprite256(GsSPRITE *s, GsOT *ot, unsigned short pri) { // preserve the original tpage and width unsigned short original_tpage=s->tpage; unsigned short original_width=s->w; register short w=(short)s->w; // Segment and display by texture page s->w=128; do{ // test for last bit of image (can remove if your image it a multiple of 128 in width) if(w<128) s->w=w; // sort image segment GsSortFastSprite(s,ot,pri); w-=128; s->tpage++; // next tpage... } while(w>0); // restore the original tpage and width s->tpage=original_tpage; s->w=original_width; } > Paul [Doodle] Craig. (I probably ripped this off, I expect...anyone want to claim it? Honestly?)