Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / PointLight.cs / 1305600 / 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
- Int32RectValueSerializer.cs
- SerializableAttribute.cs
- DbParameterCollection.cs
- HelpProvider.cs
- ConnectionPoolRegistry.cs
- WpfXamlMember.cs
- MissingFieldException.cs
- StringSorter.cs
- WebPartUserCapability.cs
- DictionarySectionHandler.cs
- WorkflowInstanceAbortedRecord.cs
- TransformConverter.cs
- RestHandlerFactory.cs
- WeakEventTable.cs
- MemberAccessException.cs
- ParamArrayAttribute.cs
- SpeechAudioFormatInfo.cs
- FileDialog_Vista.cs
- ConfigXmlCDataSection.cs
- FileDialog.cs
- Overlapped.cs
- StrongNameMembershipCondition.cs
- TypeUtil.cs
- DataGridViewTextBoxEditingControl.cs
- TemplateBuilder.cs
- DocumentGridContextMenu.cs
- DataGridViewToolTip.cs
- ListenerConfig.cs
- QualifiedCellIdBoolean.cs
- OpenTypeCommon.cs
- rsa.cs
- StrokeIntersection.cs
- BamlLocalizabilityResolver.cs
- Console.cs
- HtmlControl.cs
- Bidi.cs
- AutomationPropertyInfo.cs
- XsdBuildProvider.cs
- ContainsRowNumberChecker.cs
- ConfigLoader.cs
- TypeConverterAttribute.cs
- QueryAccessibilityHelpEvent.cs
- SemaphoreFullException.cs
- DataServiceQueryOfT.cs
- SettingsBase.cs
- ResourceProperty.cs
- StylusPointPropertyInfoDefaults.cs
- FormViewDeleteEventArgs.cs
- ItemDragEvent.cs
- BooleanStorage.cs
- MetabaseServerConfig.cs
- ToolStripActionList.cs
- TraceHandler.cs
- TCEAdapterGenerator.cs
- TextEffectResolver.cs
- PackagePartCollection.cs
- CommonDialog.cs
- GridViewCommandEventArgs.cs
- IISMapPath.cs
- DataSourceProvider.cs
- ClientCultureInfo.cs
- WebConfigurationHost.cs
- LeafCellTreeNode.cs
- StrokeDescriptor.cs
- BitmapInitialize.cs
- Main.cs
- CopyAttributesAction.cs
- HtmlElementErrorEventArgs.cs
- DigitShape.cs
- ConfigPathUtility.cs
- TextServicesLoader.cs
- UmAlQuraCalendar.cs
- Qualifier.cs
- PropertyValueUIItem.cs
- FormViewInsertEventArgs.cs
- ZipQueryOperator.cs
- ToolStripGrip.cs
- OrthographicCamera.cs
- ellipse.cs
- DelegateBodyWriter.cs
- SafeRightsManagementSessionHandle.cs
- SubpageParaClient.cs
- HandleRef.cs
- SmtpDigestAuthenticationModule.cs
- Int16AnimationBase.cs
- RoleGroup.cs
- GridViewUpdatedEventArgs.cs
- DropShadowBitmapEffect.cs
- StrokeRenderer.cs
- Span.cs
- AutomationEvent.cs
- ToolStripItem.cs
- AnnotationComponentChooser.cs
- SortExpressionBuilder.cs
- XmlSubtreeReader.cs
- ResetableIterator.cs
- FileEnumerator.cs
- RegionData.cs
- OleDbParameterCollection.cs
- Double.cs