# HSmoothShadow

## Functions

| `HSmoothShadow`
| `~HSmoothShadow`
void | `CleanUp`
void | `Create`
void | `Create`
int | `GetFilterSize`
int | `GetTextureSize`
void | `SetTextureSize`
void | `SetFilter`
void | `UnDefineShadowTexture`
void | `SetAllowOpenglShadow`
void | `UnDefineAllShadowTextures`

## Detailed Description

class HSmoothShadow : public HShadow

  This class has been deprecated.

  This class has been deprecated.

  Public Functions

  HSmoothShadow(HC_KEY ModelSegmentKey, HC_KEY ShadowBaseSegmentKey, bool UseOglShadow = false)
    Parameters

      - ModelSegmentKey – Top-Level Segment that shadows should be applied to

      - ShadowBaseSegmentKey – Segment that contains the shadow geometry

      - UseOglShadow – Enables Hardware Support for Shadow Generation

  virtual ~HSmoothShadow()
  void CleanUp()

    Objetct Cleanup

  void Create(ShadowPlaneType ptype, int TextureSize = 0, int FilterSize = -1, int filter[] = 0)

    Creates a smooth shadow at the given plane

    Parameters

      - ptype – can be XZ_PLANE, XY_PLANE or YZ_PLANE.

      - TextureSize – width/height of the shadow texture. For full hardware support must be 64,128, or 256

      - FilterSize – width/height of the filter used for texture smoothing (only uneven filter sizes make sense!)

      - filter – Pointer to texture smoothing

  void Create()

    Creates a smooth shadow with the current parameters

  inline int GetFilterSize()

    Returns the shadow filter dimension

  inline int GetTextureSize()

    Returns the texture size of the shadow

  inline void SetTextureSize(int TextureSize)

    Sets the texture size of the shadow

    Parameters

      TextureSize – dimensions of texture in x/y

  inline void SetFilter(int filter[], int FilterSize)

    Specifies the smoothing filter

    Parameters

      - filter – Pointer to smoothing filter

      - FilterSize – SIze of smoothing filter

  void UnDefineShadowTexture()

    Undefines the Shadow Texture

  inline void SetAllowOpenglShadow(bool AllowOpenglShadow)

    Allow Opengl offscreen buffer for shadow generation

    Parameters

      AllowOpenglShadow – true = opengl offscreen buffer, false = image driver

  Public Static Functions

  static void UnDefineAllShadowTextures(HC_KEY modelsegmentkey)

    Undefines all Shadow Textures