Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / DirectionalLight.cs / 1305600 / 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
- Rotation3DAnimationBase.cs
- RemotingAttributes.cs
- StringUtil.cs
- TimeSpanConverter.cs
- ObjectAnimationUsingKeyFrames.cs
- UnsafeNativeMethods.cs
- TemplateControlParser.cs
- ManifestBasedResourceGroveler.cs
- Registry.cs
- SqlMethodAttribute.cs
- SourceSwitch.cs
- EncoderParameter.cs
- ApplicationInfo.cs
- ViewService.cs
- Interfaces.cs
- ProcessExitedException.cs
- SHA256Managed.cs
- Evidence.cs
- ContentOperations.cs
- CodeArrayCreateExpression.cs
- Subtree.cs
- ConfigurationValues.cs
- SwitchLevelAttribute.cs
- FileCodeGroup.cs
- TableAdapterManagerMethodGenerator.cs
- HtmlProps.cs
- SelectorItemAutomationPeer.cs
- MailMessage.cs
- EmptyStringExpandableObjectConverter.cs
- LinqDataSourceView.cs
- ProfileProvider.cs
- EventProviderTraceListener.cs
- DateRangeEvent.cs
- CircleHotSpot.cs
- GroupBox.cs
- HtmlGenericControl.cs
- AttachmentService.cs
- DataRowCollection.cs
- QuotedPrintableStream.cs
- TableLayoutStyle.cs
- ScopedKnownTypes.cs
- AlphaSortedEnumConverter.cs
- ContentAlignmentEditor.cs
- EDesignUtil.cs
- NativeRecognizer.cs
- LocalizabilityAttribute.cs
- DomainUpDown.cs
- TableRowGroup.cs
- CodeGroup.cs
- CodeSnippetStatement.cs
- CultureSpecificCharacterBufferRange.cs
- RadioButtonRenderer.cs
- GradientStop.cs
- EventNotify.cs
- PerfCounters.cs
- PersonalizationStateInfo.cs
- ApplicationInfo.cs
- ParamArrayAttribute.cs
- EditingCommands.cs
- DoWhileDesigner.xaml.cs
- NativeRecognizer.cs
- TranslateTransform3D.cs
- DataGridAutoFormatDialog.cs
- XmlHelper.cs
- UrlParameterWriter.cs
- Registry.cs
- IndexedString.cs
- FontStretchConverter.cs
- CalculatedColumn.cs
- COM2Properties.cs
- TextModifier.cs
- ClientBuildManager.cs
- While.cs
- ProvideValueServiceProvider.cs
- PagesChangedEventArgs.cs
- PathGeometry.cs
- RegexCapture.cs
- ContentControl.cs
- XmlBaseWriter.cs
- Mapping.cs
- MsmqInputMessage.cs
- ErrorRuntimeConfig.cs
- safex509handles.cs
- CompressedStack.cs
- TimeIntervalCollection.cs
- XPathBinder.cs
- DoubleKeyFrameCollection.cs
- WindowsListBox.cs
- SqlAliaser.cs
- DictionaryItemsCollection.cs
- Expr.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DesignerActionGlyph.cs
- SemanticTag.cs
- ProtectedConfiguration.cs
- MailWebEventProvider.cs
- ParenthesizePropertyNameAttribute.cs
- MachineKeyConverter.cs
- WhitespaceRule.cs
- PaintValueEventArgs.cs