17 #ifndef IGNITION_COMMON_MATERIAL_HH_ 18 #define IGNITION_COMMON_MATERIAL_HH_ 25 #include <ignition/common/graphics/Export.hh> 34 class MaterialPrivate;
37 class IGNITION_COMMON_GRAPHICS_VISIBLE
Material 107 public:
void SetTextureImage(
const std::string &_tex);
112 public:
void SetTextureImage(
const std::string &_tex,
154 public:
void SetTransparency(
double _t);
158 public:
double Transparency()
const;
162 public:
void SetShininess(
double _t);
166 public:
double Shininess()
const;
172 public:
void SetBlendFactors(
double _srcFactor,
double _dstFactor);
177 public:
void BlendFactors(
double &_srcFactor,
double &_dstFactor)
const;
203 public:
void SetPointSize(
double _size);
207 public:
double PointSize()
const;
211 public:
void SetDepthWrite(
bool _value);
215 public:
bool DepthWrite()
const;
219 public:
void SetLighting(
bool _value);
223 public:
bool Lighting()
const;
231 _out <<
"Material:\n";
232 _out <<
" Name: " << _m.
Name() <<
"\n";
234 _out <<
" Ambient: " << _m.
Ambient() <<
"\n";
235 _out <<
" Diffuse: " << _m.
Diffuse() <<
"\n";
236 _out <<
" Specular: " << _m.
Specular() <<
"\n";
237 _out <<
" Emissive: " << _m.
Emissive() <<
"\n";
239 _out <<
" Shininess: " << _m.
Shininess() <<
"\n";
240 _out <<
" BlendMode: " << _m.
BlendStr() <<
"\n";
241 _out <<
" ShadeMode: " << _m.
ShadeStr() <<
"\n";
242 _out <<
" DepthWrite: " << _m.
DepthWrite() <<
"\n";
friend std::ostream & operator<<(std::ostream &_out, const Material &_m)
Stream insertion operator param[in] _out the output stream to extract from param[out] _m the material...
Definition: Material.hh:228
BlendMode
Definition: Material.hh:68
std::string Name() const
Get the name of the material.
double Transparency() const
Get the transparency percentage (0..1)
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: SuppressWarning.hh:67
double Shininess() const
Get the shininess.
Encapsulates description of a material.
Definition: Material.hh:37
std::string ShadeStr() const
Get the shade mode string.
std::string BlendStr() const
Get the blend mode string.
std::string TextureImage() const
Get a texture image.
bool DepthWrite() const
Get depth write.
math::Color Ambient() const
Get the ambient color.
ShadeMode
Definition: Material.hh:41
Forward declarations for the common classes.
math::Color Specular() const
Get the specular color.
math::Color Diffuse() const
Get the diffuse color.
math::Color Emissive() const
Get the emissive color.
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Microsoft Visual Studio does not automatically export the interface information for member variables ...
Definition: SuppressWarning.hh:64