Changeset 10018 in orxonox.OLD for branches/camera/src/world_entities/test_entity.cc
- Timestamp:
- Dec 5, 2006, 10:40:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/test_entity.cc
r9928 r10018 1 2 3 1 /* 4 2 orxonox - the future of 3D-vertical-scrollers … … 37 35 CREATE_FACTORY(TestEntity); 38 36 39 37 float i=0; 38 bool state=1; 40 39 41 40 /** … … 86 85 } 87 86 87 void TestEntity::draw() const 88 { 89 // if(!mediaLoaded) 90 // false; 88 91 92 glPushAttrib(GL_ENABLE_BIT); 93 glDisable(GL_LIGHTING); 94 // glDisable(GL_BLEND); 95 // 96 // glEnable(GL_TEXTURE_2D); 97 // glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter)); 98 99 glPushMatrix(); 100 /* glTranslatef (this->getAbsCoor ().x, 101 this->getAbsCoor ().y, 102 this->getAbsCoor ().z); 103 glRotatef(axis, 0.0f, 1.0f, 0.0f);*/ 104 //PRINTF(0)("axis: %f\n", axis); 105 glEnable(GL_BLEND); // Turn Blending On 106 107 108 109 glColor4f(0, 0, 0, i); 110 111 glBegin(GL_QUADS); 112 glVertex3f(-1.0f, -100.0f, -100.0f); 113 // glTexCoord2f(1.0f, 1.0f); 114 glVertex3f(-1.0f, -100.0f, 100.0f); 115 // glTexCoord2f(0.0f, 1.0f); 116 glVertex3f(-1.0f, 100.0f, 100.0f); 117 // glTexCoord2f(0.0f, 0.0f); 118 glVertex3f(-1.0f, 100.0f, -100.0f); 119 // glTexCoord2f(1.0f, 0.0f); 120 121 glEnd(); 122 123 // glPopMatrix(); 124 // glPopAttrib(); 125 } 89 126 90 127 /** … … 93 130 void TestEntity::tick (float time) 94 131 { 132 if (state==0) 133 i=0; 134 else 135 i=i+0.005; 136 137 95 138 96 139 … … 98 141 99 142 100 /** 101 * 102 */ 103 void TestEntity::draw() const 104 { 105 106 } 107 108 109 110 143 //void TestEntity::changeState (bool sta) 144 //{ 145 //state=sta; 146 //}
Note: See TracChangeset
for help on using the changeset viewer.