2018-04-12 16:08:48 +02:00
|
|
|
/*
|
2019-08-03 19:43:48 +02:00
|
|
|
* This software is licensed under the terms of the MIT License.
|
2018-04-12 16:08:48 +02:00
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
2024-05-16 23:30:41 +02:00
|
|
|
* Copyright (c) 2011-2024, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2024, Andrei Alexeyev <akari@taisei-project.org>.
|
2018-04-12 16:08:48 +02:00
|
|
|
*/
|
|
|
|
|
2021-08-12 23:09:01 +02:00
|
|
|
#pragma once
|
2018-04-12 16:08:48 +02:00
|
|
|
#include "taisei.h"
|
|
|
|
|
|
|
|
// This is a wrapper header to include cglm the "right way".
|
|
|
|
// Please include this in any C file where access to the glm_* functions is needed.
|
|
|
|
// You don't need to include this if you just want the types.
|
|
|
|
|
2024-05-17 04:41:28 +02:00
|
|
|
// IWYU pragma: always_keep
|
2018-04-12 16:08:48 +02:00
|
|
|
|
2020-11-08 19:53:17 +01:00
|
|
|
DIAGNOSTIC(push)
|
|
|
|
DIAGNOSTIC(ignored "-Wdeprecated-declarations")
|
2024-05-17 04:41:28 +02:00
|
|
|
#include <cglm/cglm.h> // IWYU pragma: export
|
2020-11-08 19:53:17 +01:00
|
|
|
DIAGNOSTIC(pop)
|
2019-01-23 21:10:43 +01:00
|
|
|
|
2019-12-11 10:25:57 +01:00
|
|
|
typedef float (*glm_ease_t)(float);
|
|
|
|
|
|
|
|
INLINE float glm_ease_apply(glm_ease_t ease, float f) {
|
|
|
|
return ease ? ease(f) : f;
|
|
|
|
}
|