ddnet/src/engine/client/backend
Robert Müller db4ec4a12d Replace usages of C math functions
Replacing the C standard headers with the C++ standard headers causes various `error: call to 'floor' promotes float to double [performance-type-promotion-in-math-fn,-warnings-as-errors]`, which are fixed by using the C++ std math functions or our own math functions instead of the C math functions.

- Use `absolute` instead of `abs` and `fabs`.
- Use `std::floor` instead of `floor` and `floorf`.
- Use `std::ceil` instead of `ceil`, `ceilf` and `round_ceil`.
- Use `std::round` instead of `round` and `roundf`.
- Use `std::sin` instead of `sin` and `sinf`.
- Use `std::asin` instead of `asin` and `asinf`.
- Use `std::cos` instead of `cos` and `cosf`.
- Use `std::acos` instead of `acos` and `acosf`.
- Use `std::tan` instead of `tan` and `tanf`.
- Use `std::atan` instead of `atan` and `atanf`.
- Use `std::pow` instead of `pow` and `powf`.
- Use `std::log` instead of `log` and `logf`.
- Use `std::log2` instead of `log2` and `log2f`.
- Use `std::log10` instead of `log10` and `log10f`.
- Use `std::pow` instead of `pow` and `powf`.
- Use `std::sqrt` instead of `sqrt` and `sqrtf`.
- Use `std::fmod` instead of `fmod` and `fmodf`.
- Use `direction(Angle)` instead of `vec2(std::cos(Angle), std::sin(Angle))`.
- Use `length(vec2(x, y))` instead of `std::sqrt(x * x + y * y)`.
- Remove unused `NormalizeAngular` and `AngularDistance` functions.
2023-03-01 19:26:53 +01:00
..
null Improve error handling in vulkan 2022-12-13 18:11:26 +01:00
opengl Improve error handling in vulkan 2022-12-13 18:11:26 +01:00
opengles Remove unused backend_opengles.h 2022-07-31 09:44:50 +02:00
vulkan Replace usages of C math functions 2023-03-01 19:26:53 +01:00
backend_base.cpp Move PNG handling to src/engine/gfx 2022-06-21 15:26:23 +02:00
backend_base.h Add warning for missing integrated CPU driver 2023-01-06 20:57:31 +01:00
glsl_shader_compiler.cpp More minimal clang-tidy 15 run 2023-01-23 11:20:05 +01:00
glsl_shader_compiler.h Format vector variables names (fixes #5209) 2022-06-11 21:38:49 +02:00