Path: chuka.playstation.co.uk!news From: george_bain@playstation.sony.com (George Bain) Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: ResetGraph(?) Date: 17 Nov 1998 12:01:31 GMT Organization: Sony Computer Entertainment Europe Lines: 50 Message-ID: <72roir$dvm6@chuka.playstation.co.uk> References: <72fcu3$5bg3@chuka.playstation.co.uk> <364B59EB.347DD52B@scee.sony.co.uk> <72ft10$5bg6@chuka.playstation.co.uk> <364BE9B9.53A631D7@scee.sony.co.uk> <72qf11$dvm4@chuka.playstation.co.uk> NNTP-Posting-Host: mailgate.scee.sony.co.uk Mime-Version: 1.0 Content-Type: Text/Plain; charset=US-ASCII X-Newsreader: WinVN 0.99.8 (x86 32bit) Hi there, I'll clear up the confusion. ResetGraph(0) - use this when your doing your startup code - completely resets the GPU, etc... ResetGraph(1) - use this when your doing some interlace drawing - cancels current drawing and flushes the command buffer ReserGraph(3) - you will NEVER need to use this since it is used when doing overlays (child programs use this) - same as ResetGraph(0) but preserves the current display and drawing environments So it really doesn't matter what you use to close your program...since when you load it up again you are going to do a ResetGraph(0) anyway!! Regards, George@SCEE >I'm still confused by this! It's just that I'm curious to find out why on >all the source code out there people call ResetGraph before exiting. And it >isn't just ResetGraph(3) it's 0, 1 or 3! > >Basically my two main questions are: > >1. Why call ResetGraph at all just BEFORE the program exits? What effect >does it have on a yaroze program? My guess is that it might be useful for a >demo on a cover disk, so that when the user exits the demo and plays the >next one the graphics environment will be reset/initialised for the next >demo. >But it can't be used before exiting on a commercial game since there is no >exit option - the user just turns off the playstation when they've finished? > >2. What's the parameter to use in these situations, 0, 1, 3, 5? > >Thanks for any help. > >Rad. >rad@cyberdude.com >http://www.netyaroze-europe.com/~radpsx > >