• Advertisement
Sign in to follow this  

How to use ID3DXEffect in Custom EVR Presenter?

This topic is 2127 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

I'm trying to use Effect Framework in Custom EVR Presenter. However, ID3DXEffect need a IDirect3DTexture9 parameter while EVR Presenter can only display IDirect3DSurface9. How can i dislay the frame with IDirect3dTexture9.

In addition, pSurface->GetContainer(IID_IDirect3DTexture9,...) return E_NOINTERFACE.

I will be very appreciated for your help.

Thanks.

Share this post


Link to post
Share on other sites
Advertisement
[font=arial,helvetica,sans-serif]I am not sure, but maybe you would:[/font]

  • [font=arial,helvetica,sans-serif]Create an empty Texture by CreateTexture[/font]
  • [font=arial,helvetica,sans-serif]LockRect in the surface[/font]
  • [font=arial,helvetica,sans-serif]LockRect in the texture[/font]
  • [font=arial,helvetica,sans-serif]Copy data into this texture[/font]
  • [font=arial,helvetica,sans-serif]UnlockRect twice[/font]

    [font=arial,helvetica,sans-serif]A bit similar and more advanced code you would find here:[/font]
    [font=arial,helvetica,sans-serif]http://blogs.msdn.co...ple-update.aspx[/font]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement