Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / DirectionalLight.cs / 1305600 / DirectionalLight.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D directional light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/18/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; 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 { ////// Directional lights have no position in space and project their light along a /// particular direction, specified by the vector that defines it. /// public sealed partial class DirectionalLight : Light { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a white light looking down the positive z axis. /// public DirectionalLight() { } ////// Constructor. /// /// Diffuse color of the new light. /// Direction of the new light. public DirectionalLight(Color diffuseColor, Vector3D direction) { Color = diffuseColor; Direction = direction; } #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 directional light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/18/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; 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 { ////// Directional lights have no position in space and project their light along a /// particular direction, specified by the vector that defines it. /// public sealed partial class DirectionalLight : Light { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a white light looking down the positive z axis. /// public DirectionalLight() { } ////// Constructor. /// /// Diffuse color of the new light. /// Direction of the new light. public DirectionalLight(Color diffuseColor, Vector3D direction) { Color = diffuseColor; Direction = direction; } #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
- Models.cs
- AdapterUtil.cs
- ILGenerator.cs
- CollectionViewProxy.cs
- UIHelper.cs
- ProbeMatchesCD1.cs
- ResolveCriteriaCD1.cs
- FunctionOverloadResolver.cs
- MenuEventArgs.cs
- SiteIdentityPermission.cs
- SparseMemoryStream.cs
- EntityUtil.cs
- DataContractJsonSerializer.cs
- HttpEncoder.cs
- MethodCallExpression.cs
- BitmapEffectDrawing.cs
- ImageList.cs
- ListViewCancelEventArgs.cs
- CurrencyWrapper.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- XmlSerializationWriter.cs
- WorkflowRuntimeBehavior.cs
- PaintValueEventArgs.cs
- PromptEventArgs.cs
- ElementUtil.cs
- PermissionSet.cs
- CompletedAsyncResult.cs
- XmlSignificantWhitespace.cs
- PublisherMembershipCondition.cs
- StdValidatorsAndConverters.cs
- CharAnimationUsingKeyFrames.cs
- TraceSource.cs
- MachineKeySection.cs
- XmlCharCheckingWriter.cs
- ProviderConnectionPointCollection.cs
- SpotLight.cs
- DataGridRow.cs
- ListDictionaryInternal.cs
- GlyphInfoList.cs
- DynamicQueryableWrapper.cs
- TextBlockAutomationPeer.cs
- TrackingRecordPreFilter.cs
- FixedElement.cs
- Int32AnimationUsingKeyFrames.cs
- XmlTypeMapping.cs
- PointF.cs
- ConstraintEnumerator.cs
- MaskedTextBox.cs
- SqlTransaction.cs
- HitTestDrawingContextWalker.cs
- FileNotFoundException.cs
- PrintPreviewGraphics.cs
- GridEntryCollection.cs
- HttpModulesSection.cs
- _NTAuthentication.cs
- FontStretches.cs
- AssertSection.cs
- MasterPageBuildProvider.cs
- ExpressionBindingCollection.cs
- WebRequest.cs
- HierarchicalDataBoundControl.cs
- oledbconnectionstring.cs
- NullReferenceException.cs
- MultiSelector.cs
- TypeElement.cs
- ContractHandle.cs
- XmlTextReader.cs
- XmlSerializerFactory.cs
- _AutoWebProxyScriptEngine.cs
- InkSerializer.cs
- SymbolType.cs
- EditorAttributeInfo.cs
- StringTraceRecord.cs
- ValidationHelpers.cs
- ExtensionMethods.cs
- VectorConverter.cs
- InputEventArgs.cs
- OptionUsage.cs
- StreamingContext.cs
- SudsParser.cs
- UpWmlPageAdapter.cs
- MatrixTransform3D.cs
- SplitterCancelEvent.cs
- odbcmetadatacolumnnames.cs
- ApplicationContext.cs
- EpmTargetPathSegment.cs
- CheckBox.cs
- TemplateInstanceAttribute.cs
- Vector3DIndependentAnimationStorage.cs
- NativeMethods.cs
- HtmlControlAdapter.cs
- ApplicationFileCodeDomTreeGenerator.cs
- LinkedResourceCollection.cs
- Component.cs
- ParserExtension.cs
- KeyValueSerializer.cs
- XmlNodeChangedEventManager.cs
- AnnotationHelper.cs
- CacheVirtualItemsEvent.cs
- AnchoredBlock.cs