Jump to content
  • Advertisement
Sign in to follow this  
marcin - rem

How to get the surface if I have only pointer to IGraphBuilder?

This topic is 4732 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

Is it possible? The problem is that I have only a pointer to the IGraphBuilder object, and I don't have pointer to IDirectDraw nor IDirectDrawSurface. Is it possible to somehow get the pointer to the surface. I tried to get pointer to IBaseFilter by using the findfilterbyname function of IGraphBuilder, then get the pointer to IDirectDrawVideo by using pointertobasefilter->QueryInterface(IID_IDirectDrawVideo, (void**)&pointertoddvideo) and finally to get pointer to idirectdraw and use createsurface function. Everything would be ok, but queryinterface returns that IBaseFilter doesn't support IDirectDrawVideo interface. I've searched microsoft msdn for information if IBaseFilter supports IDirectDrawVideo interface, but without succes. So I don't even know if it does. Any suggestions. Thanks for any advise.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!