mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +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;
|
||||
}
|
||||
|
||||
/*
|
||||
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>
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue