PocketMatrix forums

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

Gapi Draw 2.05 Question

Gapi Draw 2.05 Question

1. I cannot get CGapiDisplay::RestoreAllVideoSurfaces() to work. I call it CGapiApplciation::OnRestore() event then try to load all the animation frames back into the surfaces. The bitmaps containing the frames are loaded into local GapiSurfaces after GapiDisplay::RestoreAllVideoSurfaces() is called and this happens fine. However when I try to BltFast the frames from them into the restored frames I get a Surface Lost Error and graphics are messed up (obviously!)

This is all happening on a Desktop Fullscreen app. One solution is to just use System memory for the frame surfaces. This works and performance is fine because today's machines are so fast. As far a I know all Pocket PC use system memory for surfaces (i.e. they do not have hardware accelaration). Am I correct in this assumption? If so then I guess that there is no need to worry about using RestoreAllVideoSurfaces for them and I can live with the Desktop performance you get with System Memory. If there are Pocket PC that have "fast video memory" then I would like to know how to solve this problem so my graphics will be working as fast as possible on them.

2. The game I am working on is almost finshed and I will have some Screen Shots/Info about the game soon. Who do I send to on the GapiDraw site? How to I get added to the "app list" .

Thanks in advance,

Justin Topham
Do you use the GapiApplication framework?

If not:
Check out the MFC demo for a 100% working vidmemory example
or if you are
check out all other samples except for plasma and simple.

You can send me screenshots etc at johan.sanneblad@home.se . By the way, do you have a commercial license to release the game?

//Johan
Hi Johan,

Thanks for your reply.

I have a 2.05 Commercial, Single Developer license for the game which I obtained on 19/11/2003. Under the terms of the license I must decide on a fee to pay within one year. The terms of the license are perpetual. I understand that this and other threads in this forum that this license is still valid and that I am able to release a commercial product on it. Is this correct?

Regards,

Justin
The license is of course still valid! Go ahead and release the game.