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
- ChannelManagerHelpers.cs
- FrameSecurityDescriptor.cs
- JsonByteArrayDataContract.cs
- CodeStatement.cs
- BlobPersonalizationState.cs
- XmlTextWriter.cs
- BoundField.cs
- ObjectListField.cs
- PointHitTestResult.cs
- LayoutSettings.cs
- LinearQuaternionKeyFrame.cs
- TextBox.cs
- columnmapfactory.cs
- OdbcParameterCollection.cs
- TextOptionsInternal.cs
- ResourceProviderFactory.cs
- CodeParameterDeclarationExpression.cs
- SelectionProviderWrapper.cs
- UnsafeNativeMethodsTablet.cs
- SourceItem.cs
- DoubleAnimationUsingKeyFrames.cs
- IntranetCredentialPolicy.cs
- CompiledIdentityConstraint.cs
- StylusButton.cs
- UserNameServiceElement.cs
- TextRangeEdit.cs
- Expression.DebuggerProxy.cs
- EdmToObjectNamespaceMap.cs
- DbDeleteCommandTree.cs
- SymLanguageVendor.cs
- EdmToObjectNamespaceMap.cs
- SqlSelectStatement.cs
- XmlSchemaSubstitutionGroup.cs
- Gdiplus.cs
- ClientBuildManagerCallback.cs
- TypeUnloadedException.cs
- RowParagraph.cs
- SessionPageStateSection.cs
- EncodingInfo.cs
- FixedMaxHeap.cs
- SchemaEntity.cs
- ProcessModuleDesigner.cs
- FileUtil.cs
- SendSecurityHeader.cs
- RuntimeIdentifierPropertyAttribute.cs
- ImportCatalogPart.cs
- SelectedDatesCollection.cs
- Ref.cs
- ListViewUpdateEventArgs.cs
- EdmError.cs
- HttpStreamXmlDictionaryReader.cs
- AudioBase.cs
- OleDbDataAdapter.cs
- ReliableMessagingHelpers.cs
- Attributes.cs
- KeyedHashAlgorithm.cs
- XmlDesignerDataSourceView.cs
- SrgsItemList.cs
- TemplateField.cs
- MetaTable.cs
- StreamAsIStream.cs
- BrushConverter.cs
- WindowsListViewScroll.cs
- CurrencyManager.cs
- PersonalizableAttribute.cs
- ContractDescription.cs
- SettingsProperty.cs
- StringFreezingAttribute.cs
- IPAddress.cs
- CodeLabeledStatement.cs
- ResourceDefaultValueAttribute.cs
- SqlGenericUtil.cs
- ProfileSettingsCollection.cs
- SizeKeyFrameCollection.cs
- ThaiBuddhistCalendar.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ConfigurationConverterBase.cs
- SerializationStore.cs
- InvalidStoreProtectionKeyException.cs
- TraceSection.cs
- PropertyTabChangedEvent.cs
- GridViewEditEventArgs.cs
- ContractSearchPattern.cs
- ContentPlaceHolder.cs
- WaitHandle.cs
- MgmtConfigurationRecord.cs
- path.cs
- SoapExtension.cs
- ViewGenResults.cs
- MimeMapping.cs
- XmlSecureResolver.cs
- InternalDispatchObject.cs
- FileAuthorizationModule.cs
- SplineKeyFrames.cs
- DBConcurrencyException.cs
- ObjectDataSourceSelectingEventArgs.cs
- StoreUtilities.cs
- DataTableReaderListener.cs
- DataGridPreparingCellForEditEventArgs.cs
- ResourceExpressionBuilder.cs