/// <summary> /// Deserializes this SceneHints. /// </summary> /// <param name="input">Input to read from</param> public void Read(ISavableReader input) { _cullHint = input.ReadEnum <CullHint>(); _pickHint = input.ReadEnum <PickingHint>(); _lightHint = input.ReadEnum <LightCombineHint>(); _transHint = input.ReadEnum <TransparencyType>(); _bucketType = input.ReadEnum <RenderBucketType>(); _orthoOrder = input.ReadInt(); }
/// <summary> /// Creates a new scene hints object with the specified source hintable. /// </summary> /// <param name="source">Source hintable</param> public SceneHints(IHintable source) { _source = source; _cullHint = CullHint.Inherit; _lightHint = LightCombineHint.Inherit; _transHint = TransparencyType.Default; _pickHint = PickingHint.Inherit; _orthoOrder = 0; }