EffectStateManager Class

Language:

Note: This documentation is preliminary and is subject to change.

EffectStateManager is a user-implemented class that allows an application to set the device state from an effect. Each of the methods in this class must be implemented by the user and will then be used as a callback to the application when either of the following occur:

Definition

Visual Basic .NET MustInherit Public Class EffectStateManager
   Inherits Object 
C# public abstract class EffectStateManager : Object
Managed C++ public __gc __abstract class EffectStateManager  : public Object
JScript .NET public abstract class EffectStateManager extends Object

Members Table

Method Description
EffectStateManager Initializes a new instance of the EffectStateManager class.
Finalize Allows the EffectStateManager object to free resources before it is destroyed by the garbage collector.
LightEnable Enables or disables a light.
SetLight Sets a light.
SetMaterial Sets a material.
SetNPatchMode Sets the number of subdivision segments for N-patches.
SetPixelShader Sets a pixel shader.
SetPixelShaderConstantBoolean Sets an array of pixel shader Boolean constants.
SetPixelShaderConstantInt32 Sets an array of pixel shader integer constants.
SetPixelShaderConstantSingle Sets an array of pixel shader floating-point constants.
SetRenderState Sets a render state.
SetSamplerState Sets a sampler state.
SetTexture Sets a texture.
SetTextureStageState Sets a texture stage state.
SetTransform Sets a transform.
SetVertexFormat Sets a vertex format code.
SetVertexShader Sets a vertex shader.
SetVertexShaderConstantBoolean Sets an array of vertex shader Boolean constants.
SetVertexShaderConstantInt32 Sets an array of vertex shader integer constants.
SetVertexShaderConstantSingle Sets an array of vertex shader floating-point constants.

Inheritance Hierarchy

Object Leave Site
EffectStateManager

Remarks

A user creates a class that inherits from EffectStateManager and implements all the methods. Once the derived class is created, you can get or set the state manager within an effect using Effect.StateManager.

Class Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3DX (microsoft.directx.direct3dx.dll)
Strong Name Microsoft.DirectX.Direct3DX,  Version=1.0.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.