API Reference > OdDb Classes > OdDbRenderSettings Class > OdDbRenderSettings Methods > OdDbRenderSettings::setMaterialsEnabled Method
OdDbRenderSettings::setMaterialsEnabled Method
Syntax
C++
void setMaterialsEnabled(bool materialsEnabled);
Parameters 
Description 
bool materialsEnabled 
[in] Controls MaterialsEnabled. 

Controls the rendering of materials on a per-object basis for this RenderSettings object.

If true, materials are rendered on a per-object basis. If false, all objects are rendered with the global material. 

The default value for MaterialsEnabled == true.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.