summaryrefslogtreecommitdiff
path: root/shared_cpp/RenderShared.cpp
blob: 8b51c900ed653c37b4f707aec4a4f1469a61f581 (plain)
1
2
3
4
5
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 };
}