From: "Larry Patton" Newsgroups: comp.os.msdos.djgpp Subject: Allegro : Polygon Error? Date: Thu, 28 May 1998 13:55:00 -0600 Organization: AT&T WorldNet Services Lines: 34 Message-ID: <6kkf9u$89v@bgtnsc02.worldnet.att.net> NNTP-Posting-Host: 12.67.33.87 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I'm having problems with the polygon3d function in Allegro. If I do something like this class POLY { public: V3D_f v[20]; int n; }; int main() { POLY *newpoly; // Initialize Allegro Stuff newpoly = new POLY; // initialize the poly coordinates // set projection viewport, and persp_project_f all the points poly3d ( screen, POLYTYPE_FLAT, NULL, newpoly->n, (V3D_f **) &newpoly->v ); } I will get an exception error in "polygon3d+512" If I subsitute it with a call to quad3d_f, like quad3d_f ( screen, POLYTYPE_FLAT, NULL, newpoly->v[0], newpoly->v[1] (and so on) ); it works fine. Is this a problem in the polygon3d function, or am I not referencing the vertices right? I tried several differen't ways, and all of them gave me the same error.