Path: chuka.playstation.co.uk!news From: Alex Herbert Newsgroups: scee.yaroze.freetalk.english Subject: Re: Had enough...NOT!!! Date: Tue, 21 Jul 1998 14:11:00 +0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 32 Message-ID: <35B49364.B6065559@ndirect.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: aherbert@ndirect.co.uk NNTP-Posting-Host: dialin0-35.ndirect.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.04 [en] (Win95; I) 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 > Spot on Paul. I couldn't have explained it better myself. :) Herbs