Jump to content
  • Advertisement
Sign in to follow this  
mirza101

2d directx

This topic is 4601 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 better-faster to draw 2d in directx by creating a surface, loading bitmap into it and then just copying the surface to backbuffer or creating sprite, texture, then loading texture and displaying it with sprite

Share this post


Link to post
Share on other sites
Advertisement
Definitely the latter [smile]

If you mean using IDirect3DSurface9 and then acquiring a pointer to the backbuffer (IDirect3DDevice9::GetBackBuffer()) and then IDirect3DDevice9::StretchRect(), it'd definitely be faster to use textures and regular "3D style" rendering.

hth
Jack

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!