Changeset 7492
- Timestamp:
- Sep 26, 2010, 10:38:57 PM (14 years ago)
- Location:
- code/trunk/src/orxonox/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/graphics/Billboard.cc
r7491 r7492 46 46 47 47 this->colour_ = ColourValue::White; 48 this->rotation_ = 0;48 //this->rotation_ = 0; 49 49 50 50 this->registerVariables(); … … 66 66 XMLPortParam(Billboard, "material", setMaterial, getMaterial, xmlelement, mode); 67 67 XMLPortParam(Billboard, "colour", setColour, getColour, xmlelement, mode).defaultValues(ColourValue::White); 68 XMLPortParam(Billboard, "rotation", setRotation, getRotation, xmlelement, mode).defaultValues(0);68 //XMLPortParam(Billboard, "rotation", setRotation, getRotation, xmlelement, mode).defaultValues(0); 69 69 } 70 70 … … 73 73 registerVariable(this->material_, VariableDirection::ToClient, new NetworkCallback<Billboard>(this, &Billboard::changedMaterial)); 74 74 registerVariable(this->colour_, VariableDirection::ToClient, new NetworkCallback<Billboard>(this, &Billboard::changedColour)); 75 registerVariable(this->rotation_, VariableDirection::ToClient, new NetworkCallback<Billboard>(this, &Billboard::changedRotation));75 //registerVariable(this->rotation_, VariableDirection::ToClient, new NetworkCallback<Billboard>(this, &Billboard::changedRotation)); 76 76 } 77 77 … … 89 89 this->attachOgreObject(this->billboard_.getBillboardSet()); 90 90 this->billboard_.setVisible(this->isVisible()); 91 this->changedRotation();91 //this->changedRotation(); 92 92 } 93 93 } … … 114 114 } 115 115 116 /* 116 117 void Billboard::changedRotation() 117 118 { … … 127 128 } 128 129 } 130 */ 129 131 130 132 void Billboard::changedVisibility() -
code/trunk/src/orxonox/graphics/Billboard.h
r7491 r7492 62 62 { return this->colour_; } 63 63 64 /* 64 65 inline void setRotation(const Radian& rotation) 65 66 { this->rotation_ = rotation; this->changedRotation(); } 66 67 inline const Radian& getRotation() const 67 68 { return this->rotation_; } 69 */ 68 70 69 71 virtual void setTeamColour(const ColourValue& colour) … … 79 81 void registerVariables(); 80 82 void changedMaterial(); 81 void changedRotation();83 //void changedRotation(); 82 84 83 85 BillboardSet billboard_; 84 86 std::string material_; 85 87 ColourValue colour_; 86 Radian rotation_;88 //Radian rotation_; 87 89 }; 88 90 }
Note: See TracChangeset
for help on using the changeset viewer.