- Timestamp:
- Jan 28, 2007, 1:37:55 AM (18 years ago)
- Location:
- branches/blink/src/world_entities/effects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blink/src/world_entities/effects/blink.cc
r10427 r10429 67 67 this->bBoard->setVisibiliy(true); 68 68 this->bBoard->setTexture("maps/star_alpha.png"); 69 this->bBoard->setAbsCoor( this->position.x, this->position.y, this->position.z);69 this->bBoard->setAbsCoor(0, 0, 0); 70 70 71 71 72 72 /// Standard values 73 this->setAbsCoor(0, 0, 0); 74 this->position = Vector(0, 0, 0); ///remove73 this->setAbsCoor(0, 0, 0); 74 // red if not defined in xml 75 75 this->color = Color(1, 0, 0); 76 // 10x10 pxl if not defined in xml 76 77 this->size = 10; 77 78 this->omega = 10; -
branches/blink/src/world_entities/effects/blink.h
r10427 r10429 24 24 void loadParams(const TiXmlElement* root); 25 25 26 void setPosition(float x, float y, float z) { this-> position = Vector(x, y, z); }26 void setPosition(float x, float y, float z) { this->bBoard->setAbsCoor(x, y, z); } 27 27 void setSize(float s) { this->size = s; this->bBoard->setSize(this->size, this->size); } 28 28 void setOmega(float w) { this->omega = w; } … … 34 34 private: 35 35 Billboard* bBoard; 36 Vector position;36 //Vector position; 37 37 Color color; 38 38 float angle;
Note: See TracChangeset
for help on using the changeset viewer.