match some Z2Calc functions (#72)

* Z2Calc OK

* inline definitions in random.h and format

* set -enum int compiler flag and fix enum hacks

* note for get_ufloat_1 inline

* PR suggestions and UB note

Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
lepelog
2021-01-07 02:39:56 +01:00
committed by GitHub
parent a787699d14
commit 11e2bab926
19 changed files with 93 additions and 247 deletions
+5 -3
View File
@@ -1,8 +1,10 @@
#include "JSystem/JMath/random.h"
#include "global.h"
namespace Z2Calc {
struct CurveSign {
// temp
enum CurveSign {
CURVE_SIGN_0 = 0,
CURVE_SIGN_1 = 1,
};
struct FNoise1f {
@@ -20,4 +22,4 @@ float linearTransform(float, float, float, float, float, bool);
float getParamByExp(float, float, float, float, float, float, Z2Calc::CurveSign);
float getRandom(float, float, float);
float getRandom_0_1(void);
} // namespace Z2Calc
} // namespace Z2Calc