diff options
Diffstat (limited to 'src/game/client/components/menus.cpp')
| -rw-r--r-- | src/game/client/components/menus.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 6d3c494e..f06543a9 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -41,44 +41,6 @@ float CMenus::ms_FontmodHeight = 0.8f; IInput::CEvent CMenus::m_aInputEvents[MAX_INPUTEVENTS]; int CMenus::m_NumInputEvents; -inline float HueToRgb(float v1, float v2, float h) -{ - if(h < 0) h += 1; - if(h > 1) h -= 1; - if((6 * h) < 1) return v1 + ( v2 - v1 ) * 6 * h; - if((2 * h) < 1) return v2; - if((3 * h) < 2) return v1 + ( v2 - v1 ) * ((2.0f/3.0f) - h) * 6; - return v1; -} - -inline vec3 HslToRgb(vec3 In) -{ - float v1, v2; - vec3 Out; - - if(In.s == 0) - { - Out.r = In.l; - Out.g = In.l; - Out.b = In.l; - } - else - { - if(In.l < 0.5f) - v2 = In.l * (1 + In.s); - else - v2 = (In.l+In.s) - (In.s*In.l); - - v1 = 2 * In.l - v2; - - Out.r = HueToRgb(v1, v2, In.h + (1.0f/3.0f)); - Out.g = HueToRgb(v1, v2, In.h); - Out.b = HueToRgb(v1, v2, In.h - (1.0f/3.0f)); - } - - return Out; -} - CMenus::CMenus() { |