Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6752 in orxonox.OLD


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

network: work flush, merge work

Location:
branches/network/src/lib/graphics
Files:
3 edited

Legend:

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

    r6741 r6752  
    7171 */
    7272bool FogEffect::activate()
    73 {}
     73{
     74/*  glEnable(GL_FOG);
     75  {
     76    GLfloat fogColor[4] = {0.5, 0.5, 1.0};
     77
     78    GLint fogMode = GL_EXP;
     79    glFogi(GL_FOG_MODE, fogMode);
     80    glFogfv(GL_FOG_COLOR, fogColor);
     81    gfFogf(GL_FOG_DENSITY, 0.35f);
     82
     83
     84  }*/
     85}
    7486
    7587
  • 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
  • branches/network/src/lib/graphics/graphics_engine.h

    r6742 r6752  
    8383    void process(const Event  &event);
    8484
    85     void loadGraphicsEffect(GraphicsEffect* effect);
    86     void unloadGraphicsEffect(GraphicsEffect* effect);
     85    bool loadGraphicsEffect(GraphicsEffect* effect);
     86    bool unloadGraphicsEffect(GraphicsEffect* effect);
    8787
    8888
Note: See TracChangeset for help on using the changeset viewer.