- Timestamp:
- Jan 10, 2007, 2:37:52 PM (18 years ago)
- Location:
- branches/camera/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/blackscreen.cc
r10210 r10212 28 28 CREATE_FACTORY(blackscreen); 29 29 30 float i=0; 31 bool state=1; 30 32 31 33 32 /** … … 37 36 { 38 37 this->init(); 38 i=0; 39 state=1; 39 40 } 40 41 -
branches/camera/src/world_entities/blackscreen.h
r10210 r10212 13 13 14 14 private: 15 15 float i; 16 bool state; 16 17 Material* material; 17 18 -
branches/camera/src/world_entities/test_entity.cc
r10065 r10212 74 74 this->toList(OM_GROUP_00); 75 75 76 this->material = new Material();76 /*this->material = new Material(); 77 77 this->material->setIllum(3); 78 78 this->material->setDiffuse(1.0,1.0,1.0); 79 79 this->material->setSpecular(0.0,0.0,0.0); 80 80 this->material->setAmbient(1.0, 1.0, 1.0); 81 this->material->setDiffuseMap("maps/TE2.tga"); 81 this->material->setDiffuseMap("maps/TE2.tga");*/ 82 82 } 83 83 … … 97 97 // false; 98 98 99 glPushAttrib(GL_ENABLE_BIT);100 glDisable(GL_LIGHTING);99 // glPushAttrib(GL_ENABLE_BIT); 100 // glDisable(GL_LIGHTING); 101 101 // glDisable(GL_BLEND); 102 102 // … … 104 104 // glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter)); 105 105 106 glPushMatrix();106 // glPushMatrix(); 107 107 /* glTranslatef (this->getAbsCoor ().x, 108 108 this->getAbsCoor ().y, … … 110 110 glRotatef(axis, 0.0f, 1.0f, 0.0f);*/ 111 111 //PRINTF(0)("axis: %f\n", axis); 112 glEnable(GL_BLEND); // Turn Blending On112 //glEnable(GL_BLEND); // Turn Blending On 113 113 114 114 115 115 116 glColor4f(0, 0, 0, i);116 //glColor4f(0, 0, 0, i); 117 117 118 glBegin(GL_QUADS);119 glVertex3f(-1.0f, -100.0f, -100.0f);118 // glBegin(GL_QUADS); 119 // glVertex3f(-1.0f, -100.0f, -100.0f); 120 120 // glTexCoord2f(1.0f, 1.0f); 121 glVertex3f(-1.0f, -100.0f, 100.0f);121 // glVertex3f(-1.0f, -100.0f, 100.0f); 122 122 // glTexCoord2f(0.0f, 1.0f); 123 glVertex3f(-1.0f, 100.0f, 100.0f);123 // glVertex3f(-1.0f, 100.0f, 100.0f); 124 124 // glTexCoord2f(0.0f, 0.0f); 125 glVertex3f(-1.0f, 100.0f, -100.0f);125 // glVertex3f(-1.0f, 100.0f, -100.0f); 126 126 // glTexCoord2f(1.0f, 0.0f); 127 127 128 glEnd();128 // glEnd(); 129 129 130 glPopMatrix();131 glPopAttrib();130 // glPopMatrix(); 131 // glPopAttrib(); 132 132 } 133 133 … … 137 137 void TestEntity::tick (float time) 138 138 { 139 if (state==0 && i==1)140 i=0;141 if (state==1 && i<=1)142 i=i+0.005;139 // if (state==0 && i==1) 140 // i=0; 141 // if (state==1 && i<=1) 142 // i=i+0.005; 143 143 } 144 144
Note: See TracChangeset
for help on using the changeset viewer.