Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media3D / SpecularMaterial.cs / 1 / SpecularMaterial.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D specular material // // See spec at *** FILL IN LATER *** // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows.Markup; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using MS.Internal; namespace System.Windows.Media.Media3D { ////// SpecularMaterial allows a 2d brush to be used on a 3d model that has been lit /// with a specular lighting model /// public sealed partial class SpecularMaterial : Material { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a SpecularMaterial /// public SpecularMaterial() { } ////// Constructor that sets the initial values /// /// The new material's brush /// The specular exponent. public SpecularMaterial(Brush brush, double specularPower) { Brush = brush; SpecularPower = specularPower; } #endregion Constructors internal override bool PreCompute() { _requiresRealization = Material.PreCompute(Brush); return _requiresRealization; } internal override void UpdateRealizations( RealizationContext ctx, ref Rect bounds ) { Debug.Assert(_requiresRealization); Material.UpdateRealizations(Brush, ctx, ref bounds); } internal override bool RequiresRealization { get { return _requiresRealization; } } //------------------------------------------------------ // // Private Fields // //----------------------------------------------------- #region Private Fields private bool _requiresRealization = false; #endregion 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
- JapaneseLunisolarCalendar.cs
- View.cs
- LogStream.cs
- ContextMenuService.cs
- SqlDataSourceStatusEventArgs.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- StorageAssociationSetMapping.cs
- PointConverter.cs
- HtmlHistory.cs
- DetailsViewDesigner.cs
- WindowsFormsSynchronizationContext.cs
- MapPathBasedVirtualPathProvider.cs
- SpecialTypeDataContract.cs
- IsolatedStorageFilePermission.cs
- VerticalAlignConverter.cs
- SapiGrammar.cs
- WindowProviderWrapper.cs
- CodeAttributeArgument.cs
- BadImageFormatException.cs
- panel.cs
- NameValueConfigurationCollection.cs
- sitestring.cs
- AndCondition.cs
- Bits.cs
- DeploymentSectionCache.cs
- TimeoutStream.cs
- RankException.cs
- MetaModel.cs
- DataListAutoFormat.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- LambdaCompiler.Lambda.cs
- ModelItemCollectionImpl.cs
- EntityDataSourceDataSelectionPanel.cs
- EditorOptionAttribute.cs
- SqlRewriteScalarSubqueries.cs
- ChangePassword.cs
- Composition.cs
- Drawing.cs
- MonthChangedEventArgs.cs
- ThousandthOfEmRealPoints.cs
- AxHost.cs
- Expression.cs
- WebPartZoneBaseDesigner.cs
- SystemWebCachingSectionGroup.cs
- RepeatButtonAutomationPeer.cs
- SQLMembershipProvider.cs
- BinaryCommonClasses.cs
- PersonalizablePropertyEntry.cs
- COM2PictureConverter.cs
- MessageQueueConverter.cs
- WorkflowMarkupSerializationException.cs
- TemplateParser.cs
- DocumentEventArgs.cs
- DataGridState.cs
- Transform3D.cs
- ButtonField.cs
- XamlContextStack.cs
- CompiledQuery.cs
- TextServicesManager.cs
- validationstate.cs
- CodeGenerationManager.cs
- XmlDataCollection.cs
- SelectionUIService.cs
- ping.cs
- CompilerLocalReference.cs
- HMACSHA512.cs
- EpmCustomContentWriterNodeData.cs
- DocumentPageView.cs
- MemberAssignmentAnalysis.cs
- SamlSecurityToken.cs
- COM2PropertyDescriptor.cs
- LambdaCompiler.Address.cs
- MemberExpression.cs
- ImageAnimator.cs
- AppDomainEvidenceFactory.cs
- DocumentPropertiesDialog.cs
- GroupLabel.cs
- ConstructorExpr.cs
- DataGridViewColumn.cs
- ApplicationManager.cs
- OverrideMode.cs
- ComponentEditorForm.cs
- _NestedSingleAsyncResult.cs
- GridView.cs
- OdbcConnectionString.cs
- EmptyQuery.cs
- smtpconnection.cs
- _CacheStreams.cs
- Native.cs
- baseshape.cs
- AssemblyBuilder.cs
- LinkArea.cs
- GraphicsPath.cs
- GPPOINT.cs
- ContextMenuStripGroup.cs
- IChannel.cs
- ImageUrlEditor.cs
- TextBox.cs
- DataGridViewRowPostPaintEventArgs.cs
- XmlSchemaSimpleType.cs