Esempio n. 1
0
Vec2f Node2D::screenToParent( const Vec2f &pt ) const
{
    Vec2f p = pt;

    Node2DRef node = getParent<Node2D>();
    if(node) p = node->screenToObject(p);

    return p;
}
Esempio n. 2
0
vec2 Node2D::screenToParent( const vec2 &pt ) const
{
	vec2 p = pt;

	Node2DRef node = getParent<Node2D>();
	if( node ) p = node->screenToObject( p );

	return p;
}