diff --git a/src/easings.h b/examples/others/reasings.h similarity index 96% rename from src/easings.h rename to examples/others/reasings.h index ae04fa2fd..4f32dee1f 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 similarity index 96% rename from examples/others/easings.h rename to examples/shapes/reasings.h index fb723d83a..4f32dee1f 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