DbMakeObjectCube

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

Syntax
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.

Usage
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));