Refactored build scripts and removed unused dependencies

- Added the following Gradle tasks:
  - buildLocal (alias for build)
  - buildCrossPlatform (builds with all natives)
  - packageDebian
  - packageWindows
- Gradle no longer downloads or packages natives for wrong platforms
(unless buildCrossPlatform or require*Dependencies is run)
- Gradle should no longer complain about deprecated features
- buildPackages.sh is now a lot more robust
- Removed the following dependencies:
  - Apache Commons Math
  - Everything in LWJGL except OpenGL/AL, GLFW, STB and core
This commit is contained in:
2021-01-08 00:33:53 +03:00
parent eb82c96390
commit e389d2ad67
3 changed files with 358 additions and 105 deletions

View File

@ -1,13 +1,11 @@
package ru.windcorp.progressia.common.util;
import org.apache.commons.math3.util.FastMath;
public class FloatMathUtils {
public static final float PI_F = (float) Math.PI;
public static float floor(float x) {
return (float) FastMath.floor(x);
return (float) Math.floor(x);
}
public static float normalizeAngle(float a) {