2d directx

Started by
0 comments, last by jollyjeffers 18 years, 3 months ago
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
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

<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]</small>

This topic is closed to new replies.

Advertisement