comparison mm7_data.h @ 2125:ba3de1337989

house animations working round renamed to round_to_int
author zipi
date Thu, 26 Dec 2013 22:46:49 +0000
parents 68fbaf45ef66
children 49de109bbab5
comparison
equal deleted inserted replaced
2124:7f403ebf619f 2125:ba3de1337989
1350 int GetAlertStatus(); 1350 int GetAlertStatus();
1351 int integer_sqrt(int val); 1351 int integer_sqrt(int val);
1352 int __fastcall MakeColorMaskFromBitDepth(int a1); 1352 int __fastcall MakeColorMaskFromBitDepth(int a1);
1353 void __fastcall fill_pixels_fast(unsigned int a1, unsigned __int16 *pPixels, unsigned int uNumPixels); 1353 void __fastcall fill_pixels_fast(unsigned int a1, unsigned __int16 *pPixels, unsigned int uNumPixels);
1354 int __fastcall GetDiceResult(unsigned int uNumDice, unsigned int uDiceSides); // idb 1354 int __fastcall GetDiceResult(unsigned int uNumDice, unsigned int uDiceSides); // idb
1355 inline int round(float x) { return (int)floor(x + 0.5f); } 1355 inline int round_to_int(float x) { return (int)floor(x + 0.5f); }
1356 inline void __fastcall memset32(void *ptr, unsigned __int32 value, int count) 1356 inline void __fastcall memset32(void *ptr, unsigned __int32 value, int count)
1357 { 1357 {
1358 unsigned __int32* p = (unsigned __int32 *)ptr; 1358 unsigned __int32* p = (unsigned __int32 *)ptr;
1359 for ( int i=0; i < count; i++ ) 1359 for ( int i=0; i < count; i++ )
1360 *p++ = value; 1360 *p++ = value;