diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-01-13 22:20:01 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-01-13 22:20:01 +0100 |
| commit | 4c7e4ae43566d08f1d7d91bffff4646ce287a68a (patch) | |
| tree | da9576fc4978f3ce7da1a97c7986dc5103061f9e /include/utils.hpp | |
| parent | 0b68d510069ec524daa3e10e598587c62ab713ff (diff) | |
Compile on windows
Diffstat (limited to 'include/utils.hpp')
| -rw-r--r-- | include/utils.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/utils.hpp b/include/utils.hpp index 0bef213..42a5a1a 100644 --- a/include/utils.hpp +++ b/include/utils.hpp @@ -5,13 +5,14 @@ #include <vector> -#include <cmath> #include <cstdlib> std::vector<uint8_t> get_shader_code(const char* path); +#define PI 3.14159265359 + inline float deg_to_rad(float deg) { - return deg * M_PI / 180.0; + return deg * PI / 180.0; } inline float randd() { |
