Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10424 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jan 28, 2007, 1:03:34 AM (18 years ago)
Author:
patrick
Message:

more on planet atmos, fading and track

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/track/track.cc

    r10412 r10424  
    299299            glVertex3f(tmpVector.x, tmpVector.y, tmpVector.z);
    300300          }
    301           tmpVector.debug();
    302301      glEnd();
    303302
  • trunk/src/world_entities/blackscreen.cc

    r10404 r10424  
    169169}
    170170
     171
     172void BlackScreen::initFadeBlack()
     173{
     174  this->i = 1.;
     175  this->state = true;
     176  this->toList(OM_COMMON);
     177}
     178
     179
    171180void BlackScreen::changeFadeSpeed(float newSpeed)
    172181{
  • trunk/src/world_entities/blackscreen.h

    r10404 r10424  
    2929
    3030    void toggleFade();
     31    void initFadeBlack();
    3132    void changeFadeSpeed(float newSpeed);
    3233    bool isBlack();
  • trunk/src/world_entities/cameraman.cc

    r10416 r10424  
    3939                        ->addMethod("setCam", Executor1<CameraMan, lua_State*, const std::string&>(&CameraMan::setCam))
    4040                        ->addMethod("togglFade", Executor0<CameraMan, lua_State*>(&CameraMan::togglFade))
     41                        ->addMethod("initFadeBlack", Executor0<CameraMan, lua_State*>(&CameraMan::initFadeBlack))
    4142                        ->addMethod("getCurrCameraCoorX", Executor0ret<CameraMan, lua_State*,float>(&CameraMan::getCurrCameraCoorX))
    4243                        ->addMethod("getCurrCameraCoorY", Executor0ret<CameraMan, lua_State*,float>(&CameraMan::getCurrCameraCoorY))
     
    238239}
    239240
     241void CameraMan::initFadeBlack()
     242{
     243  if( this->fadeToBlack)
     244    fadeToBlack->initFadeBlack();
     245}
    240246
    241247
  • trunk/src/world_entities/cameraman.h

    r10416 r10424  
    4242    void setClipRegion(float nearClip, float farClip);
    4343    void togglFade();
     44    void initFadeBlack();
    4445
    4546    void cameraInfo();
  • trunk/src/world_entities/planet.cc

    r10392 r10424  
    5858  this->setModel(model);
    5959
    60   this->cloudModel = new PrimitiveModel(PRIM_SPHERE, this->size + 2, 50);
     60  this->cloudModel = new PrimitiveModel(PRIM_SPHERE, this->size + 1, 50);
    6161}
    6262
Note: See TracChangeset for help on using the changeset viewer.