Пример #1
0
Vec2f Node2D::parentToScreen( const Vec2f &pt ) const
{
    Vec2f p = pt;

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

    return p;
}
Пример #2
0
vec2 Node2D::parentToScreen( const vec2 &pt ) const
{
	vec2 p = pt;

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

	return p;
}