# IRsUVEGrid Interface Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | SetViewportData ([in] const RtUVcoord &panning,[in] RtFloat zoom,[in] RtFloat aspect)
HRESULT | SetParams ([in] RtDWORD color,[in] RtFloat density)
HRESULT | Rebuild ([in] IUnknown *pDevice)

## Detailed Description

Renderable component which displays auxiliary grid in UV editor

## Member Function Documentation

HRESULT IRsUVEGrid::SetViewportData | ( | [in] const RtUVcoord & | panning,
|  | [in] RtFloat | zoom,
|  | [in] RtFloat | aspect |
| ) |  |  |

Sets the viewport data for rendering and invalidates current grid vertex buffer buffer.

Parameters:

  | panning | [in] Set panning.
  | zoom | [in] Set zoom.
  | aspect | [in] Set aspect.

HRESULT IRsUVEGrid::SetParams | ( | [in] RtDWORD | color,
|  | [in] RtFloat | density |
| ) |  |  |

Sets current color and density.

- Color also contains transparency information.
- Invalidates current grid vertex buffer.

Parameters:

  | color | [in] Color value to set.
  | density | [in] Density value to set.

HRESULT IRsUVEGrid::Rebuild | ( | [in] IUnknown * | pDevice | ) |

Renders the grid on specified device.

- If grid vertex buffer is not valid, it is rebuilt.

Parameters:

  | pDevice | [in] Set device.