Cones.
Let's create an array of the cones lying on the same line but having different parameters:
for (int i=2;i<10;i++)
{
sgCCone* co1 = sgCreateCone(i,i/3,10*i,36);
SG_VECTOR transV1 = {10*i,10,10};
co1->InitTempMatrix()->Translate(transV1);
co1->ApplyTempMatrix();
co1->DestroyTempMatrix();
sgGetScene()->AttachObject(co1);
co1->SetAttribute(SG_OA_COLOR,i);
}
See also:
sgCObject::InitTempMatrix sgCMatrix::Translate sgCObject::ApplyTempMatrix SgCObject::DestroyTempMatrix sgGetScene sgCScene::AttachObject sgCObject::SetAttribute
Illustration: