Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media3D / PointLight.cs / 1 / PointLight.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D positional light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/25/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; using System.Diagnostics; 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 { ////// Positional lights have a position in space and project their light in all directions. /// The falloff of the light is controlled by attenuation and range properties. /// public sealed partial class PointLight : PointLightBase { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Default constructor that creates a white PointLight at the origin. /// public PointLight() {} ////// Constructor. /// /// Diffuse color for the new positional light. /// Position of the new positional light. public PointLight(Color diffuseColor, Point3D position) : this() { // Set PointLightBase properties Color = diffuseColor; Position = position; } #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 positional light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/25/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; using System.Diagnostics; 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 { ////// Positional lights have a position in space and project their light in all directions. /// The falloff of the light is controlled by attenuation and range properties. /// public sealed partial class PointLight : PointLightBase { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Default constructor that creates a white PointLight at the origin. /// public PointLight() {} ////// Constructor. /// /// Diffuse color for the new positional light. /// Position of the new positional light. public PointLight(Color diffuseColor, Point3D position) : this() { // Set PointLightBase properties Color = diffuseColor; Position = position; } #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
- ParentControlDesigner.cs
- DropTarget.cs
- X509Certificate2.cs
- TreeNodeStyleCollection.cs
- AsyncCompletedEventArgs.cs
- contentDescriptor.cs
- UnsafeNativeMethods.cs
- NCryptSafeHandles.cs
- StrongNameUtility.cs
- BuildResultCache.cs
- DataGridViewRowCancelEventArgs.cs
- FixedDocumentPaginator.cs
- FontStyleConverter.cs
- RegexMatchCollection.cs
- StringAnimationUsingKeyFrames.cs
- TextRangeEdit.cs
- CodeTypeDeclarationCollection.cs
- ParameterBuilder.cs
- HttpContextServiceHost.cs
- FocusWithinProperty.cs
- WebBrowserNavigatingEventHandler.cs
- PropertyHelper.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- InkPresenterAutomationPeer.cs
- safemediahandle.cs
- SystemUdpStatistics.cs
- IpcPort.cs
- TextTreeUndoUnit.cs
- ThicknessConverter.cs
- XmlSchemaSimpleType.cs
- FormViewPagerRow.cs
- DesignerInterfaces.cs
- FrameworkRichTextComposition.cs
- PolyQuadraticBezierSegment.cs
- PrintPreviewDialog.cs
- HttpVersion.cs
- ConnectionStringSettings.cs
- UnknownBitmapEncoder.cs
- SQLInt32.cs
- DirectoryRootQuery.cs
- StrongNameUtility.cs
- RowCache.cs
- ObservableDictionary.cs
- HierarchicalDataSourceDesigner.cs
- DataSet.cs
- VersionPair.cs
- LockCookie.cs
- TypeReference.cs
- SqlFormatter.cs
- MetadataSerializer.cs
- GuidTagList.cs
- IconHelper.cs
- UdpTransportBindingElement.cs
- ListenerBinder.cs
- PermissionAttributes.cs
- TreeWalkHelper.cs
- ChtmlSelectionListAdapter.cs
- EncodingNLS.cs
- ToolboxDataAttribute.cs
- HttpVersion.cs
- SecureStringHasher.cs
- SoapBinding.cs
- EventMap.cs
- ExpressionWriter.cs
- MembershipValidatePasswordEventArgs.cs
- TypeDescriptionProvider.cs
- BitArray.cs
- FormParameter.cs
- PageVisual.cs
- ImageCodecInfo.cs
- ImageListStreamer.cs
- MulticastOption.cs
- CompositeCollection.cs
- StrokeNodeEnumerator.cs
- DesignerActionItemCollection.cs
- XmlQueryOutput.cs
- DLinqAssociationProvider.cs
- SpecularMaterial.cs
- MailAddressCollection.cs
- SharedHttpsTransportManager.cs
- MenuItemCollectionEditorDialog.cs
- _UriTypeConverter.cs
- DbConnectionPoolCounters.cs
- xmlglyphRunInfo.cs
- WebSysDefaultValueAttribute.cs
- RawUIStateInputReport.cs
- Label.cs
- UIElementAutomationPeer.cs
- StringReader.cs
- XmlSigningNodeWriter.cs
- PeerNameRegistration.cs
- EventManager.cs
- WindowsListViewScroll.cs
- ThicknessConverter.cs
- ProfileSettings.cs
- ReadOnlyHierarchicalDataSourceView.cs
- HttpRequestBase.cs
- StorageEntityContainerMapping.cs
- _NegoState.cs
- LightweightCodeGenerator.cs