Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- TextBox.cs
- DropSource.cs
- ExpressionList.cs
- GridViewDeleteEventArgs.cs
- DrawListViewItemEventArgs.cs
- KnownBoxes.cs
- documentsequencetextpointer.cs
- XmlChoiceIdentifierAttribute.cs
- XmlSchemaSimpleContent.cs
- ByteKeyFrameCollection.cs
- Adorner.cs
- MailBnfHelper.cs
- WSHttpBindingElement.cs
- FixedPageAutomationPeer.cs
- HttpGetClientProtocol.cs
- EndpointNameMessageFilter.cs
- ExceptionHandler.cs
- LayoutUtils.cs
- TextElementEnumerator.cs
- SystemPens.cs
- Label.cs
- RuleSetCollection.cs
- DataReaderContainer.cs
- ContextQuery.cs
- DockingAttribute.cs
- StrokeFIndices.cs
- ClientUrlResolverWrapper.cs
- COMException.cs
- LayeredChannelFactory.cs
- InstanceView.cs
- ServiceHostingEnvironmentSection.cs
- MobileControlsSectionHelper.cs
- SslStream.cs
- StoreItemCollection.cs
- XmlSchemaAttributeGroup.cs
- ZipQueryOperator.cs
- RowToParametersTransformer.cs
- OleDbPermission.cs
- GcSettings.cs
- UserControlBuildProvider.cs
- RubberbandSelector.cs
- ClientSettings.cs
- RangeValueProviderWrapper.cs
- Base64Encoder.cs
- ProfileParameter.cs
- HtmlEmptyTagControlBuilder.cs
- TreeWalker.cs
- PeerApplication.cs
- MouseActionConverter.cs
- XamlStream.cs
- Registry.cs
- EqualityComparer.cs
- DesignerTextWriter.cs
- PngBitmapDecoder.cs
- WizardPanel.cs
- HMACMD5.cs
- ContourSegment.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- ProfilePropertyNameValidator.cs
- HttpHeaderCollection.cs
- SortedDictionary.cs
- XmlSchemaComplexContentRestriction.cs
- storepermission.cs
- SecurityUtils.cs
- TopClause.cs
- XamlContextStack.cs
- GridItemProviderWrapper.cs
- ZoomPercentageConverter.cs
- PermissionSet.cs
- CodeDomExtensionMethods.cs
- XmlnsCompatibleWithAttribute.cs
- ContentType.cs
- AggregateNode.cs
- KeyTime.cs
- FontCacheLogic.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- URL.cs
- DtdParser.cs
- BitmapEffectInput.cs
- SoapSchemaImporter.cs
- BindingManagerDataErrorEventArgs.cs
- DoubleLink.cs
- OdbcConnectionPoolProviderInfo.cs
- ScriptReferenceEventArgs.cs
- HtmlInputHidden.cs
- BmpBitmapEncoder.cs
- DetailsViewRow.cs
- CollaborationHelperFunctions.cs
- ConsumerConnectionPointCollection.cs
- Helper.cs
- FlowDocumentPaginator.cs
- MobileContainerDesigner.cs
- DurableEnlistmentState.cs
- ListControlActionList.cs
- DesignTimeParseData.cs
- StylusCaptureWithinProperty.cs
- InternalBase.cs
- ExtractedStateEntry.cs
- RegexCaptureCollection.cs
- DesignerCategoryAttribute.cs