Can anybody explain the difference between these two methods of CGapiApplication?
Why would I use one over the other?
What is their technical difference?
What affects would either one have on my program?
The documentation for them looks more or less identical...
The CreateVidMemSurfaces method attempts to place all surfaces 'created' within that method in video memory. This will provide fast access to those surfaces by video hardware should it exist. If you are going to be altering those surfaces (such as reading a pixel and altering it) then the access to perform those alterations will be considerably slower than if they had been created in system memory via CreateSysMemSurfaces.
I believe if Video memory is full or non-existant, surfaces will default to system memory.
But both pass "CGapiDisplay* pDisplay"
So somehow the method itself determines where it is created? I don't see anything different structurally... if I just chug along creating surfaces, by all appearances they will be the same.
A bit confusing...
That's correct. The methods themselves determine where the surfaces are created as opposed to sending the necessary GDSURFACE_* flags to force creation in video or system memory.
It's a convenience function, removing some of the lower level guess work of creating surfaces.
Thanks, one last question...
Does the PocketPC HAVE video memory? Is there any point in bothering from a pure PPC viewpoint?
I don't believe any currently have dedicated video memory, but there may be in the not too distant future. I would recommend using CreateVidMemSurfaces (if you're using the CGapiApplication framework) and allowing GapiDraw to transparently handle the creation of surfaces if the video memory exists.