Beispiel #1
0
        /// <summary>
        /// Construct a SceneGraph.
        /// </summary>
        public SceneGraph(SceneGraphFlags flags)
        {
            _Flags = flags;

            if ((_Flags & SceneGraphFlags.Lighting) != 0)
            {
                _LightManager = new SceneLightManager();
            }
        }
Beispiel #2
0
        /// <summary>
        /// Construct a SceneGraph.
        /// </summary>
        /// <param name="otherScene">
        /// The <see cref="SceneGraph"/> to be copied.
        /// </param>
        public SceneGraph(SceneGraph otherScene, SceneGraphFlags flags)
            : this(flags)
        {
            if (otherScene == null)
            {
                throw new ArgumentNullException("otherScene");
            }

            CurrentView      = otherScene.CurrentView;
            ProjectionMatrix = otherScene.ProjectionMatrix;
            ViewMatrix       = otherScene.ViewMatrix;
            SceneRoot        = otherScene.SceneRoot;
        }