Changeset 3589 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Mar 17, 2005, 2:53:46 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/primitive.cc
r3588 r3589 35 35 //this->model = new OBJModel(""); 36 36 this->object = gluNewQuadric(); 37 37 38 38 gluQuadricTexture(this->object, GL_TRUE); 39 39 40 40 this->material = new Material("Sphere"); 41 this->material->setDiffuseMap("../data/pictures/ sky-replace.jpg");41 this->material->setDiffuseMap("../data/pictures/load_screen.jpg"); 42 42 this->material->setIllum(3); 43 this->material->set Specular(.3, .3, .3);43 this->material->setAmbient(1, 1, 1); 44 44 } 45 45 … … 74 74 void Primitive::tick (float time) 75 75 { 76 // Vector v(0.0, 0.0, 1.0);77 // Quaternion q(10.0, v);78 // this->relDirection = this->relDirection * q;76 // Vector v(0.0, 0.0, 1.0); 77 // Quaternion q(10.0, v); 78 // this->setRelDir(&(this->relDirection * q)); 79 79 } 80 80 … … 92 92 //this->getAbsDir().matrix (matrix); 93 93 //glMultMatrixf((float*)matrix); 94 this->material->select(); 94 95 gluSphere(this->object, 2, 20, 20); 95 96
Note: See TracChangeset
for help on using the changeset viewer.