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
- RegexCaptureCollection.cs
- FrameworkTextComposition.cs
- DataControlButton.cs
- GradientBrush.cs
- InvalidAsynchronousStateException.cs
- RelationHandler.cs
- PropertyFilterAttribute.cs
- RawStylusActions.cs
- PropertyPathWorker.cs
- ProjectedWrapper.cs
- SingleAnimationUsingKeyFrames.cs
- XmlHierarchyData.cs
- ReliabilityContractAttribute.cs
- Form.cs
- HuffCodec.cs
- EditorPart.cs
- IdentityValidationException.cs
- LoginCancelEventArgs.cs
- Documentation.cs
- ConfigurationUtility.cs
- ObjectCloneHelper.cs
- RegionData.cs
- X500Name.cs
- FolderLevelBuildProviderCollection.cs
- SoapProtocolReflector.cs
- IdnMapping.cs
- ExecutionContext.cs
- DictationGrammar.cs
- QilList.cs
- NameValuePermission.cs
- DBCSCodePageEncoding.cs
- ObjectAnimationUsingKeyFrames.cs
- XmlSequenceWriter.cs
- NavigationPropertyEmitter.cs
- DataGridViewDataErrorEventArgs.cs
- XslTransform.cs
- CallbackValidator.cs
- EventProviderBase.cs
- GroupItem.cs
- NumberAction.cs
- WindowsTitleBar.cs
- HierarchicalDataBoundControl.cs
- SubstitutionList.cs
- SqlBuilder.cs
- IsolatedStorage.cs
- ImageDrawing.cs
- DataRowCollection.cs
- DynamicRendererThreadManager.cs
- TraceHwndHost.cs
- ExpressionTable.cs
- AssemblySettingAttributes.cs
- ReadContentAsBinaryHelper.cs
- GetPageNumberCompletedEventArgs.cs
- IODescriptionAttribute.cs
- Bits.cs
- TableRow.cs
- SpAudioStreamWrapper.cs
- DataGridViewCellStyleConverter.cs
- PropertyBuilder.cs
- HyperLinkColumn.cs
- _HeaderInfo.cs
- AttachmentService.cs
- VerbConverter.cs
- AuthenticationService.cs
- RegisteredHiddenField.cs
- SqlErrorCollection.cs
- DrawingContextDrawingContextWalker.cs
- RegexReplacement.cs
- TextFragmentEngine.cs
- MediaElementAutomationPeer.cs
- HttpCachePolicy.cs
- EventMappingSettingsCollection.cs
- DefaultValueAttribute.cs
- XmlSchemaExporter.cs
- ListenerConstants.cs
- DeclaredTypeElementCollection.cs
- MenuItemCollectionEditor.cs
- TemplateContentLoader.cs
- Exception.cs
- CriticalHandle.cs
- SchemaImporterExtensionElementCollection.cs
- HostingMessageProperty.cs
- WorkflowInstanceSuspendedRecord.cs
- CharStorage.cs
- WindowsListViewItem.cs
- UndoEngine.cs
- HierarchicalDataTemplate.cs
- TextServicesLoader.cs
- PointHitTestResult.cs
- OleDbPermission.cs
- ResetableIterator.cs
- LineSegment.cs
- View.cs
- CngKeyBlobFormat.cs
- ToolStripItemBehavior.cs
- PropertyManager.cs
- FileLogRecordStream.cs
- ArgumentNullException.cs
- LongValidator.cs
- PeerNameRecordCollection.cs