Jump to content
  • Advertisement
Sign in to follow this  
mirza101

2d directx

This topic is 4521 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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!