This commit is contained in:
aozhiwei 2020-07-27 16:34:08 +08:00
parent d6786bcdb1
commit a25550d418
2 changed files with 7 additions and 0 deletions

View File

@ -245,6 +245,11 @@ namespace a8
return (int)(int64_val >> 32);
}
int MkRgb(int red, int green, int blue)
{
return red | (green << 8) | (blue << 16) ;
}
float RandAngle()
{
float angle = 0.00001f + ((float)rand() / RAND_MAX) * 2.0f;

View File

@ -87,6 +87,8 @@ namespace a8
int Low32(long long int64_val);
int High32(long long int64_val);
int MkRgb(int red, int green, int blue);
float RandAngle();
void ClearSendQueue(a8::SendQueueNode* node);