Changeset 10236 in orxonox.OLD for branches/camera/src/world_entities/test_entity.cc
- Timestamp:
- Jan 14, 2007, 9:35:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/test_entity.cc
r10212 r10236 25 25 26 26 27 #include "material.h"28 29 27 #include "state.h" 30 28 … … 35 33 CREATE_FACTORY(TestEntity); 36 34 37 float i=0; 38 bool state=1; 35 39 36 40 37 /** … … 73 70 this->registerObject(this, TestEntity::_objectList); 74 71 this->toList(OM_GROUP_00); 72 CM= new cameraman(); 73 test(); 74 } 75 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");*/ 76 void TestEntity::test() 77 { 78 CM->moveCurrCam(-200, 0, 0); 79 CM->createCam(); 80 CM->moveCam(0, -200, 0, 1); 82 81 } 82 83 83 84 84 … … 94 94 void TestEntity::draw() const 95 95 { 96 // if(!mediaLoaded)97 // false;98 96 99 // glPushAttrib(GL_ENABLE_BIT);100 // glDisable(GL_LIGHTING);101 // glDisable(GL_BLEND);102 //103 // glEnable(GL_TEXTURE_2D);104 // glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter));105 106 // glPushMatrix();107 /* glTranslatef (this->getAbsCoor ().x,108 this->getAbsCoor ().y,109 this->getAbsCoor ().z);110 glRotatef(axis, 0.0f, 1.0f, 0.0f);*/111 //PRINTF(0)("axis: %f\n", axis);112 //glEnable(GL_BLEND); // Turn Blending On113 114 115 116 //glColor4f(0, 0, 0, i);117 118 // glBegin(GL_QUADS);119 // glVertex3f(-1.0f, -100.0f, -100.0f);120 // glTexCoord2f(1.0f, 1.0f);121 // glVertex3f(-1.0f, -100.0f, 100.0f);122 // glTexCoord2f(0.0f, 1.0f);123 // glVertex3f(-1.0f, 100.0f, 100.0f);124 // glTexCoord2f(0.0f, 0.0f);125 // glVertex3f(-1.0f, 100.0f, -100.0f);126 // glTexCoord2f(1.0f, 0.0f);127 128 // glEnd();129 130 // glPopMatrix();131 // glPopAttrib();132 97 } 133 98 … … 137 102 void TestEntity::tick (float time) 138 103 { 139 // if (state==0 && i==1) 140 // i=0; 141 // if (state==1 && i<=1) 142 // i=i+0.005; 104 143 105 } 144 106 … … 146 108 void TestEntity::changeState (bool sta) 147 109 { 148 state=sta; 110 149 111 }
Note: See TracChangeset
for help on using the changeset viewer.