DarkGDK Programming Wiki
Advertisement

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.

Syntax[]

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.

Example[]

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