Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Application::Videolympics::VidolviView::SetRelColor (  )  [inline]

Definition at line 112 of file VidolviView.h.

References mRelevance, and mStepsShown.

Referenced by OnDrawView().

00113     {
00114         float r, g, b, a;
00115         switch (mRelevance)
00116         {
00117             case 0:
00118                 r = g = b = 0.0f; a = 0.5f;
00119                 break;
00120             case 1:
00121                 r = 0.0f; g = 1.0f; b = 0.0f; a = 0.5f;
00122                 break;
00123             case 2:
00124                 r = 1.0f; g = 0.0f; b = 0.0f; a = 0.5f;
00125                 break;
00126         }
00127 
00128         if (mStepsShown < 500)
00129         {
00130             float factor = (float)mStepsShown / 500.0f;
00131             mStepsShown++;
00132 //        r = r * factor;
00133 //        g = g * factor;
00134 //        b = b * factor;
00135             a = a * factor;
00136         }
00137 
00138         glColor4f(r,g,b,a);
00139     }


Generated on Thu Jan 13 09:16:55 2011 for ImpalaSrc by  doxygen 1.5.1