C# Class Microsoft.Xna.Framework.Graphics.BasicEffect

Built-in effect that supports optional texturing, vertex coloring, fog, and lighting.
Inheritance: Effect, IEffectMatrices, IEffectLights, IEffectFog
Exibir arquivo Open project: procfxgen/MGShaderEditor Class Usage Examples

Public Methods

Method Description
BasicEffect ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : Microsoft.Xna.Framework

Creates a new BasicEffect with default parameter settings.

Clone ( ) : Effect

Creates a clone of the current BasicEffect instance.

EnableDefaultLighting ( ) : void

Protected Methods

Method Description
BasicEffect ( BasicEffect cloneSource ) : Microsoft.Xna.Framework

Creates a new BasicEffect by cloning parameter settings from an existing instance.

OnApply ( ) : bool

Lazily computes derived parameter values immediately before applying the effect.

Private Methods

Method Description
CacheEffectParameters ( BasicEffect cloneSource ) : void

Looks up shortcut references to our effect parameters.

Method Details

BasicEffect() protected method

Creates a new BasicEffect by cloning parameter settings from an existing instance.
protected BasicEffect ( BasicEffect cloneSource ) : Microsoft.Xna.Framework
cloneSource BasicEffect
return Microsoft.Xna.Framework

BasicEffect() public method

Creates a new BasicEffect with default parameter settings.
public BasicEffect ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : Microsoft.Xna.Framework
device Microsoft.Xna.Framework.Graphics.GraphicsDevice
return Microsoft.Xna.Framework

Clone() public method

Creates a clone of the current BasicEffect instance.
public Clone ( ) : Effect
return Effect

EnableDefaultLighting() public method

public EnableDefaultLighting ( ) : void
return void

OnApply() protected method

Lazily computes derived parameter values immediately before applying the effect.
protected OnApply ( ) : bool
return bool