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
- TriggerBase.cs
- WebBrowserNavigatingEventHandler.cs
- PipelineModuleStepContainer.cs
- DataKey.cs
- StreamSecurityUpgradeProvider.cs
- MessageQueuePermission.cs
- DbProviderSpecificTypePropertyAttribute.cs
- NavigatorOutput.cs
- CounterSetInstanceCounterDataSet.cs
- PerspectiveCamera.cs
- UrlPath.cs
- ReleaseInstanceMode.cs
- ReturnEventArgs.cs
- ToolStripSettings.cs
- ContentControl.cs
- BezierSegment.cs
- MetadataFile.cs
- LineMetrics.cs
- QuaternionKeyFrameCollection.cs
- DateTimeOffset.cs
- ResumeStoryboard.cs
- NCryptSafeHandles.cs
- XPathNodeIterator.cs
- XPathSingletonIterator.cs
- X509CertificateStore.cs
- CheckBoxPopupAdapter.cs
- SQLDateTimeStorage.cs
- processwaithandle.cs
- CopyAttributesAction.cs
- DetailsViewPageEventArgs.cs
- PrtTicket_Public.cs
- HandlerFactoryCache.cs
- PkcsUtils.cs
- SettingsProperty.cs
- PolicyLevel.cs
- DataGridViewButtonCell.cs
- RuntimeComponentFilter.cs
- StrokeFIndices.cs
- DriveInfo.cs
- OledbConnectionStringbuilder.cs
- ScriptMethodAttribute.cs
- Boolean.cs
- ResXResourceWriter.cs
- Border.cs
- WindowsHyperlink.cs
- CommunicationException.cs
- OptimisticConcurrencyException.cs
- BinaryFormatterWriter.cs
- VirtualizedItemPattern.cs
- ReleaseInstanceMode.cs
- ConstrainedDataObject.cs
- HebrewNumber.cs
- PropertyToken.cs
- XPathParser.cs
- ZipPackagePart.cs
- GlyphTypeface.cs
- ErrorStyle.cs
- MessageDescription.cs
- ProviderSettings.cs
- RevocationPoint.cs
- mansign.cs
- DataGrid.cs
- JsonUriDataContract.cs
- InvocationExpression.cs
- Accessible.cs
- SqlCaseSimplifier.cs
- SqlParameter.cs
- CompilerWrapper.cs
- SQLStringStorage.cs
- JavaScriptObjectDeserializer.cs
- IRCollection.cs
- EnumValAlphaComparer.cs
- ITextView.cs
- MarshalByValueComponent.cs
- IDReferencePropertyAttribute.cs
- CheckBox.cs
- OleDbParameterCollection.cs
- Timer.cs
- XmlQueryCardinality.cs
- ModelMemberCollection.cs
- InkCanvasAutomationPeer.cs
- DebugHandleTracker.cs
- ServiceRouteHandler.cs
- OleDbRowUpdatingEvent.cs
- TextContainerChangedEventArgs.cs
- IsolatedStorageException.cs
- AbstractSvcMapFileLoader.cs
- Funcletizer.cs
- DataObjectSettingDataEventArgs.cs
- RewritingProcessor.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- AssemblyBuilderData.cs
- SQLDecimal.cs
- indexingfiltermarshaler.cs
- SelectionRange.cs
- DataTransferEventArgs.cs
- AppDomain.cs
- JsonXmlDataContract.cs
- ModuleConfigurationInfo.cs
- XmlSchemaAny.cs