diff options
| author | Matthew Kosarek <mattkae@protonmail.com> | 2021-06-17 20:44:55 -0400 |
|---|---|---|
| committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-06-17 20:44:55 -0400 |
| commit | e68d14c4d5b4cced62c2148323c38e7f49292bd7 (patch) | |
| tree | 9df84f2f9b4264cfcd74f0ab4738b5fd39f49e67 /shared_cpp/RenderShared.cpp | |
| parent | 4079e69fe4107d2a50b122dbd58710bbeb10ace2 (diff) | |
Rotating 3d square
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 }; +} |
