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
- _SSPISessionCache.cs
- HtmlInputRadioButton.cs
- ChannelServices.cs
- XmlJsonWriter.cs
- Bidi.cs
- UpDownBaseDesigner.cs
- MarshalByRefObject.cs
- hwndwrapper.cs
- HitTestWithPointDrawingContextWalker.cs
- ConfigurationElementCollection.cs
- Exception.cs
- RoleGroup.cs
- SmtpMail.cs
- ToolStripLabel.cs
- QueryStringHandler.cs
- nulltextcontainer.cs
- HttpServerUtilityBase.cs
- ResourceDictionary.cs
- HeaderLabel.cs
- SuppressIldasmAttribute.cs
- WindowsSecurityTokenAuthenticator.cs
- PermissionSetTriple.cs
- BooleanFunctions.cs
- InputLangChangeRequestEvent.cs
- TableRowGroup.cs
- SolidBrush.cs
- SystemThemeKey.cs
- PageCatalogPart.cs
- pingexception.cs
- ColumnTypeConverter.cs
- TouchDevice.cs
- DataSourceControl.cs
- MatrixAnimationUsingKeyFrames.cs
- ObjectQueryState.cs
- StatusBarItem.cs
- TableAdapterManagerHelper.cs
- ColorEditor.cs
- Form.cs
- SetState.cs
- DataTableMappingCollection.cs
- ResourceProperty.cs
- RoleManagerModule.cs
- ActiveXContainer.cs
- FloaterBaseParaClient.cs
- ArrangedElement.cs
- _NegoState.cs
- XPathAncestorIterator.cs
- DefaultSection.cs
- NameValueFileSectionHandler.cs
- LinearKeyFrames.cs
- X509CertificateRecipientClientCredential.cs
- DataServiceStreamResponse.cs
- DataGridViewCellPaintingEventArgs.cs
- datacache.cs
- CacheMemory.cs
- XsdDuration.cs
- Button.cs
- RuleCache.cs
- VirtualPath.cs
- AsyncOperation.cs
- TemplateBamlRecordReader.cs
- ExpressionEditorSheet.cs
- sqlpipe.cs
- NoPersistScope.cs
- SafeCertificateContext.cs
- XmlDocument.cs
- StructuredType.cs
- CreateParams.cs
- EUCJPEncoding.cs
- CachedBitmap.cs
- SqlBuffer.cs
- CachedFontFamily.cs
- HttpPostedFileBase.cs
- CompilerError.cs
- ConstructorBuilder.cs
- SmiEventSink_Default.cs
- SecurityRuntime.cs
- HuffCodec.cs
- ArrayItemValue.cs
- BordersPage.cs
- MetadataUtilsSmi.cs
- AsymmetricCryptoHandle.cs
- FormViewDeleteEventArgs.cs
- MetaModel.cs
- ConcurrentDictionary.cs
- SafeUserTokenHandle.cs
- Subordinate.cs
- StandardCommands.cs
- TextMetrics.cs
- EntityDataSourceSelectedEventArgs.cs
- QuaternionValueSerializer.cs
- ZipIOLocalFileHeader.cs
- ShaderEffect.cs
- DataServiceExpressionVisitor.cs
- FindProgressChangedEventArgs.cs
- SrgsElementList.cs
- ObjectListFieldCollection.cs
- CatalogZoneBase.cs
- Operand.cs
- TransformerInfo.cs