Пример #1
0
        public void SetAnimationEvaluator(AnimEvaluator pEvaluator)
        {
            var current = GetAnimationEvaluator();

            if (current != null)
            {
                SrcObjects.Remove(current);
            }
            SrcObjects.Add(pEvaluator);
        }
Пример #2
0
        public Scene(string name = "")
            : base(name)
        {
            RootNode = new Node();

            Poses     = SrcObjects.CreateCollectionView <Pose>();
            Materials = SrcObjects.CreateCollectionView <SurfaceMaterial>();
            Textures  = SrcObjects.CreateCollectionView <Texture>();
            Nodes     = SrcObjects.CreateCollectionView <Node>();

            SrcObjects.Add(new GlobalSettings());
            SetAnimationEvaluator(new AnimEvaluator());
        }