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
- OperationCanceledException.cs
- EastAsianLunisolarCalendar.cs
- ApplicationFileParser.cs
- MetadataUtil.cs
- RewritingSimplifier.cs
- CaseCqlBlock.cs
- HtmlMeta.cs
- ForEachAction.cs
- LedgerEntryCollection.cs
- XmlTextWriter.cs
- ConnectionStringsExpressionBuilder.cs
- ScriptingJsonSerializationSection.cs
- DesignTimeDataBinding.cs
- ServiceBehaviorElement.cs
- DesignerForm.cs
- HashUtility.cs
- AppModelKnownContentFactory.cs
- Timer.cs
- BitmapSizeOptions.cs
- LogFlushAsyncResult.cs
- WindowsGraphicsWrapper.cs
- SettingsAttributes.cs
- DataGridView.cs
- ipaddressinformationcollection.cs
- ColumnReorderedEventArgs.cs
- XmlHierarchyData.cs
- Timer.cs
- AuthenticationService.cs
- MethodExpr.cs
- InkSerializer.cs
- DefaultBinder.cs
- DataGridParentRows.cs
- StoreAnnotationsMap.cs
- AnimationLayer.cs
- Debugger.cs
- ListenerElementsCollection.cs
- KeyPullup.cs
- DataPagerFieldItem.cs
- TemplateKey.cs
- ObjectDataSourceFilteringEventArgs.cs
- WsdlImporterElementCollection.cs
- RelationshipConstraintValidator.cs
- RijndaelCryptoServiceProvider.cs
- MatrixTransform.cs
- documentsequencetextcontainer.cs
- SmtpDigestAuthenticationModule.cs
- PrePostDescendentsWalker.cs
- ResourceIDHelper.cs
- DocumentDesigner.cs
- TextWriterEngine.cs
- HttpCookiesSection.cs
- PipelineModuleStepContainer.cs
- RegisteredArrayDeclaration.cs
- Component.cs
- COMException.cs
- FacetValueContainer.cs
- ObjectSet.cs
- Triplet.cs
- EditorZoneBase.cs
- AttachmentService.cs
- TreeNodeEventArgs.cs
- CriticalHandle.cs
- PropertyChangedEventManager.cs
- ValidationSummaryDesigner.cs
- ResourceReferenceKeyNotFoundException.cs
- SequentialOutput.cs
- Fonts.cs
- OleAutBinder.cs
- Geometry.cs
- DelegateSerializationHolder.cs
- BitmapDownload.cs
- ExtendedTransformFactory.cs
- Constants.cs
- ListBase.cs
- ServiceSecurityAuditBehavior.cs
- RoutedEventConverter.cs
- OrElse.cs
- PropertyMetadata.cs
- RowCache.cs
- Set.cs
- FloatMinMaxAggregationOperator.cs
- CellLabel.cs
- XmlProcessingInstruction.cs
- EmbeddedMailObject.cs
- EventWaitHandle.cs
- BaseDataListPage.cs
- AnonymousIdentificationSection.cs
- DataDesignUtil.cs
- XmlNamespaceDeclarationsAttribute.cs
- Content.cs
- ArrayEditor.cs
- GPPOINT.cs
- FigureParagraph.cs
- ReceiveMessageContent.cs
- TemplateEditingService.cs
- ApplicationManager.cs
- MasterPageCodeDomTreeGenerator.cs
- PingOptions.cs
- LoginView.cs
- TraceShell.cs