Export (0) Print
Expand All

BasicEffect Members

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

NameDescription
Public MethodBasicEffectOverloaded. Creates an instance of this object.

NameDescription
Public PropertyAlphaGets or sets the material alpha which determines its transparency. Range is between 1 (fully opaque) and 0 (fully transparent).
Public PropertyAmbientLightColorGets or sets the ambient color for a light, the range of color values is from 0 to 1.
Public PropertyCurrentTechnique(Inherited from Effect.)
Public PropertyDiffuseColorGets or sets the diffuse color for a material, the range of color values is from 0 to 1.
Public PropertyDirectionalLight0Gets the first directional light for this effect.
Public PropertyDirectionalLight1Gets the second directional light for this effect.
Public PropertyDirectionalLight2Gets the third directional light for this effect.
Public PropertyEmissiveColorGets or sets the emissive color for a material, the range of color values is from 0 to 1.
Public PropertyFogColorGets or sets the fog color, the range of color values is from 0 to 1.
Public PropertyFogEnabledEnables fog.
Public PropertyFogEndGets or sets the maximum z value for fog, which ranges from 0 to 1.
Public PropertyFogStartGets or sets the minimum z value for fog, which ranges from 0 to 1.
Public PropertyGraphicsDevice(Inherited from GraphicsResource.)
Public PropertyIsDisposed(Inherited from GraphicsResource.)
Public PropertyLightingEnabledEnables lighting for this effect.
Public PropertyName(Inherited from GraphicsResource.)
Public PropertyParameters(Inherited from Effect.)
Public PropertyPreferPerPixelLightingGets 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 PropertyProjectionGets or sets the projection matrix.
Public PropertySpecularColorGets or sets the specular color for a material, the range of color values is from 0 to 1.
Public PropertySpecularPowerGets or sets the specular power of this effect material.
Public PropertyTag(Inherited from GraphicsResource.)
Public PropertyTechniques(Inherited from Effect.)
Public PropertyTextureGets or sets a texture to be applied by this effect.
Public PropertyTextureEnabledEnables textures for this effect.
Public PropertyVertexColorEnabledEnables use vertex colors for this effect.
Public PropertyViewGets or sets the view matrix.
Public PropertyWorldGets or sets the world matrix.

NameDescription
Public MethodCloneCreate a copy of this object.
Public MethodDispose(Inherited from GraphicsResource.)
Public MethodEnableDefaultLightingEnables default lighting for this effect.
Public MethodEquals(Inherited from Object.)
Public MethodGetHashCode(Inherited from Object.)
Public MethodGetType(Inherited from Object.)
Public MethodToString(Inherited from GraphicsResource.)

NameDescription
Protected MethodDispose(Inherited from Effect.)
Protected MethodFinalize(Inherited from GraphicsResource.)
Protected MethodMemberwiseClone(Inherited from Object.)
Protected MethodOnApplyComputes derived parameter values immediately before applying the effect.

NameDescription
Public EventDisposing(Inherited from GraphicsResource.)

Community Additions

ADD
Show:
© 2014 Microsoft