Quote: "dbCreateObjectCube(ID, size) or ID = dbCreateObjectCube(size) which will return a free ID..."
Optional parameters are always at the end and *never* change their order.
The correct parameter order is:
int dbCreateObjectCube(float size.f [, int objectID])
Quote: "My same piece of code was directly ported over from DarkGDK to PureGDK and it ran so much faster on frame rates. As to why I haven't a clue but I was very pleasantly surprised with it."
There is a significant difference in the underlying code between PureGDK and DarkGDK, so it's hard to tell where it's coming from.
I also did a quick comparison of DBP and PureGDK using the camera demo. PureGDK, despite using the same function calls, was noticeably faster there too.
Quote: "I REALLY want to use PGDK, but I don't want to spend hours--if not days-- hunting down command differences."
There will be some growing pains but I hope that you will find the new documentation extremely helpful in this area. There is even full-text searching.
See dbSetErrorCallback() in the documentation. It will help alert you of any error thrown by an invalid parameter. The biggest headache I have when converting code is just reordered parameters. The advantage is that it allows support for non-polymorphic languages as well as making the code cleaner and easier to understand like this:
In DarkGDK you can use these commands to change the resolution:
Quote: "
void dbSetDisplayMode (int iWidth, int iHeight, int iDepth)
bool dbSetDisplayModeEx(int iWidth, int iHeight)
bool dbSetDisplayModeEx(int iWidth, int iHeight, int iDepth)
bool dbSetDisplayModeEx(int iWidth, int iHeight, int iDepth, int iMode)
bool dbSetDisplayModeEx(int iWidth, int iHeight, int iDepth, int iMode, int iVertexProcessing)
bool dbSetDisplayModeEx(int iWidth, int iHeight, int iDepth, int iMode, int iVertexProcessing, int iLockable)
bool dbSetDisplayModeVSync(int iWidth, int iHeight, int iDepth, int iVSyncOn)
bool dbSetDisplayModeAntialias (int iWidth, int iHeight, int iDepth, int iVSyncOn, int iMultisamplingFactor, int iMultimonitorMode)"
In PureGDK the same command with optional parameters is:
Quote: "
dbSetDisplayMode(int width, int height[, int depth [, int vSync [, int multiSampling [, int multiMonitor [, int backBufferWidth [, int backBufferHeight [, int vrMode]]]]]]])"
In this function each parameter after width and height can be optionally specified.