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
- XmlWrappingWriter.cs
- Utils.cs
- DataServices.cs
- NoPersistScope.cs
- UserInitiatedNavigationPermission.cs
- Predicate.cs
- FileDialog.cs
- XmlProcessingInstruction.cs
- MetadataItem.cs
- Touch.cs
- RegexBoyerMoore.cs
- SamlSecurityToken.cs
- WebSysDescriptionAttribute.cs
- RequestQueryParser.cs
- GlyphingCache.cs
- DetailsViewCommandEventArgs.cs
- ByteStorage.cs
- QueryContinueDragEvent.cs
- BeginStoryboard.cs
- FormViewModeEventArgs.cs
- TagPrefixAttribute.cs
- VisualBrush.cs
- BitmapFrameEncode.cs
- FreezableOperations.cs
- InvalidMessageContractException.cs
- Rfc2898DeriveBytes.cs
- DataGridViewEditingControlShowingEventArgs.cs
- XsdDataContractExporter.cs
- ChannelServices.cs
- NextPreviousPagerField.cs
- CheckedListBox.cs
- PopupRoot.cs
- EventSinkActivityDesigner.cs
- TableDetailsRow.cs
- Debug.cs
- ListItemCollection.cs
- ModelUtilities.cs
- DataBinder.cs
- FileReader.cs
- JournalNavigationScope.cs
- ByteAnimationBase.cs
- SignedPkcs7.cs
- InstanceNameConverter.cs
- QilReference.cs
- OleDbErrorCollection.cs
- PrinterUnitConvert.cs
- WebPartTransformer.cs
- CreatingCookieEventArgs.cs
- AssemblyBuilder.cs
- OutputCacheModule.cs
- bidPrivateBase.cs
- ProfessionalColors.cs
- UserControlCodeDomTreeGenerator.cs
- NamespaceEmitter.cs
- TemplateControlParser.cs
- PropertyCollection.cs
- WaitingCursor.cs
- EventLogStatus.cs
- InkCanvasAutomationPeer.cs
- CoreChannel.cs
- DiscoveryClientProtocol.cs
- ErrorEventArgs.cs
- ObjectDataSourceMethodEventArgs.cs
- BuildResult.cs
- CompensationDesigner.cs
- FunctionQuery.cs
- PathGeometry.cs
- HeaderedContentControl.cs
- MessageSmuggler.cs
- DoubleAnimationClockResource.cs
- LoginNameDesigner.cs
- StringSorter.cs
- BoundPropertyEntry.cs
- AncestorChangedEventArgs.cs
- EntityAdapter.cs
- OleDbError.cs
- DesignTimeTemplateParser.cs
- figurelengthconverter.cs
- TextParaLineResult.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- MappingModelBuildProvider.cs
- ClientApiGenerator.cs
- WindowsEditBoxRange.cs
- BufferModesCollection.cs
- DataGridComboBoxColumn.cs
- HorizontalAlignConverter.cs
- IsolatedStorage.cs
- ScaleTransform.cs
- MexTcpBindingCollectionElement.cs
- PropertyGridCommands.cs
- DbMetaDataCollectionNames.cs
- ConstraintConverter.cs
- _NestedSingleAsyncResult.cs
- ParameterElement.cs
- BinaryConverter.cs
- TextRunCache.cs
- RemoteWebConfigurationHostStream.cs
- MethodBody.cs
- Dictionary.cs
- SqlBulkCopy.cs