Fix some warnings

This commit is contained in:
Georg Hagen
2024-10-07 10:02:30 +02:00
parent 45b5fe2c26
commit f60b803bda
5 changed files with 10 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ namespace OpenVulkano::Math
};
};
RGB565() : r(0), g(0), b(0) {}
RGB565() : value(0) {}
template<typename T, std::enable_if_t<std::is_integral_v<T>, bool> = true>
RGB565(const Math::Vector3<T>& color) : b(Make5(color.b)), g(Make6(color.g)), r(Make5(color.r))