Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 24, 2007, 3:02:45 PM (18 years ago)
Author:
gfilip
Message:

all working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camera/src/world_entities/blackscreen.cc

    r10254 r10330  
    3333 *
    3434 */
    35 blackscreen::blackscreen ()
     35blackscreen::blackscreen()
    3636{
    3737  this->init();
     
    5757 *
    5858 */
    59 blackscreen::~blackscreen ()
     59blackscreen::~blackscreen()
    6060{}
    6161
     
    7070
    7171  this->material = new Material();
    72   this->material->setIllum(3);
    73   this->material->setDiffuse(0,0,0);
     72 // this->material->setIllum(3);
     73 // this->material->setDiffuse(0,0,0);
    7474  this->material->setSpecular(0.0,0.0,0.0);
    75   this->material->setAmbient(0, 0, 0);
     75 // this->material->setAmbient(0, 0, 0);
    7676
    77   i=0.5;
     77  i=1;
    7878  state=0;
    7979  fadeSpeed=1;
     
    118118
    119119glColor4f(0, 0, 0, i);
    120 /*this->material->select();
     120this->material->select();
     121this->material->setTransparency(i);
    121122  glBegin(GL_QUADS);
    122123  glVertex3f(State::getCameraNode()->getAbsCoorX()+3,State::getCameraNode()->getAbsCoorY() -100.0f,
     
    128129  glVertex3f(State::getCameraNode()->getAbsCoorX()+3, State::getCameraNode()->getAbsCoorY()+100.0f,
    129130             State::getCameraNode()->getAbsCoorZ()-100.0f);
    130 */
    131131
    132  glBegin(GL_QUADS);
     132
     133/* glBegin(GL_QUADS);
    133134glVertex3f(0,-100.0f,-100.0f);
    134135glVertex3f(0,-100.0f,+100.0f);
    135136glVertex3f(0,+100.0f,+100.0f);
    136137glVertex3f(0,+100.0f,-100.0f);
    137 
     138*/
    138139
    139140
     
    149150void blackscreen::tick (float time)
    150151{
    151 /*if (state == true)
     152if (state == true)
    152153  fadeOut();
    153154else
    154   fadeIn();*/
     155  fadeIn();
    155156}
    156157
     
    169170void  blackscreen::toggleFade ()
    170171{
    171   state=!state;
     172
     173    this->state= !this->state;
    172174}
    173175
Note: See TracChangeset for help on using the changeset viewer.