Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

zho

Help with DDraw in VB

This topic is 6696 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 have trouble in.... how to Blt DDrawSurface4 to DDrawsurface7 but not use GDI ,it''s slow.

Share this post


Link to post
Share on other sites
Advertisement
Because Retail Mode use surface4
and IM use surface7

the alphablend effect in RM is not as good as one in IM

Share this post


Link to post
Share on other sites
Yuck, RM?

Anyhoo, correct me if I am wrong, but I think you can use ddsurf4.lpsurface = ddsurf7.lpsurface.

Share this post


Link to post
Share on other sites
oh ya, I forgot to say that lpsurface is not enumerated by directx7 so check the sdk for more information

Share this post


Link to post
Share on other sites
i can''t find lpSurface in VB
that just for C

that same with QueryInterface function

i can use Lock to get memory arry() but window''s API
copymemory is slow...slow as bitblt

Share this post


Link to post
Share on other sites
I don''t think you can do that. VB is different than VC. And also I guess RM is too old already....

Just try not to use RM and use IM instead if possible.

-------------------------
-Now Working on Pokemon like Engine!

Share this post


Link to post
Share on other sites
ddsurf.lpsurface exists. Trust me. It is in MY code and it works. I got the code from http://www.chez.com/scribe. That won''t help you though with what you are trying to do.

Share this post


Link to post
Share on other sites
Wouldn''t flipping surface pointers make DD do weird stuff or raise an error? There must be a reason why DirectX is using different interface versions for compatibility.

zho: use IM, RM is not being developed anymore + it''s really slow and a pain to program. If you want some D3DIM VB samples to look at, I''ve written some samples available on http://redrival.com/voodoovb/dimercis.html (the file at the top)

============================
Daniel Netz, Sentinel Design
"I'm not stupid, I'm from Sweden" - Unknown

Share this post


Link to post
Share on other sites
nes8bit : That''s using the libraries that were developed as an interface to DX before 7. Now with DX7 you don''t need that, but also you lose some of the low level functions.


-------------------------
-Now Working on Pokemon like Engine!

Share this post


Link to post
Share on other sites

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