Path: chuka.playstation.co.uk!news From: Philip Gooch Newsgroups: scee.yaroze.freetalk.english Subject: Re: Had enough...NOT!!! Date: Sun, 19 Jul 1998 02:08:51 +0100 Organization: philg@nospam.easynet.co.uk Lines: 38 Message-ID: <35B14721.827A1F83@nospam.easynet.co.uk> References: <35ACA54E.576A195A@easynet.co.uk> <01bdafbc$eb493d80$f2e832a2@gbain.wav.scee.sony.co.uk> <35AD2FB8.3B6C7CF1@nospam.easynet.co.uk> <35AF54DF.121225D8@ndirect.co.uk> <35B0DBC5.17120DA7@nospam.easynet.co.uk> <6oqv6s$4601@chuka.playstation.co.uk> Reply-To: philg@nospam.easynet.co.uk NNTP-Posting-Host: philg.easynet.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353" Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.04 (Macintosh; I; PPC) Paul Bircham wrote: > > > Hi > > the question wasnt aimed at me but, I will try to answer the question > > extern is used because unlike GsSPRITE and so on this variable (GsDISPENV) > is not defined by you, your program, it is defined elsewhere, I think it is > the variable that is used in (I am not sure about this, I think > its used by the NY to hold screen info, like height etc...). > > GsDISPENV is a system variable and declaring it an extern in your program > tells the compiler not to create space for this variable but to use the > space allocated by its previous declaration, so that any alterations to it > will affect the program that uses it. > > If you dont declare it as an extern, when your program is compiled, the > variable will only be used by your program and will not be used by libps.h, > so you wont really be altering the display environment. > > I know this isn't that clear Im tired I have been working all day (8:00am > til 8:00pm, not wise) so if anyone else can explain it better im sure they > will > > Paul [Doodle] Ah I think I get it. Thanks Are you sure you need to be doing this Yaroze course - you seem to have it all sussed already! Phil