Path: chuka.playstation.co.uk!argonet.co.uk!argbc08 From: R Fred Williams Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: ResetGraph(?) Date: Tue, 17 Nov 1998 21:30:49 GMT Organization: ArgoNet, but does not reflect its views Lines: 71 Distribution: world Message-ID: 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> <72roir$dvm6@chuka.playstation.co.uk> <365192C6.F844E3AB@writeme.com> Reply-To: R Fred Williams NNTP-Posting-Host: usero207.uk.uudial.com X-Newsreader: NewsAgent 0.84 for RISC OS X-NNTP-Poster: NewsHound v1.37ß2 In article <365192C6.F844E3AB@writeme.com>, James Rutherford wrote: > Are you guys sure about this...? Well, since James Russell has given out the specs, I guess I can send this without being in breach of NDA... Like I *can't* do with the graphic packet specs - Gah!... Grief, it's only a few structure definitions, & a couple of macros for sticking the things into OT's, guys... No-one's asking for access to the GTE! (erm... yet?) Where was I? Ohyeah... Extract from the "pro" lib docs, to back up what James posted:- ResetGraph(n) Callbacks DISPENV DRAWENV Command Queue 0 Initted Initted Initted Initted 1 (kept) (kept) (kept) Initted 3 Initted (kept) (kept) Initted > I've had programs crash with RG(0) that resolve with RG(1), > Likewise, I'm _absolutely_ sure I had one with RG(3) that resolved with > RG(5)... I'd assume that the former relied on the display being already set up to some degree & thus failed if it wasn't. And that the latter, ermmmm, had something to do with the serial connection screwing up for whatever reason...? Oh, alright, I dunno... Oh, and as to the "so why *does* everyone use ResetGraph(3) at the end, when it ain't documented" question, it's a case of "because the original (balls) example did". Which in turn is because the authors of *that* were used to the pro libs, and that's what people who are used to the pro libs do, because they need to unhook from the graphic system without destroying the loading screen, before chaining in the next process. ttfn Fred > So far, I've stuck with RG(5) - Its not let me down so far. > James. > George Bain wrote: > > > 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