EffectsExtension.GenEffect Method

Definition

Overloads

GenEffect()

Generates a single effect object.

GenEffect(UInt32)

Generates a single effect object.

GenEffect()

Generates a single effect object.

public int GenEffect ();
member this.GenEffect : unit -> int

Returns

A handle to the generated effect object.

Remarks

The GenEffects function is used to create one or more Effect objects. An Effect object stores an effect type and a set of parameter values to control that Effect. In order to use an Effect it must be attached to an Auxiliary Effect Slot object.

After creation an Effect has no type (EfxEffectType.Null), so before it can be used to store a set of parameters, the application must specify what type of effect should be stored in the object, using Effect() with EfxEffecti.

Applies to

GenEffect(UInt32)

Important

This API is not CLS-compliant.

Generates a single effect object.

[System.CLSCompliant(false)]
public void GenEffect (out uint effect);
member this.GenEffect :  -> unit

Parameters

effect
UInt32

A handle to the generated effect object.

Attributes

Applies to