コード例 #1
0
ファイル: DuelNode.cpp プロジェクト: jiazhipeng03/Duel-Engine
	DNode* DNode::createChild( const DString& name )
	{
		DNode* n = createChildImpl(name);
		n->setParent(this);
		mChildren.insert(n);
		signalAttached(this, n);
		return n;
	}
コード例 #2
0
ファイル: DuelNode.cpp プロジェクト: jiazhipeng03/Duel-Engine
	DNode* DNode::createChild()
	{
		DNode* n = createChildImpl();
		n->setParent(this);
		mChildren.insert(n);
		signalAttached(this, n);
		return n;
	}
コード例 #3
0
    //-----------------------------------------------------------------------
    Node* Node::createChild(const String& name, const Vector3& translate, const Quaternion& rotate)
    {
        Node* newNode = createChildImpl(name);
        newNode->translate(translate);
        newNode->rotate(rotate);
        this->addChild(newNode);

        return newNode;
    }
コード例 #4
0
ファイル: OgreNode.cpp プロジェクト: guozanhua/github
    //-----------------------------------------------------------------------
    Node* Node::createChild(const Vector3& inTranslate, const Quaternion& inRotate)
    {
        Node* newNode = createChildImpl();
        newNode->translate(inTranslate);
        newNode->rotate(inRotate);
        this->addChild(newNode);

        return newNode;
    }
コード例 #5
0
ファイル: Node.cpp プロジェクト: jhuang2github/JHRenderEngine
Node* Node::createChild(const Vector3& translate,
                        const Quaternion& rotate,
                        const Vector3& scale) {
    Node* node = createChildImpl();
    node->translate(translate);
    node->rotate(rotate);
    node->scale(scale);
    addChild(node);
    return node;
}