API Reference > OdDb Classes > OdDbRenderSettings Class > OdDbRenderSettings Methods > OdDbRenderSettings::materialsEnabled Method
OdDbRenderSettings::materialsEnabled Method
Syntax
C++
bool materialsEnabled() const;

Returns true if and only if materials are rendered 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–2021. Open Design Alliance. All rights reserved.