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
- InheritanceRules.cs
- ChannelSinkStacks.cs
- TdsParserStateObject.cs
- BaseTemplatedMobileComponentEditor.cs
- EdgeProfileValidation.cs
- SQLDateTimeStorage.cs
- TextFormatterHost.cs
- BuildProviderCollection.cs
- HttpUnhandledOperationInvoker.cs
- StateMachine.cs
- ToolStripRendererSwitcher.cs
- StorageEntityContainerMapping.cs
- SendActivity.cs
- PrintingPermission.cs
- streamingZipPartStream.cs
- BrowserDefinitionCollection.cs
- DataGridViewRowsAddedEventArgs.cs
- Main.cs
- UnauthorizedAccessException.cs
- XmlChildEnumerator.cs
- Timer.cs
- OleAutBinder.cs
- SchemaReference.cs
- SubclassTypeValidatorAttribute.cs
- TypeConverterValueSerializer.cs
- DataTableReaderListener.cs
- SymDocumentType.cs
- WebScriptEnablingElement.cs
- InputScope.cs
- CultureSpecificStringDictionary.cs
- HtmlLiteralTextAdapter.cs
- DropShadowBitmapEffect.cs
- SoundPlayerAction.cs
- TableItemPattern.cs
- TextEvent.cs
- TargetConverter.cs
- JsonDataContract.cs
- OuterGlowBitmapEffect.cs
- SymbolPair.cs
- RootAction.cs
- TypedReference.cs
- ProxyGenerationError.cs
- OdbcConnectionOpen.cs
- MetadataItemSerializer.cs
- DataComponentMethodGenerator.cs
- SecurityPermission.cs
- TransformGroup.cs
- SystemInfo.cs
- TreeViewHitTestInfo.cs
- RtType.cs
- ViewManager.cs
- TraceData.cs
- SQLDecimal.cs
- sqlpipe.cs
- SelectionItemPattern.cs
- ConfigXmlElement.cs
- ReliabilityContractAttribute.cs
- Utility.cs
- DependencyPropertyAttribute.cs
- _KerberosClient.cs
- ThreadInterruptedException.cs
- MarkupProperty.cs
- ManifestSignedXml.cs
- LocatorGroup.cs
- Version.cs
- AsyncStreamReader.cs
- SqlStatistics.cs
- StorageInfo.cs
- CollectionsUtil.cs
- QueryCoreOp.cs
- DbgUtil.cs
- WebRequest.cs
- PlainXmlSerializer.cs
- SharedPersonalizationStateInfo.cs
- UnhandledExceptionEventArgs.cs
- BlurBitmapEffect.cs
- ControlCommandSet.cs
- HiddenFieldDesigner.cs
- MethodToken.cs
- Size.cs
- FontFamilyValueSerializer.cs
- ObsoleteAttribute.cs
- GraphicsContainer.cs
- DesignerForm.cs
- TileBrush.cs
- PropertyGrid.cs
- URLMembershipCondition.cs
- RemoteWebConfigurationHost.cs
- BitFlagsGenerator.cs
- FrameworkContentElementAutomationPeer.cs
- TagPrefixCollection.cs
- ProbeDuplexAsyncResult.cs
- SqlBooleanMismatchVisitor.cs
- ToolBar.cs
- FixedSOMSemanticBox.cs
- RawStylusSystemGestureInputReport.cs
- MethodBuilder.cs
- PrimarySelectionGlyph.cs
- GroupItemAutomationPeer.cs
- CapabilitiesState.cs