mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Color Picker
This commit is contained in:
parent
39f0e269d6
commit
03109c9d6d
9 changed files with 2424 additions and 642 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue