0031124: Configuration - linker errors when building with CLang on Windows
[occt.git] / src / RWObj / RWObj_Material.hxx
CommitLineData
4151c94d 1// Author: Kirill Gavrilov
2// Copyright (c) 2015-2019 OPEN CASCADE SAS
3//
4// This file is part of Open CASCADE Technology software library.
5//
6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License version 2.1 as published
8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
11//
12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
14
15#ifndef _RWObj_Material_HeaderFile
16#define _RWObj_Material_HeaderFile
17
18#include <Quantity_Color.hxx>
19#include <TCollection_AsciiString.hxx>
20
21//! Material definition for OBJ file format.
22struct RWObj_Material
23{
24 TCollection_AsciiString Name; //!< material name (identifier) as defined in MTL file
25 TCollection_AsciiString DiffuseTexture; //!< path to the texture image file defining diffuse color
26 TCollection_AsciiString SpecularTexture; //!< path to the texture image file defining specular color
27 TCollection_AsciiString BumpTexture; //!< path to the texture image file defining normal map
28 Quantity_Color AmbientColor;
29 Quantity_Color DiffuseColor;
30 Quantity_Color SpecularColor;
31 Standard_ShortReal Shininess;
32 Standard_ShortReal Transparency;
33
34 RWObj_Material()
ba00aab7 35 : AmbientColor (0.1, 0.1, 0.1, Quantity_TOC_sRGB),
36 DiffuseColor (0.8, 0.8, 0.8, Quantity_TOC_sRGB),
37 SpecularColor(0.2, 0.2, 0.2, Quantity_TOC_sRGB),
4151c94d 38 Shininess (1.0f),
39 Transparency (0.0f) {}
40
41};
42
43#endif // _RWObj_Material_HeaderFile