Example #1
0
        /// <summary>
        /// Constructs a <see cref="Scene"/>.
        /// </summary>
        public Scene()
        {
            mActorBatches = new List <ActorBatch>();
            mLights       = new List <Light>();

            mPostProcessing = new PostProcessing();
        }
Example #2
0
        /// <summary>
        /// Constructs a <see cref="Scene"/>.
        /// </summary>
        public Scene()
        {
            mActorBatches = new List <ActorBatch>();

            mPostProcessing = new PostProcessing();
            mSky            = new Sky();
            mFog            = new Fog();
        }
Example #3
0
 public Scene(SerializationInfo info, StreamingContext context)
 {
     mActorBatches         = (List <ActorBatch>)info.GetValue("mActorBatches", typeof(List <ActorBatch>));
     mQuadTree             = (QuadTree <Actor>)info.GetValue("mQuadTree", typeof(QuadTree <Actor>));
     mVisibilityGraph      = (VisibilityGraph)info.GetValue("mVisibilityGraph", typeof(VisibilityGraph));
     mBruteVisibilityGraph = (VisibilityGraph)info.GetValue("mBruteVisibilityGraph", typeof(VisibilityGraph));
     mPostProcessing       = (PostProcessing)info.GetValue("mPostProcessing", typeof(PostProcessing));
     mSky      = (Sky)info.GetValue("mSky", typeof(Sky));
     mFog      = (Fog)info.GetValue("mFog", typeof(Fog));
     mTerrain  = (Terrain)info.GetValue("mTerrain", typeof(Terrain));
     mDisposed = (bool)info.GetValue("mDisposed", typeof(bool));
 }