Ignore:
Timestamp:
11/10/08 18:43:06 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ShaderProgram.cpp

    r3114 r3115  
    1717 
    1818static float sCurrentTimer = 0; 
     19static float sOldTimer = 0; 
    1920static Matrix4x4 sCurrentViewMatrix = IdentityMatrix(); 
    2021static Vector3 sCurrentViewDir = Vector3::UNIT_Y(); 
     
    158159{ 
    159160        mTimerParam = idx; 
     161} 
     162 
     163 
     164void GPUProgramParameters::SetOldTimerParam(int idx) 
     165{ 
     166        mOldTimerParam = idx; 
    160167} 
    161168 
     
    318325        if (mTimerParam >= 0) 
    319326                mProgram->SetValue1f(mTimerParam, sCurrentTimer); 
    320  
     327        if (mOldTimerParam >= 0) 
     328                mProgram->SetValue1f(mOldTimerParam, sOldTimer); 
    321329        if (mViewDirParam >= 0) 
    322330                mProgram->SetValue3f(mViewDirParam, sCurrentViewDir.x, sCurrentViewDir.y, sCurrentViewDir.z); 
     
    339347{ 
    340348        static PerfTimer mytimer; 
     349        sOldTimer = sCurrentTimer; 
    341350        sCurrentTimer = mytimer.Elapsedms(false) * M_PI / 180.0f; 
    342351 
Note: See TracChangeset for help on using the changeset viewer.