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
- GiveFeedbackEvent.cs
- EditableLabelControl.cs
- PackageFilter.cs
- DefaultProxySection.cs
- ProviderIncompatibleException.cs
- ExceptionDetail.cs
- DynamicPhysicalDiscoSearcher.cs
- ErrorFormatterPage.cs
- _SecureChannel.cs
- X509WindowsSecurityToken.cs
- TraceLevelStore.cs
- XmlSchemaAnnotation.cs
- DefaultBindingPropertyAttribute.cs
- PagePropertiesChangingEventArgs.cs
- EventItfInfo.cs
- HtmlControlAdapter.cs
- WebPartZoneBaseDesigner.cs
- ExtensionDataObject.cs
- NavigatorInput.cs
- _PooledStream.cs
- RawStylusInputCustomData.cs
- KeyTimeConverter.cs
- SapiGrammar.cs
- PkcsUtils.cs
- WindowsRichEdit.cs
- EventLogReader.cs
- CommonObjectSecurity.cs
- Span.cs
- StreamInfo.cs
- backend.cs
- ServicePoint.cs
- XsdValidatingReader.cs
- SqlNotificationRequest.cs
- TreeNodeSelectionProcessor.cs
- CategoryNameCollection.cs
- HttpContextBase.cs
- UnsafeNativeMethods.cs
- ListViewInsertionMark.cs
- XmlAttributeCollection.cs
- ContentValidator.cs
- XmlDocument.cs
- CompiledQueryCacheKey.cs
- FaultHandlingFilter.cs
- TypeInitializationException.cs
- BinaryCommonClasses.cs
- BrushMappingModeValidation.cs
- Invariant.cs
- DesignBindingPicker.cs
- HtmlLink.cs
- Misc.cs
- RootDesignerSerializerAttribute.cs
- TableAutomationPeer.cs
- ExpressionBuilderContext.cs
- DragStartedEventArgs.cs
- ParserStreamGeometryContext.cs
- MarkupExtensionReturnTypeAttribute.cs
- ClientConfigPaths.cs
- SqlDataSourceQueryConverter.cs
- SrgsRuleRef.cs
- DataGridViewColumnCollection.cs
- AutomationAttributeInfo.cs
- SchemaNotation.cs
- ChannelManager.cs
- GridViewColumn.cs
- COM2ColorConverter.cs
- EventLogger.cs
- CryptoKeySecurity.cs
- PrintingPermissionAttribute.cs
- DesignerTransactionCloseEvent.cs
- SourceSwitch.cs
- AddInSegmentDirectoryNotFoundException.cs
- TagPrefixCollection.cs
- UniqueIdentifierService.cs
- ButtonBaseAutomationPeer.cs
- ColumnMapVisitor.cs
- baseshape.cs
- _Win32.cs
- DebugView.cs
- DataGridViewRowsAddedEventArgs.cs
- ByteStreamGeometryContext.cs
- ValueUtilsSmi.cs
- SecurityPolicySection.cs
- PaginationProgressEventArgs.cs
- BitmapEffectState.cs
- TextRangeEditLists.cs
- IntPtr.cs
- ListSourceHelper.cs
- InstanceKey.cs
- D3DImage.cs
- TextEditorThreadLocalStore.cs
- XmlSchemaComplexContentExtension.cs
- ObjectDataSourceSelectingEventArgs.cs
- AnimationStorage.cs
- SoapExtensionImporter.cs
- XmlSchemaAttribute.cs
- PointLight.cs
- InlineObject.cs
- OutputCacheSettings.cs
- HtmlControl.cs
- _BasicClient.cs