BasicEffect Members

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

Public Constructors

Name Description
Public Method BasicEffect Overloaded. Creates an instance of this object.

Public Properties

Name Description
Public Property Alpha Gets or sets the material alpha which determines its transparency. Range is between 1 (fully opaque) and 0 (fully transparent).
Public Property AmbientLightColor Gets or sets the ambient color for a light, the range of color values is from 0 to 1.
Public Property CurrentTechnique (Inherited from Effect.)
Public Property DiffuseColor Gets or sets the diffuse color for a material, the range of color values is from 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 EmissiveColor Gets or sets the emissive color for a material, the range of color values is from 0 to 1.
Public Property FogColor Gets or sets the fog color, the range of color values is from 0 to 1.
Public Property FogEnabled Enables fog.
Public Property FogEnd Gets or sets the maximum z value for fog.
Public Property FogStart Gets or sets the minimum z value for fog.
Public Property GraphicsDevice (Inherited from GraphicsResource.)
Public Property IsDisposed (Inherited from GraphicsResource.)
Public Property LightingEnabled Enables lighting for this effect.
Public Property Name (Inherited from GraphicsResource.)
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 for a material, the range of color values is from 0 to 1.
Public Property SpecularPower Gets or sets the specular power of this effect material.
Public Property Tag (Inherited from GraphicsResource.)
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 Clone Create a copy of this object.
Public Method Dispose (Inherited from GraphicsResource.)
Public Method EnableDefaultLighting Enables default lighting for this effect.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method ToString (Inherited from GraphicsResource.)

Protected Methods

Name Description
Protected Method Dispose (Inherited from Effect.)
Protected Method Finalize (Inherited from GraphicsResource.)
Protected Method MemberwiseClone (Inherited from Object.)
Protected Method OnApply Computes derived parameter values immediately before applying the effect.

Public Events

Name Description
Public Event Disposing (Inherited from GraphicsResource.)

See Also

Reference

BasicEffect Class
Microsoft.Xna.Framework.Graphics Namespace