コード例 #1
0
ファイル: SceneManager.cs プロジェクト: deobald/midget
        public IObject3D Group(ArrayList objects)
        {
            IObject3D newGroup = new GroupObject();

            // add this group to the scene
            AddObject(newGroup);

            // add all the children to the group
            foreach (IObject3D obj in objects)
            {
                newGroup.AddChild(obj);
            }

            return newGroup;
        }
コード例 #2
0
ファイル: SceneManager.cs プロジェクト: deobald/midget
        public IObject3D Group(ArrayList objects)
        {
            IObject3D newGroup = new GroupObject();

            // add this group to the scene
            AddObject(newGroup);

            // add all the children to the group
            foreach (IObject3D obj in objects)
            {
                newGroup.AddChild(obj);
            }

            return(newGroup);
        }