mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Remove unused function
This commit is contained in:
parent
929d772071
commit
be26789872
|
@ -32,23 +32,6 @@ inline float RgbToHue(vec3 rgb)
|
||||||
return hue / 6.0f;
|
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<float>
|
class color4_base : public vector3_base<float>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue