mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-18 12:52:51 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user