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
- XmlSchemaValidator.cs
- DeviceFilterDictionary.cs
- MutableAssemblyCacheEntry.cs
- DropSourceBehavior.cs
- EventWaitHandle.cs
- Metafile.cs
- MethodToken.cs
- DateTimeUtil.cs
- NeutralResourcesLanguageAttribute.cs
- SolidColorBrush.cs
- HtmlInputCheckBox.cs
- ListenerConstants.cs
- DummyDataSource.cs
- XPathParser.cs
- NativeMethods.cs
- TriggerBase.cs
- InsufficientExecutionStackException.cs
- EventDriven.cs
- ExceptionAggregator.cs
- ImageFormatConverter.cs
- translator.cs
- ConfigurationManager.cs
- ParenthesizePropertyNameAttribute.cs
- LinqDataSourceStatusEventArgs.cs
- SqlCharStream.cs
- DomainUpDown.cs
- Floater.cs
- DateTimeStorage.cs
- GreenMethods.cs
- SiteMapProvider.cs
- WindowsSpinner.cs
- ConnectionString.cs
- SimpleType.cs
- BitmapEffectCollection.cs
- TriggerAction.cs
- Grant.cs
- DesignerRegionCollection.cs
- AppPool.cs
- TypeHelpers.cs
- SqlAliasesReferenced.cs
- CTreeGenerator.cs
- FontEditor.cs
- RangeBase.cs
- XmlnsCompatibleWithAttribute.cs
- ComPlusDiagnosticTraceSchemas.cs
- StoryFragments.cs
- DesigntimeLicenseContext.cs
- XmlAnyAttributeAttribute.cs
- LinearGradientBrush.cs
- Win32PrintDialog.cs
- ClientSettings.cs
- AttachmentService.cs
- SQLMoneyStorage.cs
- UnionCodeGroup.cs
- WebPartEditorApplyVerb.cs
- EntityDataReader.cs
- AdRotator.cs
- CellConstantDomain.cs
- HttpRawResponse.cs
- HeaderedContentControl.cs
- DebugManager.cs
- TreeViewHitTestInfo.cs
- TTSEngineProxy.cs
- ServiceInfo.cs
- VScrollBar.cs
- FormsAuthenticationTicket.cs
- QilNode.cs
- DocumentOrderQuery.cs
- StateInitialization.cs
- UnmanagedBitmapWrapper.cs
- CompModSwitches.cs
- MessageSecurityOverHttp.cs
- ConfigurationManagerHelper.cs
- Label.cs
- NamespaceInfo.cs
- HtmlElementEventArgs.cs
- OdbcParameterCollection.cs
- Label.cs
- DbInsertCommandTree.cs
- ByteRangeDownloader.cs
- ImageBrush.cs
- DetailsViewInsertedEventArgs.cs
- SafeRegistryKey.cs
- BuildResultCache.cs
- EventItfInfo.cs
- DiagnosticEventProvider.cs
- ISAPIRuntime.cs
- MetadataArtifactLoaderCompositeFile.cs
- DefaultParameterValueAttribute.cs
- ExpressionBindings.cs
- AccessText.cs
- SQLMembershipProvider.cs
- ExplicitDiscriminatorMap.cs
- TdsParserStaticMethods.cs
- ToolStripContainer.cs
- TypeDescriptor.cs
- BasicSecurityProfileVersion.cs
- ClockGroup.cs
- ToolBarPanel.cs
- NativeMethods.cs