Changeset 8035 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- May 31, 2006, 4:20:51 PM (19 years ago)
- Location:
- trunk/src/lib/graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/model.h
r7193 r8035 25 25 #include "base_object.h" 26 26 #include "vector.h" 27 28 using namespace std;29 27 30 28 -
trunk/src/lib/graphics/render2D/element_2d.cc
r7919 r8035 299 299 300 300 /** 301 * @brief updates the Rel - Coordinate in x-direction 302 * @param x the x coordinate 303 */ 304 void Element2D::setRelCoorX2D(float x) 305 { 306 this->setRelCoor2D(Vector2D(x, this->relCoordinate.y)); 307 } 308 309 /** 310 * @brief updates the Rel - Coordinate in y-direction 311 * @param y the y coordinate 312 */ 313 void Element2D::setRelCoorY2D(float y) 314 { 315 this->setRelCoor2D(Vector2D(this->relCoordinate.x, y)); 316 } 317 318 319 /** 301 320 * @brief sets the Relative coordinate to the parent in Pixels 302 321 * @param x the relCoord X … … 388 407 this->setAbsCoor2D(Vector2D(x, y)); 389 408 } 409 410 /** 411 * @brief updates the Abs - Coordinate in x-direction 412 * @param x the x coordinate 413 */ 414 void Element2D::setAbsCoorX2D(float x) 415 { 416 this->setAbsCoor2D(x, this->getAbsCoor2D().y); 417 } 418 419 /** 420 * @brief updates the Abs - Coordinate in y-direction 421 * @param y the y coordinate 422 */ 423 void Element2D::setAbsCoorY2D(float y) 424 { 425 this->setAbsCoor2D(this->getAbsCoor2D().x, y); 426 } 427 390 428 391 429 /** -
trunk/src/lib/graphics/render2D/element_2d.h
r7919 r8035 143 143 public: 144 144 void setRelCoor2D (const Vector2D& relCoord); 145 void setRelCoorX2D(float x); 146 void setRelCoorY2D(float y); 145 147 void setRelCoor2D (float x, float y); 146 148 void setRelCoor2Dpx (int x, int y); … … 155 157 void setAbsCoor2D (const Vector2D& absCoord); 156 158 void setAbsCoor2D (float x, float y); 159 void setAbsCoorX2D(float x); 160 void setAbsCoorY2D(float y); 157 161 void setAbsCoor2Dpx (int x, int y); 158 162 void setAbsCoorSoft2D (const Vector2D& absCoordSoft, float bias = 1.0);
Note: See TracChangeset
for help on using the changeset viewer.