0

Can I get access IDirectDrawSurface5 on a WindowsMobile device so that I can access the BltFast method?

Matt Lacey
  • 65,560
  • 11
  • 91
  • 143
Kevin
  • 9,309
  • 12
  • 44
  • 51

2 Answers2

1

For the fastest blits and direct screen access on Windows Mobile, I would recommend using: PocketHal or the library which is built on top of that: Pocketfrog

Toad
  • 15,593
  • 16
  • 82
  • 128
  • Thanks - I'm hoping to stick with DirectDraw, since I have that working, I'm looking for just a little more speed. Ultimately PocketHal must use some sort of native API to render to the device. Do you know what it uses? – Kevin Dec 20 '09 at 15:55
  • It uses assembly, and has ways to get to the screenbuffer directly, where-as gdi, and even directx go through abstraction layers (and buffers), which ultimately make your app go a factor 1.5 - 4 times as slow (no hidden color conversions, bit rotations, etc). – Toad Dec 21 '09 at 08:18
  • So to emphasize the point: pockethal doesn't go through native API's...which makes it really fast. – Toad Dec 21 '09 at 08:19
1

there is no IDirectDrawSurface5 interface in neither the Windows Mobile 5.0 (and above) reference nor in the ddraw.h header file of the Windows Mobile 6 SDK, nor is there a BltFast method. so no, you can not. you can use IDirectDrawSurface::Blt, though.

ax.
  • 58,560
  • 8
  • 81
  • 72