From: "Dan Bogdanov" Subject: Could anyone explain ? Newsgroups: comp.os.msdos.djgpp Message-ID: <01be2e00$2bf97900$882e28c1@dan> X-Newsreader: Microsoft Internet News 4.70.1155 Date: 23 Dec 1998 23:06:23 GMT Lines: 26 NNTP-Posting-Host: 193.40.46.136 X-Trace: 914454383 11416 (none) 193.40.46.136 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm trying to draw 3d-shapes with Allegro, but I haven't had any progress yet. The examples no. 22 and 26 are pretty complex and I don't understand them. Please could anyone give me lines, that would draw a triangle with the triangle3d function ? I tried things like this: int main() { BITMAP *bmp; V3D vtx1={10,10,250,0,0,0xD0}; V3D vtx2={100,10,250,0,0,0xD0}; V3D vtx3={10,100,250,0,0,0xD0}; allegro_init(); set_gfx_mode(GFX_AUTODETECT,800,600,800,600); set_projection_viewport(0, 0, SCREEN_W, SCREEN_H); triangle3d(screen,POLYTYPE_FLAT,NULL,&vtx1,&vtx2,&vtx3); getch(); getch(); return 1; } but I couldn't notice any output on the screen. What should I do ?