Syntax
//
// Linux, MacOS and non-Visual Studio Windows solutions (pure C++11 / C++98)
//
static inline void SetColor(
int64_t owlInstanceColor,
int32_t ambient,
int32_t diffuse,
int32_t emissive,
int32_t specular
)
{
assert(IsInstanceOfClass(owlInstanceColor, "Color"));
}
//
// Visual Studio for Windows
//
static inline void SetColor(
__int64 owlInstanceColor,
__int32 ambient,
__int32 diffuse,
__int32 emissive,
__int32 specular
)
{
assert(IsInstanceOfClass(owlInstanceColor, "Color"));
}
Property owlInstanceColor
Size: 64 bit / 8 byte (value)
The handle of the Color instance.
Property ambient
Size: 32 bit / 4 byte (value)
Defines the ambient color as a 32 bit value; the 32 bit value is build up as 8 : 8 : 8 : 8 bits representing RGBA (or sometimes called RGBW), i.e. Red, Green, Blue, Alpha (transparency) each defined as a unsigned char value 0 .. 255.
Property diffuse
Size: 32 bit / 4 byte (value)
Defines the diffuse color as a 32 bit value; the 32 bit value is build up as 8 : 8 : 8 : 8 bits representing RGBA (or sometimes called RGBW), i.e. Red, Green, Blue, Alpha (transparency) each defined as a unsigned char value 0 .. 255.
Property emissive
Size: 32 bit / 4 byte (value)
Defines the emissive color as a 32 bit value; the 32 bit value is build up as 8 : 8 : 8 : 8 bits representing RGBA (or sometimes called RGBW), i.e. Red, Green, Blue, Alpha (transparency) each defined as a unsigned char value 0 .. 255.
Property specular
Size: 32 bit / 4 byte (value)
Defines the specular color as a 32 bit value; the 32 bit value is build up as 8 : 8 : 8 : 8 bits representing RGBA (or sometimes called RGBW), i.e. Red, Green, Blue, Alpha (transparency) each defined as a unsigned char value 0 .. 255.