diff --git a/src/base/color.h b/src/base/color.h index 2bc4c72ee..6c32f244c 100644 --- a/src/base/color.h +++ b/src/base/color.h @@ -32,23 +32,6 @@ inline float RgbToHue(vec3 rgb) return hue / 6.0f; } -/* - Function: HexToRgba - Converts Hex to Rgba - - Remarks: Hex should be RGBA8 -*/ -inline vec4 HexToRgba(int hex) -{ - vec4 c; - c.r = ((hex >> 24) & 0xFF) / 255.0f; - c.g = ((hex >> 16) & 0xFF) / 255.0f; - c.b = ((hex >> 8) & 0xFF) / 255.0f; - c.a = (hex & 0xFF) / 255.0f; - - return c; -} - class color4_base : public vector3_base { public: