[Bf-committers] Stucci Patch
Stephen Swaney
sswaney at centurytel.net
Fri Feb 25 04:30:32 CET 2005
On Thu, Feb 24, 2005 at 08:36:40PM -0500, Chris Burt wrote:
>
> One other detail I wanted to ask about.. Do you think it would be wise
> to create a #define for the return values of textures? Right now you
> have them numerically hard coded as 0 for int, 1 for col, 2 for nor, and
> 3 for everything. Would it be wise to create in texture.h:
>
> #define RV_INT 0
> #define RV_COL 1
> #define RV_NOR 2
> #define RV_ALL 3
Magic Numbers ( numeric constants embedded in code ) are Evil! People
using them should be tagged with dry erase markers and hunted for
sport.
All hail the #define!
--
Stephen Swaney
sswaney at centurytel.net
More information about the Bf-committers
mailing list