minor tweaks

This commit is contained in:
Ray 2022-08-02 17:25:24 +02:00
parent 6ecb29f33f
commit 2a2c9e4da8
5 changed files with 10 additions and 10 deletions

View file

@ -96,7 +96,7 @@
#define PI 3.14159265358979323846f //Required as PI is not always defined in math.h #define PI 3.14159265358979323846f //Required as PI is not always defined in math.h
#endif #endif
#ifdef __cplusplus #if defined(__cplusplus)
extern "C" { // Prevents name mangling of functions extern "C" { // Prevents name mangling of functions
#endif #endif
@ -256,7 +256,7 @@ EASEDEF float EaseElasticInOut(float t, float b, float c, float d) // Ease: Elas
return (postFix*sinf((t*d-s)*(2.0f*PI)/p)*0.5f + c + b); return (postFix*sinf((t*d-s)*(2.0f*PI)/p)*0.5f + c + b);
} }
#ifdef __cplusplus #if defined(__cplusplus)
} }
#endif #endif

View file

@ -201,9 +201,9 @@ RMAPI float Remap(float value, float inputStart, float inputEnd, float outputSta
// Wrap input value from min to max // Wrap input value from min to max
RMAPI float Wrap(float value, float min, float max) RMAPI float Wrap(float value, float min, float max)
{ {
float result = value - (max - min)*floorf((value - min)/(max - min)); float result = value - (max - min)*floorf((value - min)/(max - min));
return result; return result;
} }
// Check whether two given floats are almost equal // Check whether two given floats are almost equal

View file

@ -103,7 +103,7 @@
// Module Functions Declaration // Module Functions Declaration
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
#ifdef __cplusplus #if defined(__cplusplus)
extern "C" { // Prevents name mangling of functions extern "C" { // Prevents name mangling of functions
#endif #endif
@ -119,7 +119,7 @@ void SetCameraMoveControls(int keyFront, int keyBack,
int keyUp, int keyDown); // Set camera move controls (1st person and 3rd person cameras) int keyUp, int keyDown); // Set camera move controls (1st person and 3rd person cameras)
#endif #endif
#ifdef __cplusplus #if defined(__cplusplus)
} }
#endif #endif

View file

@ -118,7 +118,7 @@ typedef struct {
// Module Functions Declaration // Module Functions Declaration
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
#ifdef __cplusplus #if defined(__cplusplus)
extern "C" { // Prevents name mangling of functions extern "C" { // Prevents name mangling of functions
#endif #endif
@ -137,7 +137,7 @@ Vector2 GetGesturePinchVector(void); // Get gesture pinch del
float GetGesturePinchAngle(void); // Get gesture pinch angle float GetGesturePinchAngle(void); // Get gesture pinch angle
#endif #endif
#ifdef __cplusplus #if defined(__cplusplus)
} }
#endif #endif

View file

@ -65,7 +65,7 @@
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
// Module Functions Declaration // Module Functions Declaration
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
#ifdef __cplusplus #if defined(__cplusplus)
extern "C" { // Prevents name mangling of functions extern "C" { // Prevents name mangling of functions
#endif #endif
@ -74,7 +74,7 @@ void InitAssetManager(AAssetManager *manager, const char *dataPath); // Initia
FILE *android_fopen(const char *fileName, const char *mode); // Replacement for fopen() -> Read-only! FILE *android_fopen(const char *fileName, const char *mode); // Replacement for fopen() -> Read-only!
#endif #endif
#ifdef __cplusplus #if defined(__cplusplus)
} }
#endif #endif