GetMaterialColorDiffuse (inline)

...

Syntax

//
//   Linux, MacOS and non-Visual Studio Windows solutions (pure C++11 / C++98)
//

static  inline  int32_t GetMaterialColorDiffuse(
                                int64_t             owlInstanceMaterial
                            )
{
    int32_t diffuse = 0;
    GetMaterialColor(
            owlInstanceMaterial,
            nullptr,        //    ambient
            &diffuse,
            nullptr,        //    emissive
            nullptr         //    specular
        );
    return  diffuse;
}


//
//   Visual Studio for Windows
//

static  inline  __int32 GetMaterialColorDiffuse(
                                __int64             owlInstanceMaterial
                            )
{
    int32_t diffuse = 0;
    GetMaterialColor(
            owlInstanceMaterial,
            nullptr,        //    ambient
            &diffuse,
            nullptr,        //    emissive
            nullptr         //    specular
        );
    return  diffuse;
}
    

Property owlInstanceMaterial

Size: 64 bit / 8 byte (value)
The handle of the Material instance.