예제 #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="obj">Object</param>
        /// <param name="description">Description</param>
        protected SceneObject(object obj, SceneObjectDescription description)
        {
            this.baseObject = obj;

            this.Active  = true;
            this.Visible = true;
            this.Order   = 0;

            this.Name            = description.Name;
            this.Static          = description.Static;
            this.CastShadow      = description.CastShadow;
            this.DeferredEnabled = description.DeferredEnabled;
            this.DepthEnabled    = description.DepthEnabled;
            this.AlphaEnabled    = description.AlphaEnabled;
            this.Usage           = SceneObjectUsages.None;
        }
예제 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="scene">Scene</param>
 /// <param name="description">Description</param>
 protected Drawable(Scene scene, SceneObjectDescription description) : base(scene, description)
 {
 }