Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- HMACSHA384.cs
- CommonRemoteMemoryBlock.cs
- IOThreadScheduler.cs
- DetailsViewInsertEventArgs.cs
- WorkflowDesignerMessageFilter.cs
- WebServiceHost.cs
- OleDbEnumerator.cs
- KeyBinding.cs
- XmlDataProvider.cs
- ServiceOperationParameter.cs
- ReadOnlyAttribute.cs
- ListBindableAttribute.cs
- DictationGrammar.cs
- CalculatedColumn.cs
- PhotoPrintingIntent.cs
- CollectionsUtil.cs
- DbProviderConfigurationHandler.cs
- DtrList.cs
- GenericTextProperties.cs
- BamlLocalizer.cs
- ZoneLinkButton.cs
- IMembershipProvider.cs
- WebPartVerb.cs
- PageContentCollection.cs
- FormViewRow.cs
- DataRowCollection.cs
- SocketElement.cs
- BorderSidesEditor.cs
- TypeInformation.cs
- SchemaElementDecl.cs
- ProfileGroupSettings.cs
- ProcessModule.cs
- ThreadStaticAttribute.cs
- SchemaNamespaceManager.cs
- Ref.cs
- TemplateColumn.cs
- IntegrationExceptionEventArgs.cs
- DynamicMetaObject.cs
- Visual.cs
- CheckBoxFlatAdapter.cs
- DebugTracing.cs
- ListControl.cs
- ManifestResourceInfo.cs
- FontDialog.cs
- ProgressBarRenderer.cs
- LinkLabelLinkClickedEvent.cs
- TextProviderWrapper.cs
- IsolatedStoragePermission.cs
- SortedList.cs
- Registry.cs
- RelationshipEnd.cs
- PassportIdentity.cs
- WebServiceFault.cs
- SpecularMaterial.cs
- MILUtilities.cs
- SQLBinary.cs
- FrameworkElement.cs
- Size3DConverter.cs
- BezierSegment.cs
- RegexRunnerFactory.cs
- ServiceDescriptionData.cs
- OutputCacheModule.cs
- FormClosingEvent.cs
- FocusTracker.cs
- DefaultValueAttribute.cs
- ItemCollectionEditor.cs
- DescendantQuery.cs
- InternalTypeHelper.cs
- RSAOAEPKeyExchangeFormatter.cs
- Attributes.cs
- TransportManager.cs
- SBCSCodePageEncoding.cs
- FontUnit.cs
- WindowsEditBoxRange.cs
- RightNameExpirationInfoPair.cs
- SafeUserTokenHandle.cs
- DbResourceAllocator.cs
- MessageCredentialType.cs
- CodeTypeMemberCollection.cs
- SafeLibraryHandle.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- SafeTokenHandle.cs
- ResetableIterator.cs
- Transform3D.cs
- GeometryHitTestResult.cs
- VerticalAlignConverter.cs
- NavigationWindowAutomationPeer.cs
- TraceLog.cs
- NodeFunctions.cs
- ConfigurationManagerInternal.cs
- ILGen.cs
- CallbackDebugBehavior.cs
- OdbcDataReader.cs
- PathGradientBrush.cs
- ObjectContext.cs
- XmlStreamNodeWriter.cs
- MergeFilterQuery.cs
- RelationshipNavigation.cs
- ToolStripSystemRenderer.cs
- ValuePatternIdentifiers.cs