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
- MsdtcClusterUtils.cs
- SourceFileBuildProvider.cs
- UIElementIsland.cs
- SpeechRecognitionEngine.cs
- ReadOnlyObservableCollection.cs
- IntranetCredentialPolicy.cs
- StateElement.cs
- UnionCqlBlock.cs
- SynthesizerStateChangedEventArgs.cs
- TypeInitializationException.cs
- CookieParameter.cs
- PeerToPeerException.cs
- WebPartManagerInternals.cs
- CommandHelper.cs
- ColorContext.cs
- SecureStringHasher.cs
- CachedFontFamily.cs
- SubstitutionList.cs
- DefaultProxySection.cs
- TypeConverterAttribute.cs
- WmpBitmapDecoder.cs
- LayoutTableCell.cs
- WebBrowserDesigner.cs
- EventPrivateKey.cs
- DriveInfo.cs
- _LocalDataStore.cs
- SingleSelectRootGridEntry.cs
- ToolStripArrowRenderEventArgs.cs
- RoutedUICommand.cs
- NodeLabelEditEvent.cs
- AnnotationService.cs
- XhtmlBasicLinkAdapter.cs
- TransportReplyChannelAcceptor.cs
- KeyConstraint.cs
- ParameterCollectionEditorForm.cs
- Size3DConverter.cs
- RelationshipNavigation.cs
- XmlByteStreamWriter.cs
- CodeDomDesignerLoader.cs
- ToolStripButton.cs
- ClientConfigurationHost.cs
- RegexCapture.cs
- TabControl.cs
- TransformConverter.cs
- WindowsGraphicsWrapper.cs
- SurrogateSelector.cs
- _NtlmClient.cs
- TextWriter.cs
- TrackingCondition.cs
- GroupBoxAutomationPeer.cs
- ReferentialConstraint.cs
- WebPartHeaderCloseVerb.cs
- WorkItem.cs
- DefaultAsyncDataDispatcher.cs
- ProgramNode.cs
- UnicastIPAddressInformationCollection.cs
- CodeVariableReferenceExpression.cs
- HashRepartitionEnumerator.cs
- DocumentReference.cs
- WindowsSecurityToken.cs
- XsltLoader.cs
- TextParaLineResult.cs
- DeviceContext.cs
- X509CertificateInitiatorClientCredential.cs
- ImageAnimator.cs
- DirectoryGroupQuery.cs
- ObjectTokenCategory.cs
- MenuCommandService.cs
- XmlSchemaAppInfo.cs
- CompilationRelaxations.cs
- BulletedListEventArgs.cs
- WindowsScrollBar.cs
- SBCSCodePageEncoding.cs
- StringFreezingAttribute.cs
- CreateParams.cs
- StrongNamePublicKeyBlob.cs
- WeakEventTable.cs
- WebConfigurationFileMap.cs
- ThaiBuddhistCalendar.cs
- ObjectDataSourceSelectingEventArgs.cs
- TablePatternIdentifiers.cs
- TextParaClient.cs
- HwndHost.cs
- DodSequenceMerge.cs
- X509Extension.cs
- SettingsAttributeDictionary.cs
- XhtmlStyleClass.cs
- DataObjectEventArgs.cs
- FileLogRecordStream.cs
- PartialCachingControl.cs
- _AcceptOverlappedAsyncResult.cs
- TransactionChannelListener.cs
- X509RecipientCertificateClientElement.cs
- ScrollChangedEventArgs.cs
- DBPropSet.cs
- GlyphInfoList.cs
- TabItem.cs
- FontFamily.cs
- DbConnectionPoolCounters.cs
- NaturalLanguageHyphenator.cs