From: "Anthony Graham" Newsgroups: comp.os.msdos.djgpp Subject: fast depth buffer Date: Tue, 23 Nov 1999 19:54:23 -0000 Organization: GXSN Lines: 84 Message-ID: <81eth3$95r$2@gxsn.com> NNTP-Posting-Host: 195.147.151.62 X-Trace: 943389027 1NNUCNF1G973EC393C gxsn.com X-Complaints-To: abuse AT gxsn DOT com 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 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Anyone good with speeding up code? I need to code a Z-Buffer Manually (Can't use a library as it makes it too easy and so i'd not get the grade i need in my A-Level).... This is how it works, not the actual code, in DJGPP and ALLEGRO: int THEZBUFFER[640][480]; BITMAP *SCREEN_BUFFER; void ClearZBuffer() { int xrun; int yrun; for (yrun=0;yrun<480;yrun++) { for (xrun=0;xrun<640;xrun++) { THEZBUFFER[yrun][xrun]=1000000; } } } void drawpixel(int x, int y, int z) { if (z