Change the color of one 3D object. This command may not change the color if the object is loaded from a model file that contain diffuse color data.


void dbColorObject(int iObject, int iColor)

int iObject is the number of the object you want change the color on.
int iColor is the color value. You can use dbRGB to get a color value.


dbMakeObjectCone(37, 16);
DWORD color = dbRGB(0, 0, 255); //Blue
dbColorObject(37, color);