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
- UniqueEventHelper.cs
- ImagingCache.cs
- UdpDiscoveryMessageFilter.cs
- BridgeDataRecord.cs
- ToolboxItem.cs
- RouteParametersHelper.cs
- EntityContainer.cs
- SecurityChannelListener.cs
- FocusChangedEventArgs.cs
- DesignerActionMethodItem.cs
- DrawListViewSubItemEventArgs.cs
- PageHandlerFactory.cs
- SuppressMessageAttribute.cs
- LocationUpdates.cs
- RootCodeDomSerializer.cs
- VisualStyleRenderer.cs
- BindableAttribute.cs
- XhtmlBasicLinkAdapter.cs
- EntityWithChangeTrackerStrategy.cs
- InstanceDataCollectionCollection.cs
- HighlightComponent.cs
- odbcmetadatacollectionnames.cs
- Section.cs
- BamlWriter.cs
- ModelServiceImpl.cs
- PackageDigitalSignatureManager.cs
- ManipulationStartingEventArgs.cs
- QueryTaskGroupState.cs
- ExpressionDumper.cs
- DependencyPropertyHelper.cs
- LoadedOrUnloadedOperation.cs
- ShapingWorkspace.cs
- XsltArgumentList.cs
- DataGridViewColumnCollection.cs
- SqlExpressionNullability.cs
- ChangePassword.cs
- ToolStripItemEventArgs.cs
- InfoCardTrace.cs
- ConsoleTraceListener.cs
- MethodResolver.cs
- AdornerPresentationContext.cs
- PowerEase.cs
- TemplatedMailWebEventProvider.cs
- VisualProxy.cs
- KeyedHashAlgorithm.cs
- PropertyIDSet.cs
- WebEventCodes.cs
- ConsumerConnectionPointCollection.cs
- SerializationHelper.cs
- PersonalizationEntry.cs
- ReflectionUtil.cs
- ReliabilityContractAttribute.cs
- PageRequestManager.cs
- SafeNativeMethods.cs
- ToolStripComboBox.cs
- SmiContextFactory.cs
- TableLayoutStyleCollection.cs
- BitmapPalettes.cs
- SourceItem.cs
- GeneralTransformGroup.cs
- HtmlControlPersistable.cs
- RegexRunnerFactory.cs
- ClientOptions.cs
- XmlMembersMapping.cs
- CompilationRelaxations.cs
- CodeTypeDelegate.cs
- ITextView.cs
- RequiredFieldValidator.cs
- BuilderPropertyEntry.cs
- RowVisual.cs
- ZipIOCentralDirectoryFileHeader.cs
- Pkcs9Attribute.cs
- ApplicationTrust.cs
- IconConverter.cs
- TrustManagerPromptUI.cs
- ResizeGrip.cs
- ObjectTokenCategory.cs
- ScriptResourceInfo.cs
- WindowsBrush.cs
- XmlSchemaExporter.cs
- TextRangeProviderWrapper.cs
- ConnectionManagementElementCollection.cs
- SafeNativeMethodsOther.cs
- ReferentialConstraint.cs
- WeakReferenceKey.cs
- SqlTypesSchemaImporter.cs
- ADConnectionHelper.cs
- ColorConvertedBitmap.cs
- SystemTcpConnection.cs
- HebrewCalendar.cs
- LayoutSettings.cs
- SchemaDeclBase.cs
- ConnectionsZone.cs
- StylusTip.cs
- Random.cs
- RtType.cs
- ProtocolElement.cs
- MouseWheelEventArgs.cs
- SqlInternalConnection.cs
- ChannelSinkStacks.cs