Browse Source

minor tweaks

pull/2622/head
Ray 2 years ago
parent
commit
2a2c9e4da8
5 changed files with 10 additions and 10 deletions
  1. +2
    -2
      src/easings.h
  2. +2
    -2
      src/raymath.h
  3. +2
    -2
      src/rcamera.h
  4. +2
    -2
      src/rgestures.h
  5. +2
    -2
      src/utils.h

+ 2
- 2
src/easings.h View File

@ -96,7 +96,7 @@
#define PI 3.14159265358979323846f //Required as PI is not always defined in math.h
#endif
#ifdef __cplusplus
#if defined(__cplusplus)
extern "C" { // Prevents name mangling of functions
#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);
}
#ifdef __cplusplus
#if defined(__cplusplus)
}
#endif

+ 2
- 2
src/raymath.h View File

@ -201,9 +201,9 @@ RMAPI float Remap(float value, float inputStart, float inputEnd, float outputSta
// Wrap input value from min to 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

+ 2
- 2
src/rcamera.h View File

@ -103,7 +103,7 @@
// Module Functions Declaration
//----------------------------------------------------------------------------------
#ifdef __cplusplus
#if defined(__cplusplus)
extern "C" { // Prevents name mangling of functions
#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)
#endif
#ifdef __cplusplus
#if defined(__cplusplus)
}
#endif

+ 2
- 2
src/rgestures.h View File

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

+ 2
- 2
src/utils.h View File

@ -65,7 +65,7 @@
//----------------------------------------------------------------------------------
// Module Functions Declaration
//----------------------------------------------------------------------------------
#ifdef __cplusplus
#if defined(__cplusplus)
extern "C" { // Prevents name mangling of functions
#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!
#endif
#ifdef __cplusplus
#if defined(__cplusplus)
}
#endif

Loading…
Cancel
Save