Sign in to follow this  

Dx9 Where is CopyRects

Recommended Posts

a. IDirect3DDevice9::StretchRect()
b. IDirect3DDevice9::UpdateSurface()

2) If you're using this to do 2D blits, then IMO it would be better for you to use textured sprites instead.

[EDIT: bah, waaay too late [smile]]

a. BornToCode: you need to give us more information than "None of them are working". That's like walking into a hospital and not telling the doctor any more than "it hurts" - we need more clues to give a diagnosis or suggest any treatment...

b. In what way do StretchRect() or UpdateSurface() "not work"?
- not compiling?
- not linking?
- no output?
- program runs slow?
- graphical corruption?
- user mode crash (e.g. Access Violation)?
- kernel mode crash (e.g. blue screen of death)?
- breaks computer?...

c. What have you tried already to rectify whichever fault you've seen?

Share this post

Link to post
Share on other sites
Things almost definitely happen, you're just not seeing any of them. What HRESULT codes do the functions return? What does the DirectX debug spew tell you?

Read through some chunks of the Forum FAQ (particularly the stuff about how to debug a DirectX app) and see if you can gather any more information. We're not psychic, we can't tell you why your code isn't working unless you cooperate and tell us more about what's going on.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this