17 #if !defined(OPENNURBS_MATERIAL_INC_)
18 #define OPENNURBS_MATERIAL_INC_
177 unsigned char m_reserved1[2];
178 #if defined(ON_64BIT_POINTER)
179 unsigned char m_reserved2[4];
242 const wchar_t* filename,
281 const wchar_t* filename,
296 const wchar_t* filename,
325 static double m_max_shine;
330 #if defined(ON_DLL_TEMPLATE)
334 #pragma warning( push )
335 #pragma warning( disable : 4231 )
338 #pragma warning( pop )
double m_index_of_refraction
ON_UUID ModelObjectId() const
int FindTexture(ON_UUID texture_id) const
void SetDiffuse(ON_Color)
const wchar_t * MaterialName() const
bool operator==(const ON_Material &) const
void SetAmbient(ON_Color)
void SetSpecular(ON_Color)
void SetMaterialIndex(int)
int DeleteTexture(const wchar_t *filename, ON_Texture::TYPE type)
ON_SimpleArray< ON_UuidIndex > m_material_channel
ON_wString m_flamingo_library
int AddTexture(const wchar_t *filename, ON_Texture::TYPE type)
int MaterialIndex() const
void SetEmission(ON_Color)
ON_UUID MaterialPlugInUuid() const
ON_ObjectArray< ON_Texture > m_textures
double Transparency() const
ON_Color Specular() const
ON_BOOL32 Write(ON_BinaryArchive &) const
bool operator!=(const ON_Material &) const
void SetMaterialName(const wchar_t *)
ON_BOOL32 Read(ON_BinaryArchive &)
ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const
int FindTexture(const wchar_t *filename, ON_Texture::TYPE type, int i0=-1) const
ON_wString m_material_name
void SetMaterialPlugInUuid(ON_UUID)
void Dump(ON_TextLog &) const
int Compare(const ON_Material &other) const
ON::object_type ObjectType() const
void SetTransparency(double)
ON_Color Emission() const
int AddTexture(const ON_Texture &tx)