diff options
Diffstat (limited to 'shared_cpp/RenderShared.cpp')
-rw-r--r-- | shared_cpp/RenderShared.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shared_cpp/RenderShared.cpp b/shared_cpp/RenderShared.cpp new file mode 100644 index 0000000..8b51c90 --- /dev/null +++ b/shared_cpp/RenderShared.cpp @@ -0,0 +1,6 @@ +#include "RenderShared.h" + +Color colorFromHex(float32 r, float32 g, float32 b, float32 a) { + float32 scale = 1.f / 255.f; + return { r * scale, g * scale, b * scale, a * scale }; +} |