Changeset 6520 in orxonox.OLD for branches/network/src/world_entities
- Timestamp:
- Jan 18, 2006, 12:58:14 AM (19 years ago)
- Location:
- branches/network/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/image_entity.cc
r6516 r6520 68 68 this->setLayer(E2D_LAYER_TOP); 69 69 this->setRotationSpeed(5); 70 this->setSize(GraphicsEngine::getInstance()->getResolutionX()/10.0 );70 this->setSize(GraphicsEngine::getInstance()->getResolutionX()/10.0, GraphicsEngine::getInstance()->getResolutionY()/10.0); 71 71 72 72 this->setBindNode(this); … … 99 99 * @param size the size in pixels 100 100 */ 101 void ImageEntity::setSize(float size )101 void ImageEntity::setSize(float sizeX, float sizeY) 102 102 { 103 this->setSize2D(size /2, size/2);103 this->setSize2D(sizeX, sizeY); 104 104 } 105 105 -
branches/network/src/world_entities/image_entity.h
r6514 r6520 30 30 void loadParams(const TiXmlElement* root); 31 31 32 void setSize(float size );32 void setSize(float sizeX, float sizeY); 33 33 void setTexture(const char* textureFile); 34 34 /** @param rotationSpeed the speed at what the crosshair should rotate */
Note: See TracChangeset
for help on using the changeset viewer.