|
@@ -254,8 +254,10 @@ namespace oxygine
|
|
|
|
|
|
|
|
//converts local position to Stage
|
|
//converts local position to Stage
|
|
|
Vector2 local2stage(const Vector2& pos = Vector2(0, 0), Actor* stage = 0) const;
|
|
Vector2 local2stage(const Vector2& pos = Vector2(0, 0), Actor* stage = 0) const;
|
|
|
|
|
+ Vector2 local2stage(float x, float y, Actor* stage = 0) const;
|
|
|
//converts global position (position in Stage space) to local space
|
|
//converts global position (position in Stage space) to local space
|
|
|
- Vector2 stage2local(const Vector2& pos, Actor* stage = 0) const;
|
|
|
|
|
|
|
+ Vector2 stage2local(const Vector2& pos = Vector2(0, 0), Actor* stage = 0) const;
|
|
|
|
|
+ Vector2 stage2local(float x, float y, Actor* stage = 0) const;
|
|
|
|
|
|
|
|
typedef Property2Args<float, Vector2, const Vector2&, Actor, &Actor::getPosition, &Actor::setPosition> TweenPosition;
|
|
typedef Property2Args<float, Vector2, const Vector2&, Actor, &Actor::getPosition, &Actor::setPosition> TweenPosition;
|
|
|
typedef Property<float, float, Actor, &Actor::getX, &Actor::setX> TweenX;
|
|
typedef Property<float, float, Actor, &Actor::getX, &Actor::setX> TweenX;
|