Changeset 10341 in orxonox.OLD for branches/camera/src/world_entities
- Timestamp:
- Jan 24, 2007, 5:42:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/blackscreen.cc
r10339 r10341 70 70 71 71 this->material = new Material(); 72 this->material->setDiffuseMap("maps/black.png"); 73 // this->material->setIllum(3); 74 // this->material->setTransparency(0.6); 75 //this->material->setDiffuse(0,0,0); 72 this->material->setDiffuse(0,0,0); 76 73 this->material->setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 77 // this->material->setSpecular(0.0,0.0,0.0);78 // this->material->setAmbient(1, 1, 1);79 74 80 75 i=1; … … 96 91 void blackscreen::draw() const 97 92 { 98 // if(!mediaLoaded)99 // false;100 101 93 glPushAttrib(GL_ENABLE_BIT); 102 94 glDisable(GL_LIGHTING); 103 // glDisable(GL_BLEND);104 //105 // glEnable(GL_TEXTURE_2D);106 // glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter));107 108 95 glPushMatrix(); 109 /* glTranslatef (this->getAbsCoor ().x, 110 this->getAbsCoor ().y, 111 this->getAbsCoor ().z); 112 glRotatef(axis, 0.0f, 1.0f, 0.0f);*/ 113 //PRINTF(0)("axis: %f\n", axis); 114 glEnable(GL_BLEND); // Turn Blending On 115 //lDisable(GL_ALPHA_TEST); 116 117 // 118 // Coord schould depend on CameraTarget 119 // 120 // 121 // 122 123 //glColor4f(0, 0, 0, i); 96 glEnable(GL_BLEND); // Turn Blending On 124 97 125 98 this->material->setTransparency(i); … … 135 108 glVertex3f(State::getCameraNode()->getAbsCoorX()+3, State::getCameraNode()->getAbsCoorY()+100.0f, 136 109 State::getCameraNode()->getAbsCoorZ()-100.0f); 137 138 139 /* glBegin(GL_QUADS);140 glVertex3f(0,-100.0f,-100.0f);141 glVertex3f(0,-100.0f,+100.0f);142 glVertex3f(0,+100.0f,+100.0f);143 glVertex3f(0,+100.0f,-100.0f);144 */145 146 110 147 111 glEnd();
Note: See TracChangeset
for help on using the changeset viewer.