Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- Rfc2898DeriveBytes.cs
- CellQuery.cs
- ViewPort3D.cs
- DynamicDocumentPaginator.cs
- XamlWriter.cs
- XPathMultyIterator.cs
- CharStorage.cs
- TableAdapterManagerHelper.cs
- RegexWorker.cs
- SQLInt64.cs
- ButtonFlatAdapter.cs
- MultipleViewProviderWrapper.cs
- figurelength.cs
- MediaSystem.cs
- ActiveXContainer.cs
- AttributeProviderAttribute.cs
- LineVisual.cs
- NotImplementedException.cs
- TypedDatasetGenerator.cs
- FormsAuthenticationCredentials.cs
- NativeMethods.cs
- StaticExtension.cs
- IProducerConsumerCollection.cs
- StackBuilderSink.cs
- OperatingSystem.cs
- WizardForm.cs
- XmlQualifiedNameTest.cs
- CacheMemory.cs
- DataServiceHost.cs
- XNodeNavigator.cs
- DbConnectionFactory.cs
- OrderedHashRepartitionEnumerator.cs
- FrameAutomationPeer.cs
- XPathAncestorIterator.cs
- WizardStepBase.cs
- XmlArrayItemAttributes.cs
- ImmutableObjectAttribute.cs
- Focus.cs
- ProvideValueServiceProvider.cs
- ConfigsHelper.cs
- DataMemberConverter.cs
- StatusBar.cs
- CaseInsensitiveHashCodeProvider.cs
- HttpServerProtocol.cs
- XmlAttributeOverrides.cs
- GrammarBuilderPhrase.cs
- RSAPKCS1SignatureFormatter.cs
- SymmetricKeyWrap.cs
- SingleConverter.cs
- DataSet.cs
- WorkflowItemsPresenter.cs
- XPathMessageFilterElement.cs
- XsdDuration.cs
- GeometryDrawing.cs
- PropertyOrder.cs
- StrokeCollectionConverter.cs
- Function.cs
- EnumerationRangeValidationUtil.cs
- BitmapSizeOptions.cs
- SafeSecurityHelper.cs
- DataGridViewCellStateChangedEventArgs.cs
- DataGridViewComboBoxEditingControl.cs
- Int32Storage.cs
- DrawListViewItemEventArgs.cs
- PipelineComponent.cs
- JsonServiceDocumentSerializer.cs
- PreProcessInputEventArgs.cs
- Attributes.cs
- DeferredTextReference.cs
- RubberbandSelector.cs
- RecognizedAudio.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- AssemblyBuilderData.cs
- PrimaryKeyTypeConverter.cs
- GridViewSortEventArgs.cs
- MachineKeyConverter.cs
- Point3DCollectionConverter.cs
- MimeFormImporter.cs
- TraceHandler.cs
- HttpHandlerActionCollection.cs
- FormViewUpdatedEventArgs.cs
- Literal.cs
- Enlistment.cs
- FileSystemInfo.cs
- SoapIncludeAttribute.cs
- TypeToken.cs
- UnhandledExceptionEventArgs.cs
- WindowsScrollBarBits.cs
- GridView.cs
- ComponentSerializationService.cs
- UInt64Storage.cs
- ValidationErrorCollection.cs
- Vector3DAnimationUsingKeyFrames.cs
- ClientRuntimeConfig.cs
- WorkflowServiceHostFactory.cs
- Action.cs
- ConfigurationValidatorAttribute.cs
- MenuBindingsEditorForm.cs
- GridViewCommandEventArgs.cs
- LayoutEngine.cs