summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2022-08-02 18:31:57 +0200
committerRay <[email protected]>2022-08-02 18:31:57 +0200
commit0ce8a8f360bc52eaf6b4c2af845839d56fe928de (patch)
treeb1e14ed55b8aba3796b11519c29e7c1e7af8b126
parentb187d6ca16e34e25db6808b068e8566b57e54fe0 (diff)
downloadraylib-0ce8a8f360bc52eaf6b4c2af845839d56fe928de.tar.gz
raylib-0ce8a8f360bc52eaf6b4c2af845839d56fe928de.zip
Remove `easings.h` from raylib/src, moved to examples
-rw-r--r--examples/others/reasings.h (renamed from src/easings.h)16
-rw-r--r--examples/shapes/reasings.h (renamed from examples/others/easings.h)20
2 files changed, 18 insertions, 18 deletions
diff --git a/src/easings.h b/examples/others/reasings.h
index ae04fa2f..4f32dee1 100644
--- a/src/easings.h
+++ b/examples/others/reasings.h
@@ -1,11 +1,11 @@
/*******************************************************************************************
*
-* raylib easings (header only file)
+* reasings - raylib easings library, based on Robert Penner library
*
* Useful easing functions for values animation
*
* This header uses:
-* #define EASINGS_STATIC_INLINE // Inlines all functions code, so it runs faster.
+* #define REASINGS_STATIC_INLINE // Inlines all functions code, so it runs faster.
* // This requires lots of memory on system.
* How to use:
* The four inputs t,b,c,d are defined as follows:
@@ -60,7 +60,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ---------------------------------------------------------------------------------
*
-* Copyright (c) 2015 Ramon Santamaria
+* Copyright (c) 2015-2022 Ramon Santamaria (@raysan5)
*
* This software is provided "as-is", without any express or implied warranty. In no event
* will the authors be held liable for any damages arising from the use of this software.
@@ -79,12 +79,12 @@
*
**********************************************************************************************/
-#ifndef EASINGS_H
-#define EASINGS_H
+#ifndef REASINGS_H
+#define REASINGS_H
-#define EASINGS_STATIC_INLINE // NOTE: By default, compile functions as static inline
+#define REASINGS_STATIC_INLINE // NOTE: By default, compile functions as static inline
-#if defined(EASINGS_STATIC_INLINE)
+#if defined(REASINGS_STATIC_INLINE)
#define EASEDEF static inline
#else
#define EASEDEF extern
@@ -260,4 +260,4 @@ EASEDEF float EaseElasticInOut(float t, float b, float c, float d) // Ease: Elas
}
#endif
-#endif // EASINGS_H
+#endif // REASINGS_H
diff --git a/examples/others/easings.h b/examples/shapes/reasings.h
index fb723d83..4f32dee1 100644
--- a/examples/others/easings.h
+++ b/examples/shapes/reasings.h
@@ -1,11 +1,11 @@
/*******************************************************************************************
*
-* raylib easings (header only file)
+* reasings - raylib easings library, based on Robert Penner library
*
* Useful easing functions for values animation
*
* This header uses:
-* #define EASINGS_STATIC_INLINE // Inlines all functions code, so it runs faster.
+* #define REASINGS_STATIC_INLINE // Inlines all functions code, so it runs faster.
* // This requires lots of memory on system.
* How to use:
* The four inputs t,b,c,d are defined as follows:
@@ -60,7 +60,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ---------------------------------------------------------------------------------
*
-* Copyright (c) 2015 Ramon Santamaria
+* Copyright (c) 2015-2022 Ramon Santamaria (@raysan5)
*
* This software is provided "as-is", without any express or implied warranty. In no event
* will the authors be held liable for any damages arising from the use of this software.
@@ -79,12 +79,12 @@
*
**********************************************************************************************/
-#ifndef EASINGS_H
-#define EASINGS_H
+#ifndef REASINGS_H
+#define REASINGS_H
-#define EASINGS_STATIC_INLINE // NOTE: By default, compile functions as static inline
+#define REASINGS_STATIC_INLINE // NOTE: By default, compile functions as static inline
-#if defined(EASINGS_STATIC_INLINE)
+#if defined(REASINGS_STATIC_INLINE)
#define EASEDEF static inline
#else
#define EASEDEF extern
@@ -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,8 +256,8 @@ 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
-#endif // EASINGS_H
+#endif // REASINGS_H