# IRsRenderableComponent Interface Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | Render ([in] IUnknown *pDevice)
HRESULT | Invalidate ()
HRESULT | Rebuild ()
HRESULT | OnReset ()

## Detailed Description

Generic interface used for rendered parts in UV editor.

- Contains methods for rendering on Direct3D device, validation and recovery after device reset.

## Member Function Documentation

HRESULT IRsRenderableComponent::Render | ( | [in] IUnknown * | pDevice | ) |

Renders on the specified device.

Parameters:

  | pDevice | [in] DX device.

HRESULT IRsRenderableComponent::Invalidate | ( |  | ) |

Invalidates current internal structures (does not need to be implemented).

HRESULT IRsRenderableComponent::Rebuild | ( |  | ) |

Rebuilds internal structures out of rendering cycle (does not need to be implemented).

HRESULT IRsRenderableComponent::OnReset | ( |  | ) |

Recovery routine after device loss and consequential reset.

- Should restore or dispose all DX resources (textures, vertex and index buffers).