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
- QilIterator.cs
- EncodingTable.cs
- CrossContextChannel.cs
- uribuilder.cs
- SystemBrushes.cs
- HtmlElement.cs
- BitmapEffectGroup.cs
- RoleGroup.cs
- DatagridviewDisplayedBandsData.cs
- LabelLiteral.cs
- SiteMapDataSourceView.cs
- RenderData.cs
- SatelliteContractVersionAttribute.cs
- JsonWriter.cs
- DnsPermission.cs
- MorphHelper.cs
- InputReportEventArgs.cs
- SafeLibraryHandle.cs
- IdentitySection.cs
- HttpPostClientProtocol.cs
- HTMLTextWriter.cs
- CodeStatementCollection.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- CanonicalizationDriver.cs
- OdbcErrorCollection.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ToolboxBitmapAttribute.cs
- AutoGeneratedField.cs
- Socket.cs
- ObservableDictionary.cs
- MetadataWorkspace.cs
- XmlMapping.cs
- CodeCommentStatementCollection.cs
- WsdlInspector.cs
- SerializerWriterEventHandlers.cs
- Win32.cs
- AtomServiceDocumentSerializer.cs
- ExecutionContext.cs
- SplayTreeNode.cs
- DataServiceClientException.cs
- IndexerNameAttribute.cs
- UpdateInfo.cs
- QueryableFilterRepeater.cs
- ellipse.cs
- DesignerAutoFormatCollection.cs
- TemplateControlBuildProvider.cs
- GorillaCodec.cs
- TimerEventSubscriptionCollection.cs
- DataListCommandEventArgs.cs
- QueryRewriter.cs
- ScriptManagerProxy.cs
- AspNetSynchronizationContext.cs
- ConsoleCancelEventArgs.cs
- ListBindingConverter.cs
- ElapsedEventArgs.cs
- SmiMetaDataProperty.cs
- TraceListeners.cs
- DataGridCaption.cs
- SecurityContextSecurityToken.cs
- Message.cs
- MsmqEncryptionAlgorithm.cs
- X509SecurityTokenProvider.cs
- ComAdminWrapper.cs
- Utils.cs
- Span.cs
- StreamWriter.cs
- SmtpFailedRecipientsException.cs
- DescriptionCreator.cs
- LingerOption.cs
- CodeDirectoryCompiler.cs
- NestedContainer.cs
- XpsSerializationManagerAsync.cs
- FileNotFoundException.cs
- QuaternionKeyFrameCollection.cs
- InvalidComObjectException.cs
- XmlSchemaSimpleTypeList.cs
- EmptyEnumerable.cs
- TypeFieldSchema.cs
- ConfigurationElementCollection.cs
- LayoutEditorPart.cs
- ViewStateException.cs
- PropertyChangedEventManager.cs
- CompilationUnit.cs
- RightsManagementEncryptionTransform.cs
- ElementUtil.cs
- ClientConfigurationSystem.cs
- EventOpcode.cs
- Base64Decoder.cs
- TextEditorTyping.cs
- DataGridViewCellValueEventArgs.cs
- MailWebEventProvider.cs
- pingexception.cs
- PersonalizationProvider.cs
- sapiproxy.cs
- ThreadExceptionEvent.cs
- NetNamedPipeBindingCollectionElement.cs
- Query.cs
- PerfService.cs
- TabControl.cs
- ObjectPropertyMapping.cs