Click or drag to resize
AB4D logo

SpriteEffect Class

SpriteEffect is a base abstract class that can render 2D sprites to the scene.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXDeviceResource
        Ab3d.DirectX.EffectsSpriteEffect
          Ab3d.DirectX.EffectsStandardSpriteEffect

Namespace: Ab3d.DirectX.Effects
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public abstract class SpriteEffect : SharedDXDeviceResource

The SpriteEffect type exposes the following members.

Properties
 NameDescription
Public propertyLastUsedFrameNumber Gets the frame number when the ApplyPerFrameSettings was last called.
Public propertyRequiredInputLayoutType Gets the input layout that is required to render this effect.
Top
Methods
 NameDescription
Public methodApplyBatchStates Applies the shader states that are used to render one sprite batch
Public methodApplyBatchTransform Applies the transformation setting that are used to render one sprite batch
Public methodApplyPerFrameSettings Sets per frame settings for this effect (this sets camera, lights and other per frame settings).
Public methodApplyTextureSetting Applies the setting that are used to sprites with the same texture
Public methodPreloadShaders PreloadShaders can be called to load the shaders in advance before they are used. Calling this method increases the startup time, but when the 3D object needs to be shown, it is shown faster because all the shaders have already been created.
Public methodResetLastUsedFrameNumber ResetLastUsedFrameNumber sets LastUsedFrameNumber to -1. This is used to prevent calling ApplyPerFrameSettings when this effect is used multiple times with different lights on one frame.
Top
See Also