Mail Archives: djgpp/1997/03/07/06:39:44
"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
- Raw text -