Alright, slow progress is better than no progress I guess
Posted: Jan 12, 2005 @ 3:04pm
by Kiyote
Posted: Jan 12, 2005 @ 5:02pm
by Kiyote
Johan,
In GapiDraw.h, you have the line(193):
GDERR_FRAMETIMEOVERFLOW = ((HRESULT)0x486600f0)
Shouldn't that be 0xC86600f0?
Just wondering about the inconsistency.
Posted: Jan 12, 2005 @ 5:30pm
by Kiyote
Johan,
One more question for now. I don't suppose you have a list somewhere of what functions can return what error codes, do you?
ie -
Method:
CGapiSurface_CreateSurfaceFromMem
Can Return:
GDERR_OUTOFMEMORY
GDERR_INVALIDPARAMS
GDERR_INVALIDBITMAP
Posted: Jan 12, 2005 @ 5:56pm
by Johan
Kiyote: The first digit in the error codes describes the critical level of the return code. 4 is not an error (more of a notification), where C is an error. Values less than 0x8000 0000 are not "errors", but warnings. This is from the Microsoft DirectX standard.
The online documentation lists all possible return values for each function (CGapiSurface_CreateSurfaceFromMem is a wrapper for CGapiSurface::CreateSurface)