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
- AssertFilter.cs
- RelationshipManager.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- LifetimeServices.cs
- TableCellsCollectionEditor.cs
- CodeCommentStatement.cs
- mediaeventargs.cs
- BaseAsyncResult.cs
- CertificateManager.cs
- RegistryConfigurationProvider.cs
- ExpandButtonVisibilityConverter.cs
- ArrayTypeMismatchException.cs
- OptimalTextSource.cs
- Oid.cs
- StreamGeometryContext.cs
- StylusPlugInCollection.cs
- SystemIPGlobalProperties.cs
- TrackingProfileSerializer.cs
- XNodeNavigator.cs
- ProxyElement.cs
- LateBoundBitmapDecoder.cs
- XmlHierarchyData.cs
- ActionFrame.cs
- SqlFormatter.cs
- LassoSelectionBehavior.cs
- EntityTypeEmitter.cs
- LinkButton.cs
- TreeNodeEventArgs.cs
- LinqDataSourceStatusEventArgs.cs
- ProgressBarBrushConverter.cs
- HwndKeyboardInputProvider.cs
- MarshalByValueComponent.cs
- UserInitiatedNavigationPermission.cs
- IListConverters.cs
- WinInetCache.cs
- DecimalConverter.cs
- GeneralTransform3DGroup.cs
- ResXResourceReader.cs
- HashCodeCombiner.cs
- JapaneseCalendar.cs
- StrokeNode.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- DataSourceBooleanViewSchemaConverter.cs
- DeferredReference.cs
- ElementNotEnabledException.cs
- DataBoundControl.cs
- EarlyBoundInfo.cs
- ServiceHostFactory.cs
- EditorPartChrome.cs
- ReadOnlyCollectionBuilder.cs
- SafeNativeMethods.cs
- Soap12ProtocolReflector.cs
- _DisconnectOverlappedAsyncResult.cs
- DataViewManager.cs
- ColumnMapVisitor.cs
- DynamicActionMessageFilter.cs
- SqlConnectionPoolGroupProviderInfo.cs
- XPathItem.cs
- SHA256Managed.cs
- SqlCharStream.cs
- TemplateEditingFrame.cs
- RayMeshGeometry3DHitTestResult.cs
- MissingMethodException.cs
- TextProperties.cs
- DataRecord.cs
- IdnElement.cs
- ActionFrame.cs
- TrackingMemoryStream.cs
- DoubleMinMaxAggregationOperator.cs
- OdbcConnectionStringbuilder.cs
- DataGridViewRowHeaderCell.cs
- TextEffectCollection.cs
- ReferenceConverter.cs
- HtmlGenericControl.cs
- PartManifestEntry.cs
- VBIdentifierDesigner.xaml.cs
- SqlClientPermission.cs
- DataTrigger.cs
- ReadOnlyTernaryTree.cs
- EntityDataReader.cs
- XD.cs
- MulticastIPAddressInformationCollection.cs
- FixedSOMGroup.cs
- ExtractedStateEntry.cs
- EventLogPropertySelector.cs
- ApplicationId.cs
- InheritedPropertyChangedEventArgs.cs
- HttpResponse.cs
- DropTarget.cs
- ColumnResult.cs
- CompilationSection.cs
- ImageFormatConverter.cs
- StandardOleMarshalObject.cs
- AutomationPatternInfo.cs
- LongTypeConverter.cs
- ProxyWebPartManagerDesigner.cs
- RowToParametersTransformer.cs
- ListControl.cs
- MailSettingsSection.cs
- DataGridViewCheckBoxCell.cs