Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 26, 2006, 12:54:07 AM (19 years ago)
Author:
patrick
Message:

network: work flush, merge work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/graphics/graphics_engine.cc

    r6746 r6752  
    655655      break;
    656656  }
    657 
    658657}
    659658
     
    663662 * @param effect the GraphicsEffect to add
    664663 */
    665 void GraphicsEngine::loadGraphicsEffect(GraphicsEffect* effect)
    666 {}
     664bool GraphicsEngine::loadGraphicsEffect(GraphicsEffect* effect)
     665{
     666  list<GraphicsEffect*>::iterator it;
     667  for (it = this->graphicsEffects.begin(); it != this->graphicsEffects.end(); it++)
     668    if( (*it) == effect)
     669      return false;
     670
     671  this->graphicsEffects.push_back(effect);
     672
     673  return true;
     674}
    667675
    668676
     
    671679 * @param effect the GraphicsEffect to remove
    672680 */
    673 void GraphicsEngine::unloadGraphicsEffect(GraphicsEffect* effect)
    674 {}
     681bool GraphicsEngine::unloadGraphicsEffect(GraphicsEffect* effect)
     682{
     683  list<GraphicsEffect*>::iterator it;
     684  for (it = this->graphicsEffects.begin(); it != this->graphicsEffects.end(); it++)
     685  {
     686    if( (*it) == effect)
     687    {
     688      this->graphicsEffects.erase(it);
     689      return true;
     690    }
     691  }
     692
     693  return false;
     694}
     695
Note: See TracChangeset for help on using the changeset viewer.