ParsecClientD3D9RenderFrame
ParsecStatusParsecClientD3D9RenderFrame(Parsec *ps,uint8_tstream,ParsecD3D9Device *device,ParsecPreRenderCallbackpre,const void *opaque,uint32_ttimeout)
Renders a remote video frame with D3D9.
If the timeout expires, the previous frame is rendered.
Parameters
Direction | Name | Description |
---|---|---|
in | ps | Parsec instance returned by ParsecInit . |
in | stream | Video stream index. Must be less than NUM_VSTREAMS . |
in | device | Cast to IDirect3DDevice9 \* used within your render loop. |
in | pre | ParsecPreRenderCallback fired just before the frame is rendered. May be NULL . |
in | opaque | User supplied context to be passed through pre . |
in | timeout | Time in milliseconds to wait for a new frame or render the previous frame and return. |
Returns
PARSEC_OK
if a frame was rendered successfully, otherwise a ParsecStatus
error value.