Jump to content
  • Advertisement
Sign in to follow this  
BornToCode

Dx9 Where is CopyRects

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

i am trying to copy a DIRECT3DSURFACE9 to the backbuffer but it seems like Stupid MS Remove it in DX9 is there any other way to copy a surface to the backbuffer

Share this post


Link to post
Share on other sites
Advertisement
1)
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]]

3)
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
The thing is that when i used either one of them nothing happens when i run the program in DX8 i used t o use CopyRect but Fucking Microsoft remove them.For what no one knows

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
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!