Color Picker

This commit is contained in:
Lopuska 2015-01-21 23:14:53 +01:00 committed by Azaezel
parent 39f0e269d6
commit 03109c9d6d
9 changed files with 2424 additions and 642 deletions

View file

@ -103,6 +103,19 @@ DefineConsoleFunction( mRound, S32, ( F32 v ),,
return mRound(v);
}
DefineConsoleFunction( mRoundColour, F32, ( F32 v, S32 n ), (0),
"Round v to the nth decimal place or the nearest whole number by default."
"@param v Value to roundn"
"@param n Number of decimal places to round to, 0 by defaultn"
"@return The rounded value as a S32."
"@ingroup Math")
{
if (n <= 0)
return mRound(v);
else
return mRound(v, n);
}
DefineConsoleFunction( mCeil, S32, ( F32 v ),,
"Round v up to the nearest integer.\n"
"@param v Number to convert to integer."