PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Using PF with MFC Dialog or SDI projects

I am not writing a game. I need to show a bitmap on a window(that is larger than the display). And place other bitmaps or sprites on the base bitmap. The sprites position would change every 5 to 10 seconds.
And I would need to be able to pan the base bitmap inorder to move to different area of the bitmap.

These graphics are important to the program but are a small part of the functionality. I still need a basic menu and dialog box support. Would PF meet my needs?
Conan · 11 Apr 2003, 07:52 UTC — yes, no problem using PF
PocketFrog uses surfaces on which you draw. A surface can be bigger than the screen and bitmaps / sprites can be drawn onto that. The surface can be written to the display at any offset on x y - or + so you can scroll the surface about.

note that the method you suggest is not a regular approach to drawing sprites on a background but will work & be reasonably effective if the background image is not too huge.
I think you'll be having trouble combining PF with MFC dialogs and menus though.

PF is designed to run in fullscreen mode. Someone once told me (but I have not verified this) that GAPI only works in fullscreen mode.

If you're planning on using it as a GDI wrapper in windowed mode, you need to modify the Game class or your menues won't work at all.