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
- RemotingAttributes.cs
- MimeTypeAttribute.cs
- TreeNodeClickEventArgs.cs
- ListenerElementsCollection.cs
- ProcessInputEventArgs.cs
- Separator.cs
- ListViewContainer.cs
- X509CertificateInitiatorClientCredential.cs
- TemplatePagerField.cs
- PenCursorManager.cs
- ControlTemplate.cs
- MouseOverProperty.cs
- HttpChannelListener.cs
- SafeRightsManagementSessionHandle.cs
- DocumentOrderComparer.cs
- SoapReflectionImporter.cs
- HttpServerVarsCollection.cs
- TypedColumnHandler.cs
- RegisteredHiddenField.cs
- PageThemeParser.cs
- coordinatorfactory.cs
- CurrencyManager.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ObjectAnimationUsingKeyFrames.cs
- CultureSpecificCharacterBufferRange.cs
- TextInfo.cs
- DrawingBrush.cs
- OdbcCommand.cs
- StyleCollection.cs
- ExtensionDataObject.cs
- ComponentEditorForm.cs
- EncodingDataItem.cs
- EmbeddedMailObject.cs
- ItemContainerGenerator.cs
- MenuItemStyleCollection.cs
- MemoryFailPoint.cs
- _StreamFramer.cs
- Point3D.cs
- HostedNamedPipeTransportManager.cs
- ProcessModelSection.cs
- DataGridHyperlinkColumn.cs
- HScrollBar.cs
- CategoryEditor.cs
- SpecialFolderEnumConverter.cs
- SafeCryptContextHandle.cs
- DashStyle.cs
- DataGridViewDataConnection.cs
- ISAPIApplicationHost.cs
- StackBuilderSink.cs
- EDesignUtil.cs
- SchemaCreator.cs
- MenuStrip.cs
- SocketPermission.cs
- RtfControlWordInfo.cs
- CharacterShapingProperties.cs
- LockedBorderGlyph.cs
- BinarySecretSecurityToken.cs
- CqlLexer.cs
- HttpApplicationFactory.cs
- cookiecontainer.cs
- SystemFonts.cs
- KeyedHashAlgorithm.cs
- SqlPersonalizationProvider.cs
- UnmanagedBitmapWrapper.cs
- XpsFilter.cs
- WindowsRichEdit.cs
- SupportingTokenProviderSpecification.cs
- TypefaceCollection.cs
- DbConnectionPoolOptions.cs
- dataprotectionpermission.cs
- SelectionItemPattern.cs
- StructuralCache.cs
- RootDesignerSerializerAttribute.cs
- Nullable.cs
- ToolStripMenuItem.cs
- HostingPreferredMapPath.cs
- ScopeCompiler.cs
- TableDetailsCollection.cs
- InvokeMethodDesigner.xaml.cs
- SessionEndedEventArgs.cs
- _CommandStream.cs
- NonDualMessageSecurityOverHttp.cs
- PagerSettings.cs
- FormatConvertedBitmap.cs
- DataGridViewCell.cs
- DataGridViewElement.cs
- FileDialog_Vista_Interop.cs
- DBBindings.cs
- MailAddressCollection.cs
- DataBoundControlHelper.cs
- TextEffect.cs
- BuildResultCache.cs
- StateRuntime.cs
- FileSystemWatcher.cs
- CheckoutException.cs
- NodeLabelEditEvent.cs
- SettingsAttributeDictionary.cs
- ProcessHostConfigUtils.cs
- documentsequencetextpointer.cs
- GPPOINT.cs