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
- XamlSerializerUtil.cs
- TileBrush.cs
- OdbcConnectionStringbuilder.cs
- AbstractDataSvcMapFileLoader.cs
- ObfuscateAssemblyAttribute.cs
- ToolBar.cs
- WCFServiceClientProxyGenerator.cs
- WebBrowserEvent.cs
- ProjectionAnalyzer.cs
- Win32KeyboardDevice.cs
- InputMethodStateTypeInfo.cs
- Buffer.cs
- HtmlInputHidden.cs
- SeverityFilter.cs
- DataGridToolTip.cs
- DependencyPropertyDescriptor.cs
- SplashScreenNativeMethods.cs
- ClientTargetSection.cs
- HttpHandlersSection.cs
- DesignerSelectionListAdapter.cs
- GenericUriParser.cs
- BaseValidatorDesigner.cs
- PathParser.cs
- DbDataReader.cs
- AspNetHostingPermission.cs
- XmlSchemaType.cs
- BaseUriHelper.cs
- DesignerActionGlyph.cs
- PropertyInformationCollection.cs
- updatecommandorderer.cs
- KeyedCollection.cs
- WindowsListViewSubItem.cs
- TextEditorTyping.cs
- ShutDownListener.cs
- ApplicationSettingsBase.cs
- SafeBitVector32.cs
- CodeCommentStatement.cs
- PresentationTraceSources.cs
- DataColumnCollection.cs
- CalendarTable.cs
- UInt64.cs
- IPGlobalProperties.cs
- MultiTrigger.cs
- StylusDownEventArgs.cs
- NullableConverter.cs
- CapacityStreamGeometryContext.cs
- DataGridViewEditingControlShowingEventArgs.cs
- _Events.cs
- LinkGrep.cs
- Gdiplus.cs
- UIElement3D.cs
- CharUnicodeInfo.cs
- ObjectSerializerFactory.cs
- IndexerNameAttribute.cs
- ContextMarshalException.cs
- SemaphoreSecurity.cs
- AuthenticateEventArgs.cs
- ObjectCloneHelper.cs
- ParallelRangeManager.cs
- Triangle.cs
- ExtendedProperty.cs
- BoundsDrawingContextWalker.cs
- ListControl.cs
- VirtualPath.cs
- AvTrace.cs
- DataGridViewColumnEventArgs.cs
- SchemaRegistration.cs
- CodeDelegateCreateExpression.cs
- ApplicationException.cs
- RoutedEventHandlerInfo.cs
- ICspAsymmetricAlgorithm.cs
- RecordManager.cs
- FontSizeConverter.cs
- ListViewCommandEventArgs.cs
- ArrayEditor.cs
- RegexStringValidator.cs
- MetaType.cs
- HTMLTextWriter.cs
- Registry.cs
- SmiMetaData.cs
- PlaceHolder.cs
- CLSCompliantAttribute.cs
- XamlFilter.cs
- TemplateControlBuildProvider.cs
- FixedSOMPage.cs
- PropertyExpression.cs
- BitmapEffectDrawing.cs
- EventMappingSettings.cs
- DataTable.cs
- HtmlElementErrorEventArgs.cs
- DispatcherHookEventArgs.cs
- UIAgentAsyncBeginRequest.cs
- ProfilePropertySettingsCollection.cs
- CriticalExceptions.cs
- XPathScanner.cs
- DependencyObjectPropertyDescriptor.cs
- MemberMaps.cs
- DragCompletedEventArgs.cs
- HandlerWithFactory.cs
- XPathScanner.cs