Changeset 10065 in orxonox.OLD for branches/camera/src/world_entities/test_entity.cc
- Timestamp:
- Dec 13, 2006, 3:23:05 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/test_entity.cc
r10018 r10065 25 25 26 26 27 27 #include "material.h" 28 28 29 29 #include "state.h" … … 73 73 this->registerObject(this, TestEntity::_objectList); 74 74 this->toList(OM_GROUP_00); 75 76 this->material = new Material(); 77 this->material->setIllum(3); 78 this->material->setDiffuse(1.0,1.0,1.0); 79 this->material->setSpecular(0.0,0.0,0.0); 80 this->material->setAmbient(1.0, 1.0, 1.0); 81 this->material->setDiffuseMap("maps/TE2.tga"); 75 82 } 76 83 … … 93 100 glDisable(GL_LIGHTING); 94 101 // glDisable(GL_BLEND); 95 // 102 // 96 103 // glEnable(GL_TEXTURE_2D); 97 104 // glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter)); … … 104 111 //PRINTF(0)("axis: %f\n", axis); 105 112 glEnable(GL_BLEND); // Turn Blending On 106 113 107 114 108 115 … … 121 128 glEnd(); 122 129 123 //glPopMatrix();124 //glPopAttrib();130 glPopMatrix(); 131 glPopAttrib(); 125 132 } 126 133 … … 130 137 void TestEntity::tick (float time) 131 138 { 132 if (state==0) 133 i=0; 134 else 135 i=i+0.005; 136 137 138 139 139 if (state==0 && i==1) 140 i=0; 141 if (state==1 && i<=1) 142 i=i+0.005; 140 143 } 141 144 142 145 143 //voidTestEntity::changeState (bool sta)144 //{145 //state=sta;146 //}146 void TestEntity::changeState (bool sta) 147 { 148 state=sta; 149 }
Note: See TracChangeset
for help on using the changeset viewer.