tuxanci2-engine
Game engine for tuxanci2
Log | Files | Refs | README | LICENSE

fixed.h (179B)


      1 #ifndef TA_FIXED_H
      2 #define TA_FIXED_H
      3 
      4 typedef uint32_t ta_fixed;
      5 
      6 #define TA_FIXED_ONE 65536u
      7 #define TA_FIXED(value) ((ta_fixed)((value) * 65536.0 + 0.5))
      8 
      9 #endif // TA_FIXED_H