PocketMatrix forums

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

GapiDraw 2.10 Beta Test Issues

I made all of the necessary code changes to bring Warlords II from GD2.04 up to GD2.10 in about an hour, so there's not alot that needs to be modified.

I did find a bug though - using the CGapiApplication framework, a call is made to ProcessNextFrame before any surfaces have been created. This results in a quick crash. :wink:

I haven't explored the problem in too much depth, but ProcessNextFrame is definately being called in CGapiApplication::MainLoop() before CreateVidMemsurfaces() and CreateSysMemsurfaces() have been called.

edit: This is while developing on the desktop, and it is of any help, m_bDisplayModeShouldChange is false when it hits MainLoop().

edit 2: The samples appear to work correctly, so I'm at a loss as to why the surface creation routines aren't being called before ProcessNextFrame.
Hi,

Thanks for giving it a good try!

My only guess is that they are not named correctly or that you have not called "rebuild all" yet.

CreateSysMemSurfaces(CGapiSurface* pDisplay, HINSTANCE hInstance);
CreateVidMemSurfaces(CGapiSurface* pDisplay, HINSTANCE hInstance);

I had the same issue but it was solved once I called "Rebuild All".

Again, I'm sorry for the SDK changes... But it will help moving the code to the other platforms later on...
Ah, the capitalization of the surface routines was off. I used the naming convention from your posted notes.

The desktop version of W2 is now working, and I'll finish testing it tonight. If I get a chance I'll build the ppc version and test it out as well, otherwise I'll finish it up in the morning.

I'll try building the RaptureEngine up as well and see if there are any speed increases on the ppc.
I tested out the ppc version and everything seems to work correctly. I did a version containing browse info and I got the following warnings:

Code:

Linking...
Creating browse info file...
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawDefines.h(5): Could not find the file e32def.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawDefines.h(6): Could not find the file w32std.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(12): Could not find the file bitdev.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(13): Could not find the file fbs.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(14): Could not find the file gdi.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawDefines.h(5): Could not find the file e32def.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawDefines.h(6): Could not find the file w32std.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(12): Could not find the file bitdev.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(13): Could not find the file fbs.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(14): Could not find the file gdi.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawDefines.h(5): Could not find the file e32def.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawDefines.h(6): Could not find the file w32std.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(12): Could not find the file bitdev.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(13): Could not find the file fbs.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(14): Could not find the file gdi.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawDefines.h(5): Could not find the file e32def.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawDefines.h(6): Could not find the file w32std.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(12): Could not find the file bitdev.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(13): Could not find the file fbs.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(14): Could not find the file gdi.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawDefines.h(5): Could not find the file e32def.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawDefines.h(6): Could not find the file w32std.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(12): Could not find the file bitdev.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(13): Could not find the file fbs.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(14): Could not find the file gdi.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawDefines.h(5): Could not find the file e32def.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawDefines.h(6): Could not find the file w32std.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(12): Could not find the file bitdev.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(13): Could not find the file fbs.h.
E:\iPaq_Development\GapiDraw210\include\symbian\GapiDrawSymbian.h(14): Could not find the file gdi.h.


My include path has both ../../../include and ../../../include/win32 but no reference to the symbian subdirectory. This is using eVC 3. Any ideas?
Hi,

GapiDraw.h contains references to the Symbian subfolder, for example

Code:

#if defined(__SYMBIAN32__)
#include "symbian/GapiDrawDefines.h"
#elif defined(_WIN32)
#include "win32/GapiDrawDefines.h"
#endif

To me it seems like eVC 3 doesn't care about the defines when trying to create the browse info file.

/Jonas
Maybe there should be 2 versions of gapidraw.h like there are for gapiapplication. Then just setup the include path depending on the platform being compiled for.
Perhaps that's the easiest way... We can fix it for the final release...
Johan: Sorry, I'm not able to play with the beta yet. I cant get much time these month. I sent you a PM (ruis) with my inquiries previously but never got a reply yet. Thanks.