# IRsMaterialGeneric Struct Reference

IRsMaterialGeneric interface. More...

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | GetMatClsId (RtMatClsId *pMatClsId)
HRESULT | GetGenericDesc ([out] IRdMaterialGeneric **pMaterialGen)
HRESULT | GetUpdateCmdId ([out] GUID *pCmdId)
HRESULT | LockObject ()
HRESULT | UnlockObject ()
HRESULT | IsEqual ([in] IRsMaterialGeneric *pGenericMat)

## Detailed Description

IRsMaterialGeneric interface.

This interface allows materials to convert between various material classes generic material interface

## Member Function Documentation

HRESULT IRsMaterialGeneric::GetMatClsId | ( | RtMatClsId * | pMatClsId | ) |

Returns ID of the material class

HRESULT IRsMaterialGeneric::GetGenericDesc | ( | [out] IRdMaterialGeneric ** | pMaterialGen | ) |

Get generic description of the material. This is used for generic material description and synchronisation purposes.

HRESULT IRsMaterialGeneric::GetUpdateCmdId | ( | [out] GUID * | pCmdId | ) |

Get guid of command that is used for material update from generic description

HRESULT IRsMaterialGeneric::LockObject | ( |  | ) |

Lock the object

HRESULT IRsMaterialGeneric::UnlockObject | ( |  | ) |

Unlock the object

HRESULT IRsMaterialGeneric::IsEqual | ( | [in] IRsMaterialGeneric * | pGenericMat | ) |

Check if material is equal with this material.

Parameters:

  | pGenericMat | Material to compate with this material.

Returns:
  S_OK if materials are equal. Otherwise return S_FALSE or error code.