Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media3D / DirectionalLight.cs / 1 / 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
- WinEventWrap.cs
- NetNamedPipeSecurity.cs
- ReadOnlyPropertyMetadata.cs
- WSSecureConversationFeb2005.cs
- DetailsViewRow.cs
- UnsafePeerToPeerMethods.cs
- TreeNode.cs
- DetailsView.cs
- Point3DCollectionConverter.cs
- Rect.cs
- CancellationState.cs
- DataBindingCollection.cs
- Parameter.cs
- _CommandStream.cs
- InputManager.cs
- TransactionProtocol.cs
- Block.cs
- GlyphTypeface.cs
- XmlSchemaValidationException.cs
- CoTaskMemUnicodeSafeHandle.cs
- AssociationTypeEmitter.cs
- SmtpFailedRecipientException.cs
- Deflater.cs
- OutputCacheSettings.cs
- ScriptMethodAttribute.cs
- FontEmbeddingManager.cs
- ClientRolePrincipal.cs
- GetParentChain.cs
- BulletedListEventArgs.cs
- CodeBinaryOperatorExpression.cs
- Misc.cs
- Sql8ExpressionRewriter.cs
- ObjectCache.cs
- DbConnectionPoolCounters.cs
- SourceSwitch.cs
- ResourceSet.cs
- UIAgentAsyncBeginRequest.cs
- MetadataItemCollectionFactory.cs
- PropertyMetadata.cs
- ValueChangedEventManager.cs
- TaiwanLunisolarCalendar.cs
- ISFClipboardData.cs
- ActivityMarkupSerializationProvider.cs
- StopStoryboard.cs
- ListViewPagedDataSource.cs
- EffectiveValueEntry.cs
- NullEntityWrapper.cs
- FlowDocument.cs
- SqlReferenceCollection.cs
- TextContainerHelper.cs
- ImageMapEventArgs.cs
- NCryptNative.cs
- ScriptBehaviorDescriptor.cs
- ThreadExceptionDialog.cs
- DbQueryCommandTree.cs
- ScriptReferenceBase.cs
- DataGridViewTextBoxCell.cs
- NonSerializedAttribute.cs
- UpdateException.cs
- CheckBox.cs
- TypeConverterMarkupExtension.cs
- RadioButtonStandardAdapter.cs
- CompositeDispatchFormatter.cs
- EventSinkActivityDesigner.cs
- DataControlFieldTypeEditor.cs
- ChooseAction.cs
- ConfigurationValue.cs
- BackoffTimeoutHelper.cs
- InvalidChannelBindingException.cs
- StylusLogic.cs
- SecurityTraceRecordHelper.cs
- DocComment.cs
- ChannelDemuxer.cs
- CodeRegionDirective.cs
- IndexerNameAttribute.cs
- DataGridViewCheckBoxCell.cs
- ArithmeticException.cs
- ReflectionHelper.cs
- ImageSource.cs
- TimeManager.cs
- AutomationAttributeInfo.cs
- CodeRemoveEventStatement.cs
- TransformerTypeCollection.cs
- querybuilder.cs
- DataGridViewButtonColumn.cs
- GcSettings.cs
- Repeater.cs
- XmlWriterSettings.cs
- XmlAnyElementAttribute.cs
- OutputCacheProfileCollection.cs
- SapiRecognizer.cs
- OutputCacheSettingsSection.cs
- WrapPanel.cs
- isolationinterop.cs
- SqlCacheDependencyDatabase.cs
- CellTreeNode.cs
- XmlDataCollection.cs
- InternalPolicyElement.cs
- DesignRelationCollection.cs
- CodePageUtils.cs