mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Add back Math_Sin/Cos for certain plugins
This commit is contained in:
parent
98f7d2126d
commit
74fa5daf7c
3 changed files with 7 additions and 2 deletions
2
.github/workflows/build_windows.yml
vendored
2
.github/workflows/build_windows.yml
vendored
|
@ -99,7 +99,7 @@ jobs:
|
|||
cp misc/windows/CCicon_64.res src/CCicon_64.res
|
||||
cd src
|
||||
x86_64-w64-mingw32-gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.WIN64_FLAGS }} -o cc-w64-d3d9.exe $LATEST_FLAG -lwinmm -limagehlp
|
||||
x86_64-w64-mingw32-gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.WIN64_FLAGS }} -o cc-w64-ogl.exe $LATEST_FLAG -DCC_GFX_BACKEND=CC_GFX_BACKEND_GL -lwinmm -limagehlp -lopengl32
|
||||
x86_64-w64-mingw32-gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.WIN64_FLAGS }} -o cc-w64-ogl.exe $LATEST_FLAG -DCC_GFX_BACKEND=CC_GFX_BACKEND_GL1 -lwinmm -limagehlp -lopengl32
|
||||
x86_64-w64-mingw32-gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.WIN64_FLAGS }} -o cc-w64-d3d11.exe $LATEST_FLAG -DCC_GFX_BACKEND=CC_GFX_BACKEND_D3D11 -lwinmm -limagehlp
|
||||
|
||||
|
||||
|
|
|
@ -462,4 +462,7 @@ float Math_Atan2f(float x, float y) {
|
|||
if (x < 0) r = 3.14159274f - r;
|
||||
if (y < 0) r = -r;
|
||||
return r;
|
||||
}
|
||||
}
|
||||
|
||||
double Math_Sin(double x) { return Math_SinF(x); }
|
||||
double Math_Cos(double x) { return Math_CosF(x); }
|
|
@ -27,6 +27,8 @@ float Math_SqrtF(float x);
|
|||
float Math_Mod1(float x);
|
||||
int Math_AbsI(int x);
|
||||
|
||||
CC_API double Math_Sin(double x);
|
||||
CC_API double Math_Cos(double x);
|
||||
CC_API float Math_SinF(float x);
|
||||
CC_API float Math_CosF(float x);
|
||||
/* Computes atan2(y, x), intended primarily for angle calculation*/
|
||||
|
|
Loading…
Reference in a new issue