Message-ID: <39C9617E.A5EDE2E8@inwind.it> Date: Thu, 21 Sep 2000 03:16:46 +0200 From: Ivan Ferrara X-Mailer: Mozilla 4.5 [it] (Win98; I) X-Accept-Language: it MIME-Version: 1.0 To: Delorie Newsgroup Subject: problem with allegro Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com I finally solved my DPMI memory error (thanks to Martin!!!), but a new problem occurred. I'm trying to draw 3D polygons using allegro functions. Here's a piece of code; It should draw a shaded triangle but my screen looks white! Why? Thank you in advance for your support. Ivan ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #include #include #include BITMAP *texture; V3D v1 = {30 , 20 , 10 , 0 , 0 , 9 }; V3D v2 = {30 , 40 , 10 , 0 , 0 , 9 }; V3D v3 = {30 , 30 , 80 , 0 , 0 , 9 }; int main() { allegro_init(); install_keyboard(); set_gfx_mode(GFX_AUTODETECT,800,600,0,0); set_palette(desktop_palette); triangle3d(screen,POLYTYPE_FLAT,texture,&v1,&v2,&v3); readkey(); }