Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 24, 2007, 5:04:03 PM (18 years ago)
Author:
gfilip
Message:

so many updates

File:
1 edited

Legend:

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

    r10330 r10338  
    7171  this->material = new Material();
    7272 // this->material->setIllum(3);
    73  // this->material->setDiffuse(0,0,0);
    74   this->material->setSpecular(0.0,0.0,0.0);
    75  // this->material->setAmbient(0, 0, 0);
     73 // this->material->setTransparency(0.6);
     74  //this->material->setDiffuse(0,0,0);
     75  //this->material->setBlendFuncS("GL_SORCE_APLHA", "GL_ZERO");
     76 // this->material->setSpecular(0.0,0.0,0.0);
     77 // this->material->setAmbient(1, 1, 1);
    7678
    7779  i=1;
     
    117119//
    118120
    119 glColor4f(0, 0, 0, i);
     121//glColor4f(0, 0, 0, i);
     122
     123this->material->setTransparency(i);
    120124this->material->select();
    121 this->material->setTransparency(i);
     125
    122126  glBegin(GL_QUADS);
    123127  glVertex3f(State::getCameraNode()->getAbsCoorX()+3,State::getCameraNode()->getAbsCoorY() -100.0f,
     
    179183}
    180184
     185bool blackscreen::isBlack()
     186{
     187if (i==1)
     188  return 1;
     189else
     190  return 0;
     191}
     192
     193bool blackscreen::isTrans()
     194{
     195  if (i==0)
     196    return 1;
     197  else
     198    return 0;
     199}
Note: See TracChangeset for help on using the changeset viewer.