Changeset 10330 in orxonox.OLD for branches/camera/src/world_entities/blackscreen.cc
- Timestamp:
- Jan 24, 2007, 3:02:45 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/blackscreen.cc
r10254 r10330 33 33 * 34 34 */ 35 blackscreen::blackscreen 35 blackscreen::blackscreen() 36 36 { 37 37 this->init(); … … 57 57 * 58 58 */ 59 blackscreen::~blackscreen 59 blackscreen::~blackscreen() 60 60 {} 61 61 … … 70 70 71 71 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); 74 74 this->material->setSpecular(0.0,0.0,0.0); 75 this->material->setAmbient(0, 0, 0);75 // this->material->setAmbient(0, 0, 0); 76 76 77 i= 0.5;77 i=1; 78 78 state=0; 79 79 fadeSpeed=1; … … 118 118 119 119 glColor4f(0, 0, 0, i); 120 /*this->material->select(); 120 this->material->select(); 121 this->material->setTransparency(i); 121 122 glBegin(GL_QUADS); 122 123 glVertex3f(State::getCameraNode()->getAbsCoorX()+3,State::getCameraNode()->getAbsCoorY() -100.0f, … … 128 129 glVertex3f(State::getCameraNode()->getAbsCoorX()+3, State::getCameraNode()->getAbsCoorY()+100.0f, 129 130 State::getCameraNode()->getAbsCoorZ()-100.0f); 130 */131 131 132 glBegin(GL_QUADS); 132 133 /* glBegin(GL_QUADS); 133 134 glVertex3f(0,-100.0f,-100.0f); 134 135 glVertex3f(0,-100.0f,+100.0f); 135 136 glVertex3f(0,+100.0f,+100.0f); 136 137 glVertex3f(0,+100.0f,-100.0f); 137 138 */ 138 139 139 140 … … 149 150 void blackscreen::tick (float time) 150 151 { 151 /*if (state == true)152 if (state == true) 152 153 fadeOut(); 153 154 else 154 fadeIn(); */155 fadeIn(); 155 156 } 156 157 … … 169 170 void blackscreen::toggleFade () 170 171 { 171 state=!state; 172 173 this->state= !this->state; 172 174 } 173 175
Note: See TracChangeset
for help on using the changeset viewer.