Public Member Functions | |
| HRESULT | Render ([in] IUnknown *pDevice) |
| HRESULT | Begin () |
| HRESULT | End () |
| HRESULT | Reset () |
| HRESULT | AddPoint ([in] const RtUVcoord &pt) |
| HRESULT | SetShape ([in] IRdBitmap *pShape) |
| HRESULT | SetColor ([in] RtDWORD color) |
| HRESULT | SetSize ([in] RtFloat size) |
| HRESULT | Validate ([in] IUnknown *pDevice) |
| HRESULT | SetViewportData ([in] const RtUVcoord &pan,[in] RtFloat zoom,[in] RtFloat aspect) |
| HRESULT | OnReset () |
| HRESULT IRsPaintRenderer::Render | ( | [in] IUnknown * | pDevice | ) |
Renders the preview to specified device.
| pDevice | [in] DirectX device (IDirect3DDevice9) |
| HRESULT IRsPaintRenderer::Begin | ( | ) |
Enables preview rendering.
| HRESULT IRsPaintRenderer::End | ( | ) |
Disables preview rendering
| HRESULT IRsPaintRenderer::Reset | ( | ) |
Clears the drag line
| HRESULT IRsPaintRenderer::AddPoint | ( | [in] const RtUVcoord & | pt | ) |
Adds new point at the end of drag line.
| pt | [in] New point. |
| HRESULT IRsPaintRenderer::SetShape | ( | [in] IRdBitmap * | pShape | ) |
Sets the brush bitmap to use (takes alpha channel into account).
| pShape | [in] Set the brush bitmap. |
| HRESULT IRsPaintRenderer::SetColor | ( | [in] RtDWORD | color | ) |
Sets the color of brush.
| color | [in] Set color of brush (format=0xAARRGGBB). |
| HRESULT IRsPaintRenderer::SetSize | ( | [in] RtFloat | size | ) |
Sets the brush size.
| size | [in] Set brush size. |
| HRESULT IRsPaintRenderer::Validate | ( | [in] IUnknown * | pDevice | ) |
Creates brush texture from brush bitmap to allow rendering.
| pDevice | [in] Create brush texture. |
| HRESULT IRsPaintRenderer::SetViewportData | ( | [in] const RtUVcoord & | pan, | |
| [in] RtFloat | zoom, | |||
| [in] RtFloat | aspect | |||
| ) |
Sets up current viewport.
| pan | [in] . | |
| zoom | [in] . | |
| aspect | [in] . |
| HRESULT IRsPaintRenderer::OnReset | ( | ) |
Releases brush texture when device has been reset. It will be rebuilt in next validate cycle.
1.5.5