Export (0) Print
Expand All

Effect Constructor

Initializes a new instance of this class.

NameDescription
Effect (GraphicsDevice, Byte[], CompilerOptions, EffectPool)Initializes a new instance of this class from a compiled effect, specifying the compiled effect as a byte array.
Effect (GraphicsDevice, Effect)Initializes a new instance of this class, specifying the graphics device to associate with this effect and the effect to clone.
Effect (GraphicsDevice, Stream, CompilerOptions, EffectPool)Initializes a new instance of this class from a compiled effect, specifying the compiled effect as a stream.
Effect (GraphicsDevice, Stream, Int32, CompilerOptions, EffectPool)Initializes a new instance of this class from a compiled effect, specifying the compiled effect as a stream, as well as the number of bytes in the stream.
Effect (GraphicsDevice, String, CompilerOptions, EffectPool)Initializes a new instance of this class from a compiled effect, specifying the compiled effect by file name.
Bb195922.note(en-US,XNAGameStudio.30).gifTip
In most cases, it is preferrable to initialize a new instance of an effect using the ContentManager.Load<Effect> method rather than using the Effect constructors. For an example of initializing an effect with this method, please see How To: Create and Apply Custom Effects.

Community Additions

ADD
Show:
© 2014 Microsoft