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
- HttpCacheVary.cs
- ConstructorNeedsTagAttribute.cs
- NamespaceList.cs
- Tablet.cs
- RegexMatchCollection.cs
- HtmlHead.cs
- XamlParser.cs
- StylusPointPropertyUnit.cs
- Drawing.cs
- Int64.cs
- ColorTransform.cs
- PrtTicket_Public_Simple.cs
- CustomTypeDescriptor.cs
- PenThreadPool.cs
- SettingsAttributeDictionary.cs
- ResourceProviderFactory.cs
- Main.cs
- PlaceHolder.cs
- OleDbRowUpdatedEvent.cs
- OperationContext.cs
- Char.cs
- XmlSerializationReader.cs
- precedingquery.cs
- SQLInt64.cs
- StandardToolWindows.cs
- TypeInitializationException.cs
- complextypematerializer.cs
- Pair.cs
- SimpleTypesSurrogate.cs
- SecurityDescriptor.cs
- AssemblyFilter.cs
- LinqTreeNodeEvaluator.cs
- ViewStateModeByIdAttribute.cs
- HttpModulesSection.cs
- DBCommand.cs
- EventHandlersStore.cs
- GlyphRun.cs
- Match.cs
- ToolStripItemDesigner.cs
- LinqDataSourceDeleteEventArgs.cs
- SizeIndependentAnimationStorage.cs
- NativeMethods.cs
- FormsAuthenticationTicket.cs
- XmlSchemaAttributeGroupRef.cs
- IsolationInterop.cs
- AudioFormatConverter.cs
- UserControlParser.cs
- DataGridPageChangedEventArgs.cs
- DataGridViewCellStateChangedEventArgs.cs
- SchemaTableOptionalColumn.cs
- CommandField.cs
- SpecialTypeDataContract.cs
- SqlNodeAnnotation.cs
- DataMisalignedException.cs
- LeftCellWrapper.cs
- IndexObject.cs
- ScriptRef.cs
- TreeNodeClickEventArgs.cs
- ReaderWriterLock.cs
- NamespaceCollection.cs
- ReverseInheritProperty.cs
- RecognizerStateChangedEventArgs.cs
- ConfigXmlCDataSection.cs
- ClientScriptItem.cs
- DelegateArgumentReference.cs
- PartialTrustValidationBehavior.cs
- DelayDesigner.cs
- HiddenField.cs
- AuthenticationServiceManager.cs
- StrokeSerializer.cs
- BindingContext.cs
- ResourceWriter.cs
- BasePattern.cs
- FactoryRecord.cs
- AVElementHelper.cs
- ToolboxItemCollection.cs
- MobilePage.cs
- StreamWithDictionary.cs
- ListBox.cs
- ImageConverter.cs
- BrowserTree.cs
- Tokenizer.cs
- IndexOutOfRangeException.cs
- CursorConverter.cs
- WebPartEditorCancelVerb.cs
- XmlNamedNodeMap.cs
- SqlFacetAttribute.cs
- GAC.cs
- NavigationWindow.cs
- StringDictionary.cs
- StringPropertyBuilder.cs
- DbDeleteCommandTree.cs
- DataGridViewIntLinkedList.cs
- handlecollector.cs
- XmlArrayItemAttribute.cs
- StatusBar.cs
- IdleTimeoutMonitor.cs
- FixedSOMElement.cs
- TrimSurroundingWhitespaceAttribute.cs
- XmlQuerySequence.cs