This command creates a cube in 3D space, with the height provided.

Syntax Edit

void dbMakeObjectCube ( int iObject, float fSize )

int iObject is the internal object number you want Dark GDK to use. You need this number to refer back to the object. float fSize is the width of the box created.


This command creates a standard Dark GDK object that can be modified with most of the the other 3D commands.

Here is a code snippet that creates a cube then colors it red:

dbMakeObjectCube(1, 0.5);
dbColorObject(1, dbRGB(255,0,0));

See AlsoEdit


Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.