Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / PointLight.cs / 1305600 / 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
- MessageDecoder.cs
- SizeIndependentAnimationStorage.cs
- DialogResultConverter.cs
- HiddenField.cs
- ProtectedConfigurationSection.cs
- EventDescriptor.cs
- XmlEntity.cs
- QueueProcessor.cs
- QueryableDataSourceHelper.cs
- XmlReflectionMember.cs
- UpdateRecord.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- RootBrowserWindowAutomationPeer.cs
- RegisteredScript.cs
- _AuthenticationState.cs
- TextFormatter.cs
- Color.cs
- MimeTypeAttribute.cs
- SchemaImporterExtensionElement.cs
- EntityViewGenerationAttribute.cs
- GroupBoxRenderer.cs
- UInt16Converter.cs
- DomainUpDown.cs
- RectangleGeometry.cs
- CodeSubDirectoriesCollection.cs
- X509PeerCertificateAuthentication.cs
- EventLogTraceListener.cs
- NavigatorOutput.cs
- InputEventArgs.cs
- MultipartContentParser.cs
- MediaScriptCommandRoutedEventArgs.cs
- BitmapEffectGroup.cs
- FileDataSourceCache.cs
- ConnectionConsumerAttribute.cs
- ParseChildrenAsPropertiesAttribute.cs
- ProxyManager.cs
- Validator.cs
- SQLGuid.cs
- DocumentScope.cs
- JobStaple.cs
- SafePipeHandle.cs
- FastPropertyAccessor.cs
- CacheSection.cs
- CallbackException.cs
- TemplateXamlParser.cs
- HttpGetServerProtocol.cs
- DesignerActionListCollection.cs
- CompositeDataBoundControl.cs
- MimeObjectFactory.cs
- HuffCodec.cs
- XhtmlBasicTextViewAdapter.cs
- PropertyCondition.cs
- EventPropertyMap.cs
- ConfigurationElement.cs
- MetadataArtifactLoaderResource.cs
- CompositeFontInfo.cs
- DataTrigger.cs
- CustomErrorsSectionWrapper.cs
- PartBasedPackageProperties.cs
- TextContainerChangedEventArgs.cs
- ModifierKeysConverter.cs
- BoundColumn.cs
- DSASignatureFormatter.cs
- DependencyPropertyKind.cs
- DockAndAnchorLayout.cs
- ExceptionUtil.cs
- GlyphsSerializer.cs
- EnumMember.cs
- Attributes.cs
- TimeStampChecker.cs
- TcpAppDomainProtocolHandler.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- SqlCommandBuilder.cs
- ManagementEventWatcher.cs
- CollectionView.cs
- FilterException.cs
- LoginUtil.cs
- RegistrySecurity.cs
- WebPartZone.cs
- DataBindingExpressionBuilder.cs
- SimplePropertyEntry.cs
- XsltSettings.cs
- DesignTimeVisibleAttribute.cs
- WebServiceData.cs
- basenumberconverter.cs
- ObjectAnimationUsingKeyFrames.cs
- SingleConverter.cs
- WinInet.cs
- WebBrowserHelper.cs
- WorkerRequest.cs
- StaticExtension.cs
- HostProtectionException.cs
- BamlCollectionHolder.cs
- RuntimeEnvironment.cs
- SplitterPanel.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- IdentityReference.cs
- HtmlInputFile.cs
- XmlSchemaObjectTable.cs
- ControlBindingsCollection.cs