aboutsummaryrefslogtreecommitdiff
path: root/include/cru
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru')
-rw-r--r--include/cru/common/Base.hpp3
-rw-r--r--include/cru/platform/Matrix.hpp4
2 files changed, 5 insertions, 2 deletions
diff --git a/include/cru/common/Base.hpp b/include/cru/common/Base.hpp
index 93d6f9a6..a5a9421d 100644
--- a/include/cru/common/Base.hpp
+++ b/include/cru/common/Base.hpp
@@ -7,6 +7,9 @@
#define CRU_UNUSED(entity) static_cast<void>(entity);
+#define CRU__CONCAT(a, b) a##b
+#define CRU_MAKE_UNICODE_LITERAL(str) CRU__CONCAT(u, #str)
+
#define CRU_DEFAULT_COPY(classname) \
classname(const classname&) = default; \
classname& operator=(const classname&) = default;
diff --git a/include/cru/platform/Matrix.hpp b/include/cru/platform/Matrix.hpp
index cea5198b..e702df90 100644
--- a/include/cru/platform/Matrix.hpp
+++ b/include/cru/platform/Matrix.hpp
@@ -56,8 +56,8 @@ struct Matrix {
static Matrix Rotation(float angle) {
float r = AngleToRadian(angle);
- float s = std::sinf(r);
- float c = std::cosf(r);
+ float s = std::sin(r);
+ float c = std::cos(r);
return Matrix{c, s, -s, c, 0.0f, 0.0f};
}