Changeset 3607 in orxonox.OLD for orxonox/trunk/src/world_entities/primitive.cc
- Timestamp:
- Mar 20, 2005, 10:38:59 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/primitive.cc
r3590 r3607 20 20 #include "stdincl.h" 21 21 #include "world_entity.h" 22 #include "vector.h"23 22 #include "objModel.h" 24 23 … … 39 38 40 39 this->material = new Material("Sphere"); 41 this->material->setDiffuseMap("../data/pictures/load_screen.jpg");40 //this->material->setDiffuseMap("../data/pictures/load_screen.jpg"); 42 41 this->material->setIllum(3); 43 this->material->setSpecular(1, 1, 1); 42 this->material->setAmbient(1, .5, 1); 43 Vector* v = new Vector(); 44 44 45 } 45 46 … … 74 75 void Primitive::tick (float time) 75 76 { 76 // 77 // 78 // 77 // Vector v(0.0, 0.0, 1.0); 78 // Quaternion q(10.0, v); 79 // this->setRelDir(&(this->relDirection * q)); 79 80 } 80 81 … … 93 94 //glMultMatrixf((float*)matrix); 94 95 this->material->select(); 95 gluSphere(this->object, 2, 20, 20); 96 gluSphere(this->object, 1, 6, 6); 97 //gluCylinder(this->object, 1, 1, 2, 6, 6); 98 //gluDisk(this->object, 1, 2, 6, 6); 96 99 97 100 glPopMatrix();
Note: See TracChangeset
for help on using the changeset viewer.