mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-08-25 12:23:58 -04:00
a8559bfbbc
* Update all CMakeLists of extensions to use clang-format * Run clang-format on all Extensions * Update GDCore CMakeLists.txt to add clang-format * Run clang-format on GDCore files * Update GDJS and GDCpp CMakeLists.txt to add clang-format * Run clang-format on GDCpp and GDJS files
12 lines
236 B
C++
12 lines
236 B
C++
namespace gd {
|
|
|
|
template <typename T>
|
|
T& HexToRgb(int hexValue, T& output) {
|
|
output["r"] = ((hexValue >> 16) & 0xFF);
|
|
output["g"] = ((hexValue >> 8) & 0xFF);
|
|
output["b"] = ((hexValue)&0xFF);
|
|
|
|
return output;
|
|
}
|
|
|
|
} // namespace gd
|