Path: chuka.playstation.co.uk!news From: "pete.black" Newsgroups: scee.yaroze.beginners Subject: Re: Sprites, OTs and dodgy wrappers... Date: Sun, 03 Oct 1999 18:06:47 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 42 Message-ID: <37F78D26.571055AE@eidosnet.co.uk> References: <7su34m$7f82@chuka.playstation.co.uk> <86n1u5jol3.fsf@foo.mel.cybec.com.au> <7t0oqe$2d02@chuka.playstation.co.uk> <7t7aie$c861@chuka.playstation.co.uk> NNTP-Posting-Host: tnt-6-240.easynet.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en,ja Rikki Prince wrote: > > 3)Similarly, I may have a problem with the PACKET area, as this is being > > dynamically allocated, as well. Is it a good idea to be dynamically > > allocating this memory, or should I lessen the flexibility of these > > functions etc? Just to check, if I've got a pointer inside my struct, and > I > > Well, I've got it working, and it seems it was the PACKET area, though I > changed both the allocation of the memory method and what I was passing to > the function, so I can't be certain, but I think I was passing the wrong > pointer (thisGame.gpuPacket instead of thisGame.gpuPacket[0]). I also > changed the memory allocation to: > > thisGame.gpuPacket[0] = (PACKET *)malloc(sizeof(PACKET)*maxPackets); > thisGame.gpuPacket[1] = (PACKET *)malloc(sizeof(PACKET)*maxPackets); > > And inside the struct: > > typedef struct > { > ... > PACKET *gpuPacket[2]; > ... > } rpGAMEINFO; > > Anyway, I've got that working, so now I can start working on other stuff, > such as sound. > > Thanks > Rikki hi rikki I'd like a laugh if you would be so kind as to send one your source i'll give you some of my valueless time if you geared for code warrioring then I'd appreciate the whole project! yours pete.black@eidosnet.co.uk