Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media3D / DirectionalLight.cs / 1 / DirectionalLight.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D directional light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/18/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Composition; using MS.Internal; using System.ComponentModel.Design.Serialization; using System.Windows.Markup; namespace System.Windows.Media.Media3D { ////// Directional lights have no position in space and project their light along a /// particular direction, specified by the vector that defines it. /// public sealed partial class DirectionalLight : Light { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a white light looking down the positive z axis. /// public DirectionalLight() { } ////// Constructor. /// /// Diffuse color of the new light. /// Direction of the new light. public DirectionalLight(Color diffuseColor, Vector3D direction) { Color = diffuseColor; Direction = direction; } #endregion Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- //------------------------------------------------------ // // Public Events // //------------------------------------------------------ //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D directional light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/18/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Composition; using MS.Internal; using System.ComponentModel.Design.Serialization; using System.Windows.Markup; namespace System.Windows.Media.Media3D { ////// Directional lights have no position in space and project their light along a /// particular direction, specified by the vector that defines it. /// public sealed partial class DirectionalLight : Light { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a white light looking down the positive z axis. /// public DirectionalLight() { } ////// Constructor. /// /// Diffuse color of the new light. /// Direction of the new light. public DirectionalLight(Color diffuseColor, Vector3D direction) { Color = diffuseColor; Direction = direction; } #endregion Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- //------------------------------------------------------ // // Public Events // //------------------------------------------------------ //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Bits.cs
- RequestCacheValidator.cs
- StateRuntime.cs
- HtmlButton.cs
- RequestCachePolicyConverter.cs
- XMLSchema.cs
- HostingEnvironmentException.cs
- WebContext.cs
- RecognitionEventArgs.cs
- SchemaImporterExtensionElementCollection.cs
- RepeaterCommandEventArgs.cs
- PresentationTraceSources.cs
- CustomAttributeFormatException.cs
- DbConvert.cs
- ImageKeyConverter.cs
- TypeUnloadedException.cs
- ReferencedType.cs
- TaskSchedulerException.cs
- RootDesignerSerializerAttribute.cs
- KeyPressEvent.cs
- StickyNote.cs
- XmlCustomFormatter.cs
- TextEmbeddedObject.cs
- RequestChannel.cs
- StateItem.cs
- LineProperties.cs
- KeyedHashAlgorithm.cs
- LocalFileSettingsProvider.cs
- NetSectionGroup.cs
- ToolStripDropDownButton.cs
- CollectionsUtil.cs
- Bitmap.cs
- ImmComposition.cs
- SelectionPattern.cs
- EpmCustomContentSerializer.cs
- XPathNodeIterator.cs
- translator.cs
- PathData.cs
- OperationContext.cs
- ActivityDesignerResources.cs
- ScriptDescriptor.cs
- DocumentGrid.cs
- DataTransferEventArgs.cs
- ExtendedProperty.cs
- NullReferenceException.cs
- CategoryValueConverter.cs
- NamedPermissionSet.cs
- ClientType.cs
- XmlSchemaAll.cs
- ResolvePPIDRequest.cs
- RangeValuePattern.cs
- Pen.cs
- EvidenceTypeDescriptor.cs
- EnumerableValidator.cs
- OpenTypeLayoutCache.cs
- ServiceObjectContainer.cs
- UniqueIdentifierService.cs
- Html32TextWriter.cs
- ExpandSegmentCollection.cs
- StateBag.cs
- IssuedTokenClientCredential.cs
- FixedSOMLineCollection.cs
- RedirectionProxy.cs
- FontStretches.cs
- XmlAttributeOverrides.cs
- NetworkCredential.cs
- TreeNodeEventArgs.cs
- AttributeData.cs
- ImageSourceValueSerializer.cs
- StreamWriter.cs
- WebRequest.cs
- CharacterBuffer.cs
- SecurityUtils.cs
- CancellationScope.cs
- Panel.cs
- MetadataPropertyAttribute.cs
- PresentationAppDomainManager.cs
- SelectedCellsChangedEventArgs.cs
- WebPartVerbCollection.cs
- Matrix3D.cs
- ItemChangedEventArgs.cs
- SchemaImporter.cs
- MasterPage.cs
- DbConnectionStringCommon.cs
- BypassElementCollection.cs
- NativeMethods.cs
- EntityReference.cs
- EntityDataSourceDesignerHelper.cs
- XmlSchemaSimpleType.cs
- Variable.cs
- SerializationInfoEnumerator.cs
- RepeaterItemEventArgs.cs
- SelectionEditingBehavior.cs
- ActivationProxy.cs
- ServiceElementCollection.cs
- XmlSubtreeReader.cs
- RegexCompilationInfo.cs
- QuaternionValueSerializer.cs
- CategoryGridEntry.cs
- InstanceDataCollectionCollection.cs