Message-ID: <35215BBC.BB679B45@arrakis.es> Date: Tue, 31 Mar 1998 23:10:20 +0200 From: DrDoom MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: vvvvvvvvvvv Triangle3d help. vvvvvvvvvvvv Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 195.5.70.10 Lines: 27 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Could someone tell me what is wrong with this? I'm only trying to draw a 3d-triangle on the screen. The source have no errors but... i can't see anything. I'm using allegro 3.0 Thank you. #include #include "allegro.h" void main(){ V3D v1={1,1,1,0,0,9},v2={1,100,6,1,1,100},v3={100,1,50,1,1,90}; int a[6]={1,1,56,44,67,98}; BITMAP *b=create_bitmap(64,16); allegro_init(); install_keyboard(); install_mouse(); install_timer(); set_gfx_mode(GFX_AUTODETECT, 800, 600, 0, 0); set_pallete(desktop_pallete); clear_to_color(screen,3); show_mouse(screen); putpixel(b,1,1,91); triangle3d(screen,POLYTYPE_FLAT,b,&v1,&v2,&v3); do{;}while (!key[KEY_ESC]); destroy_bitmap(b); }