From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro 2.2, Floats & ints and stuff Date: 7 Mar 1997 07:38:33 GMT Organization: The National Capital FreeNet Lines: 32 Message-ID: <5foglp$5jv@freenet-news.carleton.ca> References: <01bc2829$3f3158a0$af2749c2 AT default> Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) NNTP-Posting-Host: freenet3.carleton.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp "Thomas Harte" (T DOT Harte AT btinternet DOT com) writes: > Right now I have, in my opinion a rather impressive landscape program > (Shawn - it is many generations ahead of what I sent you when it was all > beta and stuff), however, it uses entirely the Allegro 'V3d_f's and so > 'apply_amtrix_f's. I think, as these are the floating point equivalents of > 'V3D' and 'apply_matrix', chances are the accuracy they give is superfluous > to my needs (video game programming), so I want to switch to the fixed > point 'V3D's and 'apply_matrix's and so on. However, when I recompile my > program with all the '_f's removed, no display occurs. Can anyone help? > Sorry to have wasted your time is it's something needlessly obvious . . . . If you previously used numeric constants that were assigned to floating point variables that now are fixed point, they must now be changed from float_var=A_NUMBER to fixed_var=ftofix(A_NUMBER) Or, change the #defines of floats to #define A_NUMBER (ftofix(0.75)) or whatever. And, angles will be in a format of 256 degrees per circle, not in radians using fixed point. -- .*. Where feelings are concerned, answers are rarely simple [GeneDeWeese] -() < When I go to the theater, I always go straight to the "bag and mix" `*' bulk candy section...because variety is the spice of life... [me] Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh