Bagikan melalui


BasicEffect Members

The following tables list the members exposed by the BasicEffect type.

Public Constructors

Name Description
Public Method BasicEffect Overloaded. Initializes a new instance of the BasicEffect class.

Public Properties

Name Description
Public Property Alpha Gets or sets the alpha this effect material.
Public Property AmbientLightColor Gets or sets the ambient light color of this effect.
Public Property Creator (Inherited from Effect.)
Public Property CurrentTechnique (Inherited from Effect.)
Public Property DiffuseColor Gets or sets the diffuse color of this effect material. Value takes 0 to 1.
Public Property DirectionalLight0 Gets the first directional light for this effect.
Public Property DirectionalLight1 Gets the second directional light for this effect.
Public Property DirectionalLight2 Gets the third directional light for this effect.
Public Property EffectPool (Inherited from Effect.)
Public Property EmissiveColor Gets or sets the emissive color of the effect material.
Public Property FogColor Gets or sets the fog color for this effect.
Public Property FogEnabled Enables fog for this effect.
Public Property FogEnd Gets or sets the ending distance of fog.
Public Property FogStart Gets or sets the fog start distance.
Public Property Functions (Inherited from Effect.)
Public Property GraphicsDevice (Inherited from Effect.)
Public Property IsDisposed (Inherited from Effect.)
Public Property LightingEnabled Enables lighting for this effect.
Public Property Parameters (Inherited from Effect.)
Public Property PreferPerPixelLighting Gets or sets a value indicating that per-pixel lighting should be used if it is available for the current adapter. Per-pixel lighting is available if a graphics adapter supports Pixel Shader Model 2.0.
Public Property Projection Gets or sets the projection matrix.
Public Property SpecularColor Gets or sets the specular color of this effect material.
Public Property SpecularPower Gets or sets the specular power of this effect material.
Public Property Techniques (Inherited from Effect.)
Public Property Texture Gets or sets a texture to be applied by this effect.
Public Property TextureEnabled Enables textures for this effect.
Public Property VertexColorEnabled Enables use vertex colors for this effect.
Public Property View Gets or sets the view matrix.
Public Property World Gets or sets the world matrix.

Public Methods

Name Description
Public Method Begin (Inherited from Effect.)
Public Method Clone Creates a clone of an effect.
Public Method CommitChanges (Inherited from Effect.)
Public Method CompileEffectFromFile (Inherited from Effect.)
Public Method CompileEffectFromSource (Inherited from Effect.)
Public Method Disassemble (Inherited from Effect.)
Public Method Dispose (Inherited from Effect.)
Public Method EnableDefaultLighting Enables default lighting for this effect.
Public Method End (Inherited from Effect.)
Public Method Equals (Inherited from Effect.)
Public Method GetHashCode (Inherited from Effect.)
Public Method GetType (Inherited from Object.)
Public Method op_Equality (Inherited from Effect.)
Public Method op_Inequality (Inherited from Effect.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Effect.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Effect.)
Protected Method MemberwiseClone (Inherited from Object.)
Protected Method raise_Disposing (Inherited from Effect.)
Protected Method raise_Lost (Inherited from Effect.)
Protected Method raise_Reset (Inherited from Effect.)

Public Events

Name Description
Public Event Disposing (Inherited from Effect.)
Public Event Lost (Inherited from Effect.)
Public Event Reset (Inherited from Effect.)

See Also

Reference

BasicEffect Class
Microsoft.Xna.Framework.Graphics Namespace