Path: chuka.playstation.co.uk!news From: "Andrew Partington" Newsgroups: scee.yaroze.freetalk.english Subject: Re: clipping Date: Mon, 4 Jun 2001 23:05:33 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 54 Message-ID: <9fh06f$n841@www.netyaroze-europe.com> References: <9fgqt9$gao10@www.netyaroze-europe.com> NNTP-Posting-Host: modem-206.iodine.dialup.pol.co.uk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Hi Omar I'm not sure if you can turn clipping off altogether, but to limit it to a certain position and size in vram, try this: (this example sets clipping to a 64*64 area with the top left hand corner of the clipping rectangle at x=320, y=447). extern DRAWENV GsDRAWENV; file://Drawing environment - you probably have this defined somewhere DRAWENV oldDrawEnv; oldDrawEnv=GsDRAWENV; file://Save current drawing environment for later r.x=320; r.y=447; r.w=64; r.h=64; GsDRAWENV.clip=r; GsDRAWENV.ofs[0]=320; GsDRAWENV.ofs[1]=447; PutDrawEnv(&GsDRAWENV); ofs[0] and ofs[1] seem to be offsets to add to any coordinates you put through the GPU, i.e. if you call GsSortSprite with x = 10 and y = 16, the sprite will be drawn at 330,463. If you need to restore the default clipping rectangle: GsDRAWENV=oldDrawEnv; file://reset drawing environment back to what it was PutDrawEnv(&GsDRAWENV); hope this helps! Andy Omar wrote in message news:9fgqt9$gao10@www.netyaroze-europe.com... > is there a way to stop all clipping, or at least limit it? > > -omar > >