Path: chuka.playstation.co.uk!news From: Toby Hutton Newsgroups: scee.yaroze.beginners Subject: Re: GpuPacketArea query. Date: 29 Jun 1998 11:15:22 +1000 Organization: PlayStation Net Yaroze (SCEE) Lines: 15 Sender: thutton@TECH10 Message-ID: References: <35557807.6E248247@chowfam.demon.co.uk> <3558DF85.7C89DA42@ndirect.co.uk> <3559D87E.D5C1EBD1@chowfam.demon.co.uk> <3594C013.116@manc.u-net.com> NNTP-Posting-Host: 203.103.154.235 X-Newsreader: Gnus v5.3/Emacs 19.34 James Shaughnessy writes: > PS I still use the old formula for packet space: > PACKET GpuPacketArea[2][NUM_SPRITES*sizeof(GsSPRITE)]; > "sizeof(GsSPRITE)" is a macro unless I'm very much mistaken. sizeof is actually a C operator, and GsSPRITE is a struct. You can use sizeof with any variable or data type to return its size. If you're doing 2D only with sprites then NUM_SPRITES * sizeof (GsSPRITE) would work fine. A packet can be other things though, like a poly or line which are different sizes, perhaps larger than GsSPRITE, so you need to make sure you reserve plenty of space. -- Toby.